gtkarrow: Move public members to private structure

This commit is contained in:
Javier Jardón
2010-05-24 05:18:05 +02:00
parent fa740ae012
commit 3862bf3208
3 changed files with 61 additions and 30 deletions

View File

@ -234,21 +234,28 @@ gail_button_get_name (AtkObject *obj)
static gboolean
gail_button_is_default_press (GtkWidget *widget)
{
GtkArrowType arrow_type;
GtkWidget *child;
GtkWidget *parent;
gboolean ret = FALSE;
const gchar *parent_type_name;
child = GTK_BIN (widget)->child;
if (GTK_IS_ARROW (child) &&
GTK_ARROW (child)->arrow_type == GTK_ARROW_DOWN)
if (GTK_IS_ARROW (child))
{
parent = gtk_widget_get_parent (widget);
if (parent)
g_object_get (child,
"arrow_type", &arrow_type,
NULL);
if (arrow_type == GTK_ARROW_DOWN)
{
parent_type_name = g_type_name (G_OBJECT_TYPE (parent));
if (strcmp (parent_type_name, "ColorCombo"))
return TRUE;
parent = gtk_widget_get_parent (widget);
if (parent)
{
parent_type_name = g_type_name (G_OBJECT_TYPE (parent));
if (g_strcmp0 (parent_type_name, "ColorCombo"))
return TRUE;
}
}
}