From 51c57b41a1269a34c8f0025115f6d4f21da50190 Mon Sep 17 00:00:00 2001 From: trav90 Date: Thu, 5 Apr 2018 15:47:48 -0500 Subject: [GTK3] Draw only background and frame of separator menuitems in GTK versions > 3.20 In GTK 3.20, gtk_menu_item_draw() just draws the root widget gadget, depending on the theme to style menu items with CSS name "separator" appropriately. --- widget/gtk/gtk3drawing.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widget') diff --git a/widget/gtk/gtk3drawing.cpp b/widget/gtk/gtk3drawing.cpp index 3a5fa81f1..6a0c08782 100644 --- a/widget/gtk/gtk3drawing.cpp +++ b/widget/gtk/gtk3drawing.cpp @@ -1786,6 +1786,9 @@ moz_gtk_menu_separator_paint(cairo_t *cr, GdkRectangle* rect, moz_gtk_menu_item_paint(MOZ_GTK_MENUSEPARATOR, cr, rect, &defaultState, direction); + if (gtk_get_minor_version() >= 20) + return MOZ_GTK_SUCCESS; + GtkStyleContext* style; gboolean wide_separators; gint separator_height; -- cgit v1.2.3