if (gail_combo_box->old_selection != index)
{
gail_combo_box->old_selection = index;
+ g_object_notify (G_OBJECT (obj), "accessible-name");
g_signal_emit_by_name (obj, "selection_changed");
}
}
*/
return FALSE;
- if (!GTK_WIDGET_SENSITIVE (widget) || !GTK_WIDGET_VISIBLE (widget))
+ if (!gtk_widget_get_sensitive (widget) || !gtk_widget_get_visible (widget))
return FALSE;
combo_box = GAIL_COMBO_BOX (action);
gail_combo_box->action_idle_handler = 0;
widget = GTK_ACCESSIBLE (gail_combo_box)->widget;
if (widget == NULL || /* State is defunct */
- !GTK_WIDGET_SENSITIVE (widget) || !GTK_WIDGET_VISIBLE (widget))
+ !gtk_widget_get_sensitive (widget) || !gtk_widget_get_visible (widget))
return FALSE;
combo_box = GTK_COMBO_BOX (widget);
popup = gtk_combo_box_get_popup_accessible (combo_box);
- do_popup = !GTK_WIDGET_MAPPED (GTK_ACCESSIBLE (popup)->widget);
+ do_popup = !gtk_widget_get_mapped (GTK_ACCESSIBLE (popup)->widget);
if (do_popup)
gtk_combo_box_popup (combo_box);
else
{
GailComboBox *combo_box;
gchar *return_value = NULL;
- combo_box = GAIL_COMBO_BOX (action);
switch (i)
{
case 0:
{
- GtkWidget *widget;
+ GtkWidget *widget;
GtkWidget *label;
AtkRelationSet *set;
- AtkRelation *relation;
+ AtkRelation *relation;
GPtrArray *target;
gpointer target_object;
guint key_val;
widget = GTK_ACCESSIBLE (combo_box)->widget;
if (widget == NULL)
return NULL;
- set = atk_object_ref_relation_set (ATK_OBJECT (action));
+ set = atk_object_ref_relation_set (ATK_OBJECT (action));
if (!set)
return NULL;
label = NULL;
{
label = GTK_ACCESSIBLE (target_object)->widget;
}
- }
+ }
g_object_unref (set);
if (GTK_IS_LABEL (label))
{
}
g_free (combo_box->press_keybinding);
combo_box->press_keybinding = return_value;
- break; }
+ break;
+ }
default:
break;
}