From fe4175e799cffb712a088221faeb1dffcdaea7bb Mon Sep 17 00:00:00 2001 From: trav90 Date: Thu, 5 Apr 2018 15:48:29 -0500 Subject: [GTK3] Use menuitem padding between menuitem and check indicator. --- widget/gtk/gtk3drawing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/gtk/gtk3drawing.cpp b/widget/gtk/gtk3drawing.cpp index 6a0c08782..3662851a7 100644 --- a/widget/gtk/gtk3drawing.cpp +++ b/widget/gtk/gtk3drawing.cpp @@ -1907,12 +1907,12 @@ moz_gtk_check_menu_item_paint(cairo_t *cr, GdkRectangle* rect, "indicator-size", &indicator_size, "horizontal-padding", &horizontal_padding, NULL); + gtk_style_context_get_padding(style, state_flags, &padding); ReleaseStyleContext(style); style = ClaimStyleContext(isradio ? MOZ_GTK_RADIOMENUITEM : MOZ_GTK_CHECKMENUITEM, direction, state_flags); - gtk_style_context_get_padding(style, state_flags, &padding); gint offset = padding.left + 2; if (direction == GTK_TEXT_DIR_RTL) { -- cgit v1.2.3