aboutsummaryrefslogtreecommitdiffstats
path: root/column.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-09-10 06:53:32 +0000
committerGuy Harris <guy@alum.mit.edu>1999-09-10 06:53:32 +0000
commit046c060f989cdd51791c2112c1103f858ceeadf4 (patch)
tree2ad3d562ab8c51ee36eec5f31f5bf13f3180febb /column.c
parent7e1ce9e12207a0601d329e7147a5bca1eb5a22b6 (diff)
We need to catch a "window delete" event for the preferences dialog box
- that event happens if, say, you nuke the dialog box from a window manager - and call "delete" routines for each of the preferences tabs, so that, for preferences tabs that include list widgets, we can set a flag on the preferences tab widget telling the selection callback for the list widget that the buttons it would normally set the sensitivity of, based on whether any row in the list is selected or not, have Joined the Choir Invisible, and therefore that we shouldn't change their sensitivity because GTK+ will whine at us if we do, just as is the case if we press the "OK" or "Cancel" button (which also cause the window to go away). Can we just do this in the "window delete" handler? I.e., does that get called if we explicitly destroy the widget? Or should we catch a "destroy" event instead? (There must be a better way to do this....) svn path=/trunk/; revision=647
Diffstat (limited to 'column.c')
-rw-r--r--column.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/column.c b/column.c
index 1e54364200..94c686d2d0 100644
--- a/column.c
+++ b/column.c
@@ -1,7 +1,7 @@
/* column.c
* Routines for handling column preferences
*
- * $Id: column.c,v 1.21 1999/07/28 03:47:03 guy Exp $
+ * $Id: column.c,v 1.22 1999/09/10 06:53:23 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -726,7 +726,7 @@ column_set_fmt_cb(GtkWidget *w, gpointer data) {
void
column_prefs_ok(GtkWidget *w) {
- column_prefs_cancel(w);
+ column_prefs_delete(w);
}
void
@@ -735,6 +735,12 @@ column_prefs_save(GtkWidget *w) {
void
column_prefs_cancel(GtkWidget *w) {
+
+ column_prefs_delete(w);
+}
+
+void
+column_prefs_delete(GtkWidget *w) {
/* Let the list cb know we're about to destroy the widget tree, so it */
/* doesn't operate on widgets that don't exist. */