Deprecate widget flag: GTK_WIDGET_CAN_FOCUS

https://bugzilla.gnome.org/show_bug.cgi?id=69872
This commit is contained in:
Javier Jardón
2010-01-04 04:56:11 +01:00
parent 51e0dd9a82
commit 56a893ca8c
15 changed files with 34 additions and 29 deletions

View File

@ -884,7 +884,7 @@ gail_button_ref_state_set (AtkObject *obj)
if (GTK_WIDGET_STATE (widget) == GTK_STATE_ACTIVE)
atk_state_set_add_state (state_set, ATK_STATE_ARMED);
if (!GTK_WIDGET_CAN_FOCUS(widget))
if (!gtk_widget_get_can_focus (widget))
atk_state_set_remove_state (state_set, ATK_STATE_SELECTABLE);

View File

@ -464,7 +464,7 @@ gail_label_ref_relation_set (AtkObject *obj)
AtkObject *accessible_array[1];
AtkRelation* relation;
if (!GTK_WIDGET_CAN_FOCUS (mnemonic_widget))
if (!gtk_widget_get_can_focus (mnemonic_widget))
{
/*
* Handle the case where a GtkFileChooserButton is specified as the

View File

@ -488,7 +488,7 @@ gail_widget_ref_state_set (AtkObject *accessible)
atk_state_set_add_state (state_set, ATK_STATE_ENABLED);
}
if (GTK_WIDGET_CAN_FOCUS (widget))
if (gtk_widget_get_can_focus (widget))
{
atk_state_set_add_state (state_set, ATK_STATE_FOCUSABLE);
}
@ -735,7 +735,7 @@ gail_widget_grab_focus (AtkComponent *component)
GtkWidget *toplevel;
gail_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
if (GTK_WIDGET_CAN_FOCUS (widget))
if (gtk_widget_get_can_focus (widget))
{
gtk_widget_grab_focus (widget);
toplevel = gtk_widget_get_toplevel (widget);