From a5a34355e4d100e0b0fa542d7fbdb54361df4ba2 Mon Sep 17 00:00:00 2001 From: trav90 Date: Thu, 5 Apr 2018 15:47:12 -0500 Subject: [GTK3] Draw separator menuitem background and frame behind separator in menu --- widget/gtk/gtk3drawing.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'widget/gtk') diff --git a/widget/gtk/gtk3drawing.cpp b/widget/gtk/gtk3drawing.cpp index b9e26c3cc..3a5fa81f1 100644 --- a/widget/gtk/gtk3drawing.cpp +++ b/widget/gtk/gtk3drawing.cpp @@ -36,6 +36,10 @@ static gboolean is_initialized; static gint moz_gtk_get_tab_thickness(GtkStyleContext *style); +static gint +moz_gtk_menu_item_paint(WidgetNodeType widget, cairo_t *cr, GdkRectangle* rect, + GtkWidgetState* state, GtkTextDirection direction); + // GetStateFlagsFromGtkWidgetState() can be safely used for the specific // GtkWidgets that set both prelight and active flags. For other widgets, // either the GtkStateFlags or Gecko's GtkWidgetState need to be carefully @@ -1778,6 +1782,10 @@ static gint moz_gtk_menu_separator_paint(cairo_t *cr, GdkRectangle* rect, GtkTextDirection direction) { + GtkWidgetState defaultState = { 0 }; + moz_gtk_menu_item_paint(MOZ_GTK_MENUSEPARATOR, cr, rect, + &defaultState, direction); + GtkStyleContext* style; gboolean wide_separators; gint separator_height; -- cgit v1.2.3