[gtk+/wip/baedert/drawing: 153/262] menu: Stop drawing css background and border
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 153/262] menu: Stop drawing css background and border
- Date: Tue, 6 Jun 2017 09:32:33 +0000 (UTC)
commit 7b8915b4f911c29c7c486d5970c04a6b8c31356c
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]