[gtk+/wip/baedert/drawing: 9/54] toolitem: Remove size_allocate implementation
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 9/54] toolitem: Remove size_allocate implementation
- Date: Wed, 28 Jun 2017 11:24:30 +0000 (UTC)
commit 9f1674af7d11cc56ef5c78b918179ef7e07cc310
Author: Timm Bäder <mail baedert org>
Date: Sun Jun 18 12:21:34 2017 +0200
toolitem: Remove size_allocate implementation
A GtkToolItem is a GtkBin and that already does exactly what this
implementation did.
gtk/gtktoolitem.c | 24 ------------------------
1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c
index eb12149..a705b97 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]