From e51aad5ecebae7e6cdd4acc38be1a738e5c0e6c4 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 29 Nov 2008 12:03:13 +0900 Subject: [PATCH] Make close button grab the focus on popup --- src/ui/gui/message-dialog.c | 1 + src/ui/gui/message-dialog.glade | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2