diff options
author | trav90 <travawine@protonmail.ch> | 2018-04-05 15:48:29 -0500 |
---|---|---|
committer | trav90 <travawine@protonmail.ch> | 2018-04-05 15:48:29 -0500 |
commit | fe4175e799cffb712a088221faeb1dffcdaea7bb (patch) | |
tree | 7eebc56b7caab854a8bcb5c496aea408b342aa69 /widget/gtk | |
parent | 51c57b41a1269a34c8f0025115f6d4f21da50190 (diff) | |
download | UXP-fe4175e799cffb712a088221faeb1dffcdaea7bb.tar UXP-fe4175e799cffb712a088221faeb1dffcdaea7bb.tar.gz UXP-fe4175e799cffb712a088221faeb1dffcdaea7bb.tar.lz UXP-fe4175e799cffb712a088221faeb1dffcdaea7bb.tar.xz UXP-fe4175e799cffb712a088221faeb1dffcdaea7bb.zip |
[GTK3] Use menuitem padding between menuitem and check indicator.
Diffstat (limited to 'widget/gtk')
-rw-r--r-- | widget/gtk/gtk3drawing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |