Merge lp:~mrasmus/indicator-session/fix-597317 into lp:indicator-session/0.1

Proposed by Matthew Rasmus
Status: Merged
Merged at revision: 136
Proposed branch: lp:~mrasmus/indicator-session/fix-597317
Merge into: lp:indicator-session/0.1
Diff against target: 24 lines (+15/-0)
1 file modified
src/dialog.c (+15/-0)
To merge this branch: bzr merge lp:~mrasmus/indicator-session/fix-597317
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Review via email: mp+48746@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ted Gould (ted) wrote :

  review approve

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/dialog.c'
--- src/dialog.c 2010-03-29 19:08:16 +0000
+++ src/dialog.c 2011-02-07 02:37:53 +0000
@@ -226,5 +226,20 @@
226226
227 gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);227 gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
228228
229 /* The following is a workaround to fix an issue in GtkMessageDialog
230 in which the user can tab through the text in addition to
231 the buttons. */
232 GtkWidget *message_area = gtk_message_dialog_get_message_area(GTK_MESSAGE_DIALOG(dialog));
233 GList *children = gtk_container_get_children(GTK_CONTAINER(message_area));
234 GList *l;
235
236 for (l = children; l != NULL; l = g_list_next (l))
237 {
238 GtkWidget *child = l->data;
239 gtk_widget_set_can_focus(child, FALSE);
240 }
241
242 g_list_free (children);
243
229 return dialog;244 return dialog;
230}245}

Subscribers

People subscribed via source and target branches