summaryrefslogtreecommitdiff
path: root/widget
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-04-05 15:47:12 -0500
committertrav90 <travawine@protonmail.ch>2018-04-05 15:47:12 -0500
commita5a34355e4d100e0b0fa542d7fbdb54361df4ba2 (patch)
tree2e1fe024ec51e454f139cf0adab120c1ed61998e /widget
parent9fed5c8f398721fa1cf2fe9e28ead8ccd94d569f (diff)
downloaduxp-a5a34355e4d100e0b0fa542d7fbdb54361df4ba2.tar.gz
[GTK3] Draw separator menuitem background and frame behind separator in menu
Diffstat (limited to 'widget')
-rw-r--r--widget/gtk/gtk3drawing.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/widget/gtk/gtk3drawing.cpp b/widget/gtk/gtk3drawing.cpp
index b9e26c3cc6..3a5fa81f1a 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;