[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.
This commit is contained in:
trav90 2018-04-05 15:47:48 -05:00 committed by Roy Tam
commit 51ddd61925

View file

@ -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;