diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-08-23 06:56:31 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-08-23 06:56:31 +0000 |
commit | 56697db466b1f1da79f8c266e55cad71a405bfc3 (patch) | |
tree | 3333db70f4d3d91d322fab7d0870bba64f848919 /gtk/plugins_dlg.c | |
parent | 2f1bab3f96efc95c0274abffd026a18f368905f9 (diff) | |
download | wireshark-56697db466b1f1da79f8c266e55cad71a405bfc3.tar.gz |
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/plugins_dlg.c')
-rw-r--r-- | gtk/plugins_dlg.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/plugins_dlg.c b/gtk/plugins_dlg.c index 589c4629c8..5239141a30 100644 --- a/gtk/plugins_dlg.c +++ b/gtk/plugins_dlg.c @@ -1,7 +1,7 @@ /* plugins_dlg.c * Dialog boxes for plugins * - * $Id: plugins_dlg.c,v 1.17 2000/08/21 20:11:51 deniel Exp $ + * $Id: plugins_dlg.c,v 1.18 2000/08/23 06:56:06 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -87,8 +87,7 @@ tools_plugins_cmd_cb(GtkWidget *widget, gpointer data) GtkWidget *save_bn; gchar *titles[] = {"Name", "Description", "Version", "Enabled"}; - plugins_window = dlg_window_new(); - gtk_window_set_title(GTK_WINDOW(plugins_window), "Ethereal: Plugins"); + plugins_window = dlg_window_new("Ethereal: Plugins"); main_vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(plugins_window), main_vbox); @@ -316,8 +315,7 @@ plugins_filter_cb(GtkWidget *button, gpointer clist) if (selected_row == -1) return; pt_plug = find_plugin(selected_name, selected_version); - filter_window = dlg_window_new(); - gtk_window_set_title(GTK_WINDOW(filter_window), "Ethereal: Plugin Filter"); + filter_window = dlg_window_new("Ethereal: Plugin Filter"); gtk_window_set_modal(GTK_WINDOW(filter_window), TRUE); filter_vbox = gtk_vbox_new(FALSE, 0); |