tiny gtk patch suggestion




If no widget is the default, but some widget has the focus, then the
focus widget should get enter and return events.

-Dan Risacher


--- /usr/local/gimp-0.99.10/gimp-0.99.10/gtk+/gtk/gtkwindow.c.old   Tue Jun  3 19:34:34 1997
+++ /usr/local/gimp-0.99.10/gimp-0.99.10/gtk+/gtk/gtkwindow.c    Fri Aug 15 20:14:54 1997
@@ -639,6 +639,8 @@
        case GDK_KP_Enter:
          if (window->default_widget)
            gtk_widget_activate (window->default_widget);
+         else if (window->focus_widget)
+           gtk_widget_activate (window->focus_widget);
          return_val = TRUE;
          break;
        case GDK_Up:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]