[gtk+/wip/baedert/drawing: 223/301] menu: Stop drawing css background and border



commit e1f5a1e57c6977eb6b756439410ee403ad23a557
Author: Timm Bäder <mail baedert org>
Date:   Sun May 7 12:47:49 2017 +0200

    menu: Stop drawing css background and border
    
    GtkWidget does it now

 gtk/gtkmenu.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 4d02c87..7b25e51 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -2888,21 +2888,14 @@ gtk_menu_snapshot (GtkWidget   *widget,
 {
   GtkMenu *menu;
   GtkMenuPrivate *priv;
-  GtkStyleContext *context;
   GtkAllocation allocation;
   int x, y;
 
   menu = GTK_MENU (widget);
   priv = menu->priv;
-  context = gtk_widget_get_style_context (widget);
 
   gtk_widget_get_allocation (widget, &allocation);
 
-  gtk_snapshot_render_background (snapshot, context, 0, 0,
-                                  allocation.width, allocation.height);
-  gtk_snapshot_render_frame (snapshot, context, 0, 0,
-                             allocation.width, allocation.height);
-
   if (priv->upper_arrow_visible)
     gtk_css_gadget_snapshot (priv->top_arrow_gadget, snapshot);
 


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