summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-03-27 19:09:15 +0200
committerTimm Bäder <mail@baedert.org>2018-03-27 19:09:15 +0200
commit9665c4d65134fc14d9d4f0390fa12c8120b0376e (patch)
tree6cc10aab303e3b7580d3560745ec10bc04a19713
parent8646f9da198eb2e09c219a6c70fd7bbb045876a3 (diff)
downloadgtk+-9665c4d65134fc14d9d4f0390fa12c8120b0376e.tar.gz
spinbutton: spinbuttons aren't entries anymore
Fix a code sample to reflect that.
-rw-r--r--gtk/gtkspinbutton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 2a7e2d61a6..c6435e602d 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -474,7 +474,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
* adjustment = gtk_spin_button_get_adjustment (spin);
* value = (int)gtk_adjustment_get_value (adjustment);
* text = g_strdup_printf ("%02d", value);
- * gtk_entry_set_text (GTK_ENTRY (spin), text);
+ * gtk_spin_button_set_text (spin, text):
* g_free (text);
*
* return TRUE;