[gtk+/wip/baedert/drawing: 91/143] toolitemgroup: Remove custom draw code



commit 1bf7d686003a53fc2359ae823059d23d0db77e75
Author: Timm Bäder <mail baedert org>
Date:   Sun May 7 14:16:30 2017 +0200

    toolitemgroup: Remove custom draw code
    
    GtkWidget does it automatically now

 gtk/gtktoolitemgroup.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index e8448c9..b61bf2c 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -1236,18 +1236,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)
 {
@@ -1571,7 +1559,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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]