tBlank all text entry widgets on clist unselect, to make it quite clear to the user that any text entered will not be saved. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 35f5e56ed32bacc0466fd6cfb5440c24f9523b96
(DIR) parent 85fe011b3978b0cfb48bdb4d797e43dcfdc3ebfe
(HTM) Author: Ben Webb <ben@salilab.org>
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(-)
---
(DIR) 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, gint column,
} 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]);