summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckmenuitem.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-12-17 17:46:31 -0800
committerCosimo Cecchi <cosimoc@gnome.org>2015-12-19 21:21:16 -0800
commit35ed13ac5451838c0f9b0523e099f30d6e182b0f (patch)
treed6d202358474d231ca7d70a4fbee39f13c977720 /gtk/gtkcheckmenuitem.c
parentf792d20507b2714c964f11c576dd9a5c5be96a6d (diff)
downloadgtk+-35ed13ac5451838c0f9b0523e099f30d6e182b0f.tar.gz
menuitem: really ignore horizontal-padding
This style property has been documented as been ignored for a long time, but we were still reading it in some cases.
Diffstat (limited to 'gtk/gtkcheckmenuitem.c')
-rw-r--r--gtk/gtkcheckmenuitem.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c
index aaf830402b..b14e35c3da 100644
--- a/gtk/gtkcheckmenuitem.c
+++ b/gtk/gtkcheckmenuitem.c
@@ -649,7 +649,6 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
guint offset;
guint toggle_size;
guint toggle_spacing;
- guint horizontal_padding;
guint indicator_size;
GtkStateFlags state;
GtkBorder padding;
@@ -662,7 +661,6 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
gtk_widget_style_get (widget,
"toggle-spacing", &toggle_spacing,
- "horizontal-padding", &horizontal_padding,
"indicator-size", &indicator_size,
NULL);
@@ -672,13 +670,13 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR)
{
- x = offset + horizontal_padding +
+ x = offset +
(toggle_size - toggle_spacing - indicator_size) / 2;
}
else
{
x = allocation.width -
- offset - horizontal_padding - toggle_size + toggle_spacing +
+ offset - toggle_size + toggle_spacing +
(toggle_size - toggle_spacing - indicator_size) / 2;
}