projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8646f9d
)
spinbutton: spinbuttons aren't entries anymore
author
Timm Bäder
<mail@baedert.org>
Tue, 27 Mar 2018 17:09:15 +0000
(19:09 +0200)
committer
Timm Bäder
<mail@baedert.org>
Tue, 27 Mar 2018 17:09:15 +0000
(19:09 +0200)
Fix a code sample to reflect that.
gtk/gtkspinbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkspinbutton.c
b/gtk/gtkspinbutton.c
index 2a7e2d61a6f87bfa5922ff04c60de07f6974f571..c6435e602d8109f89fb21a9709e7c7da0d80273a 100644
(file)
--- 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;