[gtk+] menu: Stop drawing css background and border
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] menu: Stop drawing css background and border
- Date: Thu, 20 Jul 2017 01:39:55 +0000 (UTC)
commit 2e4df25a1df756866e38aac66e93814ada6bc643
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]