tBlank all text entry widgets on clist unselect, to make it quite clear to the … | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 35f5e56ed32bacc0466fd6cfb5440c24f9523b96 | |
parent 85fe011b3978b0cfb48bdb4d797e43dcfdc3ebfe | |
Author: Ben Webb <[email protected]> | |
Date: Sat, 16 Mar 2002 19:00:38 +0000 | |
Blank all text entry widgets on clist unselect, to make it quite clear to | |
tthe user that any text entered will not be saved. | |
Diffstat: | |
M src/gui_client/optdialog.c | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/src/gui_client/optdialog.c b/src/gui_client/optdialog.c | |
t@@ -454,6 +454,7 @@ static void list_row_unselect(GtkCList *clist, gint row, g… | |
} else { | |
conf->data[row] = gtk_editable_get_chars(GTK_EDITABLE(conf->widget), | |
0, -1); | |
+ gtk_entry_set_text(GTK_ENTRY(conf->widget), ""); | |
} | |
if (strcmp(gvar->Name, "Name") == 0) { | |
gtk_clist_set_text(clist, row, 0, conf->data[row]); |