docs: Fix a spinbutton example

We need to use editable api for editable functionality.
This commit is contained in:
Matthias Clasen 2022-05-04 07:41:48 -04:00
parent c645da00dc
commit 3bae7f540e

View File

@ -514,7 +514,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_spin_button_set_text (spin, text):
* gtk_editable_set_text (GTK_EDITABLE (spin), text):
* g_free (text);
*
* return TRUE;