summaryrefslogtreecommitdiff
path: root/gtk/gtktoolitemgroup.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-05-07 14:16:30 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:12 -0400
commit7ddd497f695ace24cb726f6eb98eefd6ccd8d3c3 (patch)
tree5f648b912b1de1c8edafabd1ab3a7e7607bc85cf /gtk/gtktoolitemgroup.c
parenta735dd44cb33967bdb31d8e3d185687a37f4b888 (diff)
downloadgtk+-7ddd497f695ace24cb726f6eb98eefd6ccd8d3c3.tar.gz
toolitemgroup: Remove custom draw code
GtkWidget does it automatically now
Diffstat (limited to 'gtk/gtktoolitemgroup.c')
-rw-r--r--gtk/gtktoolitemgroup.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 190ddd630d..d16d8e7953 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -1233,18 +1233,6 @@ gtk_tool_item_group_unrealize (GtkWidget *widget)
GTK_WIDGET_CLASS (gtk_tool_item_group_parent_class)->unrealize (widget);
}
-static gboolean
-gtk_tool_item_group_draw (GtkWidget *widget,
- cairo_t *cr)
-{
- gtk_render_background (gtk_widget_get_style_context (widget), cr,
- 0, 0,
- gtk_widget_get_allocated_width (widget),
- gtk_widget_get_allocated_height (widget));
-
- return GTK_WIDGET_CLASS (gtk_tool_item_group_parent_class)->draw (widget, cr);
-}
-
static void
gtk_tool_item_group_style_updated (GtkWidget *widget)
{
@@ -1568,7 +1556,6 @@ gtk_tool_item_group_class_init (GtkToolItemGroupClass *cls)
wclass->unrealize = gtk_tool_item_group_unrealize;
wclass->style_updated = gtk_tool_item_group_style_updated;
wclass->screen_changed = gtk_tool_item_group_screen_changed;
- wclass->draw = gtk_tool_item_group_draw;
wclass->state_flags_changed = gtk_tool_item_group_state_flags_changed;
cclass->add = gtk_tool_item_group_add;