mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 15:47:30 +09:00
[GTK3] Use menuitem padding between menuitem and check indicator.
This commit is contained in:
parent
51ddd61925
commit
7420a48c04
1 changed files with 1 additions and 1 deletions
|
|
@ -1907,12 +1907,12 @@ moz_gtk_check_menu_item_paint(cairo_t *cr, GdkRectangle* rect,
|
||||||
"indicator-size", &indicator_size,
|
"indicator-size", &indicator_size,
|
||||||
"horizontal-padding", &horizontal_padding,
|
"horizontal-padding", &horizontal_padding,
|
||||||
NULL);
|
NULL);
|
||||||
|
gtk_style_context_get_padding(style, state_flags, &padding);
|
||||||
ReleaseStyleContext(style);
|
ReleaseStyleContext(style);
|
||||||
|
|
||||||
style = ClaimStyleContext(isradio ? MOZ_GTK_RADIOMENUITEM :
|
style = ClaimStyleContext(isradio ? MOZ_GTK_RADIOMENUITEM :
|
||||||
MOZ_GTK_CHECKMENUITEM,
|
MOZ_GTK_CHECKMENUITEM,
|
||||||
direction, state_flags);
|
direction, state_flags);
|
||||||
gtk_style_context_get_padding(style, state_flags, &padding);
|
|
||||||
gint offset = padding.left + 2;
|
gint offset = padding.left + 2;
|
||||||
|
|
||||||
if (direction == GTK_TEXT_DIR_RTL) {
|
if (direction == GTK_TEXT_DIR_RTL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue