[gtk+/wip/background-rework: 24/25] fixed: don't render a background in draw()



commit f7b91424794efe05deb4febe826210af15cd03e8
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Jul 1 09:47:22 2015 -0700

    fixed: don't render a background in draw()
    
    We actually can't render a background here, since a subclass will not
    expect only the children to be drawn when chaining up.
    This means that due to the previous commit that removed the call to
    gtk_style_context_set_background(), now subclasses will have to render
    that background themselves if they want.

 gtk/gtkfixed.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkfixed.c b/gtk/gtkfixed.c
index dcef356..d18fbb6 100644
--- a/gtk/gtkfixed.c
+++ b/gtk/gtkfixed.c
@@ -71,7 +71,6 @@
 #include "gtkfixed.h"
 
 #include "gtkprivate.h"
-#include "gtkrender.h"
 #include "gtkintl.h"
 
 
@@ -551,12 +550,6 @@ gtk_fixed_draw (GtkWidget *widget,
   GtkFixedChild *child;
   GList *list;
 
-  if (gtk_widget_get_has_window (widget))
-    gtk_render_background (gtk_widget_get_style_context (widget), cr,
-                           0, 0,
-                           gtk_widget_get_allocated_width (widget),
-                           gtk_widget_get_allocated_height (widget));
-
   for (list = priv->children;
        list;
        list = list->next)


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