diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2014-05-04 20:20:19 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2014-05-09 11:02:45 -0700 |
commit | 1627c903d856ce3de1a6bece2868f28000418490 (patch) | |
tree | 9dc4401642a74c57e63e6b9b5a51eafc6af46f54 | |
parent | 9f7bab0aca1e36106aa1ea9e67e7484f0af333f4 (diff) | |
download | gtk+-1627c903d856ce3de1a6bece2868f28000418490.tar.gz |
spinbutton: remove unused code
-rw-r--r-- | gtk/gtkspinbutton.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index 5b5089433f..2bd8dc5eac 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -1156,24 +1156,16 @@ gtk_spin_button_get_preferred_width (GtkWidget *widget, GtkSpinButton *spin_button = GTK_SPIN_BUTTON (widget); GtkSpinButtonPrivate *priv = spin_button->priv; GtkEntry *entry = GTK_ENTRY (widget); - GtkStyleContext *style_context; - - style_context = gtk_widget_get_style_context (widget); GTK_WIDGET_CLASS (gtk_spin_button_parent_class)->get_preferred_width (widget, minimum, natural); if (gtk_entry_get_width_chars (entry) < 0) { gint width, w; - gint focus_width; GtkBorder borders; PangoLayout *layout; gchar *str; - gtk_style_context_get_style (style_context, - "focus-line-width", &focus_width, - NULL); - layout = pango_layout_copy (gtk_entry_get_layout (entry)); /* Get max of MIN_SPIN_BUTTON_WIDTH, size of upper, size of lower */ |