diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-08-23 06:56:31 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-08-23 06:56:31 +0000 |
commit | e50c9a7541351b793b395c6c95a4fbca4f54e64e (patch) | |
tree | 3333db70f4d3d91d322fab7d0870bba64f848919 /gtk/plugins_dlg.c | |
parent | 5322307b7123ad7b0329f942c7e5f8366ad55feb (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2345 f5534014-38df-0310-8fa8-9805f1628bb7
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); |