diff --git a/unix/GTK2.TODO b/unix/GTK2.TODO index be34c96b..1f1c8b0e 100644 --- a/unix/GTK2.TODO +++ b/unix/GTK2.TODO @@ -40,9 +40,6 @@ Items from Colin's original mail: Other items: - - The host key security alert dialog box is coming up the right - size but totally blank! Find out why and fix it. - - Since Colin's patch was originally prepared I committed r7117 (fold up treeview branches at depth 2 or greater), and this is not currently replicated in the GTK2 version of the treeview diff --git a/unix/gtkwin.c b/unix/gtkwin.c index e121971b..c615367a 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -2695,11 +2695,15 @@ int uxsel_input_add(int fd, int rwx) { if (rwx & 1) flags |= GDK_INPUT_READ; if (rwx & 2) flags |= GDK_INPUT_WRITE; if (rwx & 4) flags |= GDK_INPUT_EXCEPTION; - return gdk_input_add(fd, flags, fd_input_func, NULL); + if (flags) + return gdk_input_add(fd, flags, fd_input_func, NULL); + else + return -1; } void uxsel_input_remove(int id) { - gdk_input_remove(id); + if (id > 0) + gdk_input_remove(id); } char *guess_derived_font_name(GdkFont *font, int bold, int wide)