[743] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] tiny gtk patch suggestion

daemon@ATHENA.MIT.EDU (Daniel R Risacher)
Sat Aug 16 23:04:16 1997

Date: Sat, 16 Aug 1997 22:01:03 -0500
From: Daniel R Risacher <risacher@worldnet.att.net>
To: gtk-list@redhat.com
Reply-to: risacher@worldnet.att.net
Resent-From: gtk-list@redhat.com


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:

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post