From: John Darrington Date: Sat, 29 Nov 2008 03:03:13 +0000 (+0900) Subject: Make close button grab the focus on popup X-Git-Tag: v0.7.1~50^2~10 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e51aad5ecebae7e6cdd4acc38be1a738e5c0e6c4;p=pspp-builds.git Make close button grab the focus on popup --- diff --git a/src/ui/gui/message-dialog.c b/src/ui/gui/message-dialog.c index 281ef527..d0f02dfa 100644 --- a/src/ui/gui/message-dialog.c +++ b/src/ui/gui/message-dialog.c @@ -260,6 +260,7 @@ popup_messages (gpointer unused UNUSED) goto use_fallback; gtk_text_view_set_buffer (text_view, text_buffer); + gtk_widget_grab_focus (get_widget_assert (message_xml, "close-button")); gtk_dialog_run ( GTK_DIALOG (message_dialog)); gtk_widget_hide (message_dialog); diff --git a/src/ui/gui/message-dialog.glade b/src/ui/gui/message-dialog.glade index 719c1aad..39ad3679 100644 --- a/src/ui/gui/message-dialog.glade +++ b/src/ui/gui/message-dialog.glade @@ -86,7 +86,7 @@ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK GTK_BUTTONBOX_END - + True True True