aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-08-23 06:56:31 +0000
committerGuy Harris <guy@alum.mit.edu>2000-08-23 06:56:31 +0000
commit56697db466b1f1da79f8c266e55cad71a405bfc3 (patch)
tree3333db70f4d3d91d322fab7d0870bba64f848919 /gtk/capture_dlg.c
parent2f1bab3f96efc95c0274abffd026a18f368905f9 (diff)
Bleah. What was I thinking? "dlg_window_new()" should take the title
for the dialog window as an argument (as various dialog creators in GTK+ do), not oblige every caller of it to cut-and-paste a "gtk_window_set_title()" call after it. svn path=/trunk/; revision=2345
Diffstat (limited to 'gtk/capture_dlg.c')
-rw-r--r--gtk/capture_dlg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c
index d9317e4534..d513a4001f 100644
--- a/gtk/capture_dlg.c
+++ b/gtk/capture_dlg.c
@@ -1,7 +1,7 @@
/* capture_dlg.c
* Routines for packet capture windows
*
- * $Id: capture_dlg.c,v 1.30 2000/08/11 13:32:58 deniel Exp $
+ * $Id: capture_dlg.c,v 1.31 2000/08/23 06:55:12 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -126,8 +126,7 @@ capture_prep_cb(GtkWidget *w, gpointer d)
err_str);
}
- cap_open_w = dlg_window_new();
- gtk_window_set_title(GTK_WINDOW(cap_open_w), "Ethereal: Capture Preferences");
+ cap_open_w = dlg_window_new("Ethereal: Capture Preferences");
gtk_signal_connect(GTK_OBJECT(cap_open_w), "destroy",
GTK_SIGNAL_FUNC(capture_prep_destroy_cb), NULL);