[gtk+/wip/baedert/drawing: 88/143] menu: Stop drawing css background and border



commit c01d2b682140a8dfc023aacf1c0f67ee0a78f916
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 64bcdd2..1fd086b 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -2902,21 +2902,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]