← Back to team overview

ayatana-commits team mailing list archive

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

 

Matthew Rasmus has proposed merging lp:~mrasmus/indicator-session/fix-597317 into lp:indicator-session.

Requested reviews:
  Indicator Applet Developers (indicator-applet-developers)
Related bugs:
  #597317 Text on shutdown and restart boxes is selected while tabbing
  https://bugs.launchpad.net/bugs/597317

For more details, see:
https://code.launchpad.net/~mrasmus/indicator-session/fix-597317/+merge/48746
-- 
https://code.launchpad.net/~mrasmus/indicator-session/fix-597317/+merge/48746
Your team ayatana-commits is subscribed to branch lp:indicator-session.
=== 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 @@
 
 	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;
 }


Follow ups