summaryrefslogtreecommitdiff
path: root/gtk/gtkbox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-06-26 21:52:35 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-07-05 16:08:53 -0400
commit1ef996ca3ca94a2c9b925ae9ce1edc5b02a73670 (patch)
tree6e8efd0fc8ee4a774f82098cb9838feefc3c1947 /gtk/gtkbox.c
parent6aedf8f0669b8727aed0db92eda5ccb4fff2fd35 (diff)
downloadgtk+-1ef996ca3ca94a2c9b925ae9ce1edc5b02a73670.tar.gz
Remove GailBox
It was only setting a role, and we can do that just as well in get_accessible().
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r--gtk/gtkbox.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index c36b4df039..e3fb70788c 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -198,6 +198,9 @@ static void gtk_box_get_preferred_height_for_width (GtkWidget
gint *minimum_height,
gint *natural_height);
+static AtkObject *gtk_box_get_accessible (GtkWidget *widget);
+
+
G_DEFINE_TYPE_WITH_CODE (GtkBox, gtk_box, GTK_TYPE_CONTAINER,
G_IMPLEMENT_INTERFACE (GTK_TYPE_ORIENTABLE,
NULL))
@@ -219,6 +222,7 @@ gtk_box_class_init (GtkBoxClass *class)
widget_class->get_preferred_width_for_height = gtk_box_get_preferred_width_for_height;
widget_class->compute_expand = gtk_box_compute_expand;
widget_class->direction_changed = gtk_box_direction_changed;
+ widget_class->get_accessible = gtk_box_get_accessible;
container_class->add = gtk_box_add;
container_class->remove = gtk_box_remove;
@@ -1350,6 +1354,18 @@ gtk_box_get_preferred_height_for_width (GtkWidget *widget,
gtk_box_compute_size_for_orientation (box, width, minimum_height, natural_height);
}
+static AtkObject *
+gtk_box_get_accessible (GtkWidget *widget)
+{
+ AtkObject *obj;
+
+ obj = GTK_WIDGET_CLASS (gtk_box_parent_class)->get_accessible (widget);
+
+ atk_object_set_role (obj, ATK_ROLE_FILLER);
+
+ return obj;
+}
+
/**
* gtk_box_new:
* @orientation: the box's orientation.