[gtk+] spinbutton: remove unused code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] spinbutton: remove unused code
- Date: Fri, 9 May 2014 18:08:31 +0000 (UTC)
commit 1627c903d856ce3de1a6bece2868f28000418490
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun May 4 20:20:19 2014 +0200
spinbutton: remove unused code
gtk/gtkspinbutton.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 5b50894..2bd8dc5 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]