atk_object_set_parent (popup, obj);
gail_combo_box->popup_set = TRUE;
}
- if (GTK_IS_COMBO_BOX_ENTRY (combo_box))
+ if (gtk_combo_box_get_has_entry (combo_box))
atk_object_set_parent (gtk_widget_get_accessible (gtk_bin_get_child (GTK_BIN (combo_box))), obj);
obj->role = ATK_ROLE_COMBO_BOX;
if (name)
return name;
- widget = GTK_ACCESSIBLE (obj)->widget;
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj));
if (widget == NULL)
/*
* State is defunct
g_return_val_if_fail (GAIL_IS_COMBO_BOX (obj), 0);
- widget = GTK_ACCESSIBLE (obj)->widget;
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj));
+
if (widget == NULL)
/*
* State is defunct
return 0;
n_children++;
- if (GTK_IS_COMBO_BOX_ENTRY (widget))
+ if (gtk_combo_box_get_has_entry (GTK_COMBO_BOX (widget)))
n_children ++;
return n_children;
g_return_val_if_fail (GAIL_IS_COMBO_BOX (obj), NULL);
- widget = GTK_ACCESSIBLE (obj)->widget;
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj));
if (widget == NULL)
/*
box->popup_set = TRUE;
}
}
- else if (i == 1 && GTK_IS_COMBO_BOX_ENTRY (widget))
+ else if (i == 1 && gtk_combo_box_get_has_entry (GTK_COMBO_BOX (widget)))
{
child = gtk_widget_get_accessible (gtk_bin_get_child (GTK_BIN (widget)));
}
GailComboBox *combo_box;
GtkWidget *widget;
- widget = GTK_ACCESSIBLE (action)->widget;
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (action));
+
if (widget == NULL)
/*
* State is defunct
gail_combo_box = GAIL_COMBO_BOX (data);
gail_combo_box->action_idle_handler = 0;
- widget = GTK_ACCESSIBLE (gail_combo_box)->widget;
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (gail_combo_box));
+
if (widget == NULL || /* State is defunct */
!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_get_mapped (GTK_ACCESSIBLE (popup)->widget);
+ do_popup = !gtk_widget_get_mapped (gtk_accessible_get_widget (GTK_ACCESSIBLE (popup)));
if (do_popup)
gtk_combo_box_popup (combo_box);
else
guint key_val;
combo_box = GAIL_COMBO_BOX (action);
- widget = GTK_ACCESSIBLE (combo_box)->widget;
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (combo_box));
if (widget == NULL)
return NULL;
set = atk_object_ref_relation_set (ATK_OBJECT (action));
{
target = atk_relation_get_target (relation);
target_object = g_ptr_array_index (target, 0);
- if (GTK_IS_ACCESSIBLE (target_object))
- {
- label = GTK_ACCESSIBLE (target_object)->widget;
- }
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (target_object));
}
g_object_unref (set);
if (GTK_IS_LABEL (label))
{
key_val = gtk_label_get_mnemonic_keyval (GTK_LABEL (label));
- if (key_val != GDK_VoidSymbol)
+ if (key_val != GDK_KEY_VoidSymbol)
return_value = gtk_accelerator_name (key_val, GDK_MOD1_MASK);
}
g_free (combo_box->press_keybinding);
GtkComboBox *combo_box;
GtkWidget *widget;
- widget = GTK_ACCESSIBLE (selection)->widget;
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection));
+
if (widget == NULL)
/*
* State is defunct
GtkComboBox *combo_box;
GtkWidget *widget;
- widget = GTK_ACCESSIBLE (selection)->widget;
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection));
+
if (widget == NULL)
/*
* State is defunct
AtkObject *obj;
gint index;
- widget = GTK_ACCESSIBLE (selection)->widget;
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection));
+
if (widget == NULL)
/*
* State is defunct
GtkComboBox *combo_box;
GtkWidget *widget;
- widget = GTK_ACCESSIBLE (selection)->widget;
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection));
+
if (widget == NULL)
/*
* State is defunct
gint j;
GtkWidget *widget;
- widget = GTK_ACCESSIBLE (selection)->widget;
+ widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection));
+
if (widget == NULL)
/*
* State is defunct