summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 3a5fa81f1a..6a0c08782c 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;