summaryrefslogtreecommitdiffstats
path: root/widget/gtk/gtk3drawing.cpp
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-04-05 15:47:48 -0500
committertrav90 <travawine@protonmail.ch>2018-04-05 15:47:48 -0500
commit51c57b41a1269a34c8f0025115f6d4f21da50190 (patch)
tree7dc38d112b3ce58a19d54798c19e1d0548ad20d0 /widget/gtk/gtk3drawing.cpp
parenta5a34355e4d100e0b0fa542d7fbdb54361df4ba2 (diff)
downloadUXP-51c57b41a1269a34c8f0025115f6d4f21da50190.tar
UXP-51c57b41a1269a34c8f0025115f6d4f21da50190.tar.gz
UXP-51c57b41a1269a34c8f0025115f6d4f21da50190.tar.lz
UXP-51c57b41a1269a34c8f0025115f6d4f21da50190.tar.xz
UXP-51c57b41a1269a34c8f0025115f6d4f21da50190.zip
[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.
Diffstat (limited to 'widget/gtk/gtk3drawing.cpp')
-rw-r--r--widget/gtk/gtk3drawing.cpp3
1 files changed, 3 insertions, 0 deletions
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;