summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-06-18 12:21:34 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:14 -0400
commitf40c61fb407a7e215e043df3b7ff577c5b258f4a (patch)
treecca01f199b2958883e6ac54a41826777441760cb
parent1bad3e1f28033b06d3ae1fcb34dd99b479012a03 (diff)
downloadgtk+-f40c61fb407a7e215e043df3b7ff577c5b258f4a.tar.gz
toolitem: Remove size_allocate implementation
A GtkToolItem is a GtkBin and that already does exactly what this implementation did.
-rw-r--r--gtk/gtktoolitem.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c
index eb1214993b..a705b97675 100644
--- a/gtk/gtktoolitem.c
+++ b/gtk/gtktoolitem.c
@@ -99,8 +99,6 @@ static void gtk_tool_item_get_property (GObject *object,
GParamSpec *pspec);
static void gtk_tool_item_property_notify (GObject *object,
GParamSpec *pspec);
-static void gtk_tool_item_size_allocate (GtkWidget *widget,
- GtkAllocation *allocation);
static guint toolitem_signals[LAST_SIGNAL] = { 0 };
@@ -121,7 +119,6 @@ gtk_tool_item_class_init (GtkToolItemClass *klass)
object_class->finalize = gtk_tool_item_finalize;
object_class->notify = gtk_tool_item_property_notify;
- widget_class->size_allocate = gtk_tool_item_size_allocate;
widget_class->parent_set = gtk_tool_item_parent_set;
klass->create_menu_proxy = _gtk_tool_item_create_menu_proxy;
@@ -305,27 +302,6 @@ gtk_tool_item_property_notify (GObject *object,
G_OBJECT_CLASS (gtk_tool_item_parent_class)->notify (object, pspec);
}
-static void
-gtk_tool_item_size_allocate (GtkWidget *widget,
- GtkAllocation *allocation)
-{
- GtkAllocation child_allocation;
- GtkWidget *child;
-
- child = gtk_bin_get_child (GTK_BIN (widget));
- if (child && gtk_widget_get_visible (child))
- {
- child_allocation.x = allocation->x;
- child_allocation.y = allocation->y;
- child_allocation.width = allocation->width;
- child_allocation.height = allocation->height;
-
- gtk_widget_size_allocate (child, &child_allocation);
- }
-
- _gtk_widget_set_simple_clip (widget, NULL);
-}
-
gboolean
_gtk_tool_item_create_menu_proxy (GtkToolItem *item)
{