]> git.lyx.org Git - features.git/blobdiff - src/combox.C
Insets cleanup patch from Angus
[features.git] / src / combox.C
index 3f57d01d127adfcf64657b80affb3be72204800b..bee3d125049555fc97abc4c2a8a7209957bf54a5 100644 (file)
@@ -142,7 +142,7 @@ bool Combox::select_text(string const & t)
 }
 
 
-void Combox::select(size_t i)
+void Combox::select(int i)
 {
        if (!browser || !button) return;
        if (i > 0 && i <= fl_get_browser_maxline(browser)) sel = i; 
@@ -391,10 +391,9 @@ int Combox::peek_event(FL_FORM * form, void * xev)
        if (static_cast<XEvent*>(xev)->type != KeyPress) return 0;
        
        char s_r[10]; s_r[9] = '\0';
-       static int num_bytes;
        KeySym keysym_return;
-       num_bytes = XLookupString(&static_cast<XEvent*>(xev)->xkey, s_r, 10, 
-                                 &keysym_return, 0);
+       XLookupString(&static_cast<XEvent*>(xev)->xkey, s_r, 10, 
+                             &keysym_return, 0);
        XFlush(fl_get_display());
        switch (keysym_return) {
        case XK_Down: