if (GTK_IS_MENU (parent))
{
attach = gtk_menu_get_attach_widget (GTK_MENU (parent));
-
- if (GTK_IS_OPTION_MENU (attach))
- {
- label = get_label_from_container (attach);
- if (GTK_IS_LABEL (label))
- return gtk_label_get_text (GTK_LABEL(label));
- }
list = gtk_container_get_children (GTK_CONTAINER (parent));
index = g_list_index (list, widget);
attach = gtk_menu_get_attach_widget (GTK_MENU (child));
/* Allow for menu belonging to the Panel Menu, which is a GtkButton */
if (GTK_IS_MENU_ITEM (attach) ||
- GTK_IS_OPTION_MENU (attach) ||
GTK_IS_BUTTON (attach))
ret = TRUE;
}
obj = gtk_widget_get_accessible (child);
obj = atk_object_get_parent (obj);
accessible = GTK_ACCESSIBLE (obj);
- if (GTK_IS_COMBO (accessible->widget))
- return TRUE;
return FALSE;
}
relation_set = ATK_OBJECT_CLASS (gail_widget_parent_class)->ref_relation_set (obj);
- if (GTK_IS_BOX (widget) && !GTK_IS_COMBO (widget))
+ if (GTK_IS_BOX (widget))
/*
* Do not report labelled-by for a GtkBox which could be a
* GnomeFileEntry.
}
}
}
- else if (GTK_IS_COMBO (widget))
- /*
- * Handle the case when GnomeFileEntry is the mnemonic widget.
- * The GnomeEntry which is a grandchild of the GnomeFileEntry
- * should be the mnemonic widget. See bug #137584.
- */
- {
- GtkWidget *temp_widget;
-
- temp_widget = gtk_widget_get_parent (widget);
-
- if (GTK_IS_HBOX (temp_widget))
- {
- temp_widget = gtk_widget_get_parent (temp_widget);
- if (GTK_IS_BOX (temp_widget))
- {
- label = find_label (temp_widget);
- }
- }
- }
else if (GTK_IS_COMBO_BOX (widget))
/*
* Handle the case when GtkFileChooserButton is the mnemonic
return FALSE;
else
{
- gtk_widget_set_uposition (widget, x_current, y_current);
+ gtk_window_move (GTK_WINDOW (widget), x_current, y_current);
gtk_widget_set_size_request (widget, width, height);
return TRUE;
}
}
else if (coord_type == ATK_XY_SCREEN)
- {
- gtk_widget_set_uposition (widget, x, y);
+ {
+ gtk_window_move (GTK_WINDOW (widget), x, y);
gtk_widget_set_size_request (widget, width, height);
return TRUE;
}
return FALSE;
else
{
- gtk_widget_set_uposition (widget, x_current, y_current);
+ gtk_window_move (GTK_WINDOW (widget), x_current, y_current);
return TRUE;
}
}
else if (coord_type == ATK_XY_SCREEN)
- {
- gtk_widget_set_uposition (widget, x, y);
+ {
+ gtk_window_move (GTK_WINDOW (widget), x, y);
return TRUE;
}
}