summaryrefslogtreecommitdiff
path: root/gtk/gtkspinbutton.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-01-30 15:04:00 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2012-01-31 10:04:26 -0500
commitd140411698ec71cc775625988c39e57b7d2cd11c (patch)
tree432352c3f6e84968a232c215e56f8229b412c060 /gtk/gtkspinbutton.c
parent3ca795d447868aaa03af5c4cf669b6f5271c309c (diff)
downloadgtk+-d140411698ec71cc775625988c39e57b7d2cd11c.tar.gz
entry: don't consider inner-border for allocation and layout
We want to deprecate the inner-border property and use the standard CSS border/padding properties. Start with replacing its uses in GtkEntry.
Diffstat (limited to 'gtk/gtkspinbutton.c')
-rw-r--r--gtk/gtkspinbutton.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 9cf1b3b464..bf2a93f433 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -1130,9 +1130,7 @@ gtk_spin_button_get_preferred_width (GtkWidget *widget,
width = MAX (width, w);
_gtk_entry_get_borders (entry, &borders);
- _gtk_entry_effective_inner_border (entry, &inner_border);
-
- width += borders.left + borders.right + inner_border.left + inner_border.right;
+ width += borders.left + borders.right;
*minimum = width;
*natural = width;