summaryrefslogtreecommitdiff
path: root/gtk/gtkspinbutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-12-05 22:17:51 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-12-17 00:01:58 -0500
commit35c243b26f851680b276c9604ada01fb0a242b77 (patch)
treea26bd4db974a738763809e7d6eb6b1f083c6c65e /gtk/gtkspinbutton.c
parent776778efc84c13dec2aea26e8ef375f303ce9494 (diff)
downloadgtk+-35c243b26f851680b276c9604ada01fb0a242b77.tar.gz
entry: use a gadget
Use a gadget for the entry. Selection and progress still just use a CSS node. Most things seem to work correctly with non-zero margin or padding.
Diffstat (limited to 'gtk/gtkspinbutton.c')
-rw-r--r--gtk/gtkspinbutton.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index ca28fc7e0e..f634abc5a4 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -1213,7 +1213,6 @@ gtk_spin_button_get_preferred_width (GtkWidget *widget,
if (gtk_entry_get_width_chars (entry) < 0)
{
gint width, w;
- GtkBorder borders;
PangoLayout *layout;
gchar *str;
@@ -1234,9 +1233,6 @@ gtk_spin_button_get_preferred_width (GtkWidget *widget,
width = MAX (width, w);
g_free (str);
- _gtk_entry_get_borders (entry, &borders);
- width += borders.left + borders.right;
-
*minimum = width;
*natural = width;