[gtk+/wip/baedert/drawing: 81/348] fontchooserwidgets: Spinbuttons are no entries



commit ad4d67ff282e874f662bc60cbd438eba9c938188
Author: Timm Bäder <mail baedert org>
Date:   Thu May 4 20:49:27 2017 +0200

    fontchooserwidgets: Spinbuttons are no entries

 gtk/gtkfontchooserwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index 76a8450..3979872 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -355,7 +355,7 @@ output_cb (GtkSpinButton *spin,
   adjustment = gtk_spin_button_get_adjustment (spin);
   value = gtk_adjustment_get_value (adjustment);
   text = g_strdup_printf ("%2.4g", value);
-  gtk_entry_set_text (GTK_ENTRY (spin), text);
+  gtk_spin_button_set_text (spin, text);
   g_free (text);
 
   return TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]