tgtk_entry_set_text now really does set the text, rather than just inserting at… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit ba00d9a6867fc000f722954e0685bd0611bb197c | |
parent e506b024d05779ac80a46e8a130a2725c2d0991d | |
Author: Ben Webb <[email protected]> | |
Date: Mon, 25 Feb 2002 19:52:43 +0000 | |
gtk_entry_set_text now really does set the text, rather than just inserting | |
at position 0. | |
Diffstat: | |
M src/gtkport/gtkport.c | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c | |
t@@ -4681,6 +4681,7 @@ void gtk_entry_set_text(GtkEntry *entry, const gchar *te… | |
{ | |
int pos = 0; | |
+ gtk_editable_delete_text(GTK_EDITABLE(entry), 0, -1); | |
gtk_editable_insert_text(GTK_EDITABLE(entry), text, strlen(text), &pos); | |
} | |