]> git.0d.be Git - empathy.git/commitdiff
Label removed form list of focusable widgets
authorChandni Verma <chandniverma2112@gmail.com>
Sun, 14 Nov 2010 23:12:44 +0000 (04:42 +0530)
committerChandni Verma <chandniverma2112@gmail.com>
Mon, 22 Nov 2010 05:36:46 +0000 (11:06 +0530)
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=626560
libempathy-gtk/empathy-account-widget.c

index a6237cfd3a5ce2fafccdd82dd56ddc06e207775a..4645040a2297bd8aac467e68428b002d16b20818 100644 (file)
@@ -1440,7 +1440,18 @@ account_widget_build_jabber (EmpathyAccountWidget *self,
         }
       else if (is_facebook)
         {
+          GtkContainer *parent;
+          GList *children;
+
           gtk_widget_hide (label_example_jabber);
+
+          /* Removing the label from list of focusable widgets */
+          parent = GTK_CONTAINER (gtk_widget_get_parent (label_example_fb));
+          children = gtk_container_get_children (parent);
+          children = g_list_remove (children, label_example_fb);
+          gtk_container_set_focus_chain (parent, children);
+          g_list_free (children);
+
           gtk_widget_show (label_example_fb);
           gtk_widget_hide (expander_advanced);
         }