]> Pileus Git - ~andy/gtk/commitdiff
gail: Remove unreachable code
authorBenjamin Otte <otte@redhat.com>
Thu, 9 Jun 2011 04:00:34 +0000 (06:00 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 9 Jun 2011 04:00:34 +0000 (06:00 +0200)
modules/other/gail/gaillabel.c

index 1961e8842121cc920494371393dec3a4cd99f38f..e257b739d54e1b607509f97e9b7e89a71a6c1ecd 100644 (file)
@@ -484,37 +484,6 @@ gail_label_ref_relation_set (AtkObject *obj)
                     }
                   g_list_free (list);
                 }
-            /*
-             * Handle the case where a GnomeIconEntry is specified as the 
-             * mnemonic widget. use the button which is a grandchild of the
-             * GnomeIconEntry as the mnemonic widget. See bug #133967.
-             */
-              else if (GTK_IS_BOX (mnemonic_widget))
-                {
-                  GList *list;
-
-                  list = gtk_container_get_children (GTK_CONTAINER (mnemonic_widget));
-                  if (g_list_length (list) == 1)
-                    {
-                      if (GTK_IS_ALIGNMENT (list->data))
-                        {
-                          GtkWidget *temp_widget;
-
-                          temp_widget = gtk_bin_get_child (GTK_BIN (list->data));
-                          if (GTK_IS_BUTTON (temp_widget))
-                            mnemonic_widget = temp_widget;
-                        }
-                      else if (GTK_IS_HBOX (list->data))
-                        {
-                          GtkWidget *temp_widget;
-
-                          temp_widget = GTK_WIDGET (list->data);
-                          g_list_free (list);
-                          list = gtk_container_get_children (GTK_CONTAINER (temp_widget));
-                        }
-                    }
-                  g_list_free (list);
-                }
             }
           accessible_array[0] = gtk_widget_get_accessible (mnemonic_widget);
           relation = atk_relation_new (accessible_array, 1,