diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-08-17 07:56:44 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-08-17 07:56:44 +0000 |
commit | da88c237c2ec702c76d73d96253c7223dcb51aa1 (patch) | |
tree | dcd6fcb7a365cce952394fe6a480ccee898e36dc /gtk/prefs_dlg.c | |
parent | ec5366cedec69a3899bcf829be3a47e94708a6b5 (diff) |
It was silly of me to require that "forget_scrolled_window()" be called
explicitly; the right thing to do was to have
"remember_scrolled_window()" catch the "destroy" signal on the scrolled
window widget, and have the handler for that signal forget the scrolled
window.
Doing that obviates the need to have creators of scrolled windows keep
track of the windows they have and forget them when they're destroyed.
The signal for a "the window manager has requested that this window go
away" event is "delete_event", not "delete-event"; fix the
"gtk_signal_connect()" calls that were using "delete-event".
svn path=/trunk/; revision=2284
Diffstat (limited to 'gtk/prefs_dlg.c')
-rw-r--r-- | gtk/prefs_dlg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/prefs_dlg.c b/gtk/prefs_dlg.c index 88347f21ca..b18170a6d9 100644 --- a/gtk/prefs_dlg.c +++ b/gtk/prefs_dlg.c @@ -1,7 +1,7 @@ /* prefs_dlg.c * Routines for handling preferences * - * $Id: prefs_dlg.c,v 1.19 2000/08/15 20:53:24 deniel Exp $ + * $Id: prefs_dlg.c,v 1.20 2000/08/17 07:56:42 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -252,7 +252,7 @@ prefs_cb(GtkWidget *w, gpointer dummy) { prefs_w = dlg_window_new(); gtk_window_set_title(GTK_WINDOW(prefs_w), "Ethereal: Preferences"); - gtk_signal_connect(GTK_OBJECT(prefs_w), "delete-event", + gtk_signal_connect(GTK_OBJECT(prefs_w), "delete_event", GTK_SIGNAL_FUNC(prefs_main_delete_cb), NULL); gtk_signal_connect(GTK_OBJECT(prefs_w), "destroy", GTK_SIGNAL_FUNC(prefs_main_destroy_cb), NULL); |