diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-02-11 12:31:58 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-02-11 12:31:58 -0500 |
commit | 51e2f14b053cb1c4538dfe36e53281b0955be25b (patch) | |
tree | 3cb92357d8b19587699f233e06baa7401cf08c6d /src/dialog.c | |
parent | 78f1b8f2fbbdfdea7a0ce2bc561e8f683da0a5d2 (diff) | |
parent | 9f17c475f6fff3a56378ddcf295b011e5fe8c9c5 (diff) | |
download | ayatana-indicator-session-51e2f14b053cb1c4538dfe36e53281b0955be25b.tar.gz ayatana-indicator-session-51e2f14b053cb1c4538dfe36e53281b0955be25b.tar.bz2 ayatana-indicator-session-51e2f14b053cb1c4538dfe36e53281b0955be25b.zip |
releasing version 0.2.13-0ubuntu1
Diffstat (limited to 'src/dialog.c')
-rw-r--r-- | src/dialog.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/dialog.c b/src/dialog.c index 51b1682..9633224 100644 --- a/src/dialog.c +++ b/src/dialog.c @@ -226,5 +226,20 @@ logout_dialog_new (LogoutDialogType type) gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK); + /* The following is a workaround to fix an issue in GtkMessageDialog + in which the user can tab through the text in addition to + the buttons. */ + GtkWidget *message_area = gtk_message_dialog_get_message_area(GTK_MESSAGE_DIALOG(dialog)); + GList *children = gtk_container_get_children(GTK_CONTAINER(message_area)); + GList *l; + + for (l = children; l != NULL; l = g_list_next (l)) + { + GtkWidget *child = l->data; + gtk_widget_set_can_focus(child, FALSE); + } + + g_list_free (children); + return dialog; } |