aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/simple_dialog.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-08-23 06:56:31 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-08-23 06:56:31 +0000
commite50c9a7541351b793b395c6c95a4fbca4f54e64e (patch)
tree3333db70f4d3d91d322fab7d0870bba64f848919 /gtk/simple_dialog.c
parent5322307b7123ad7b0329f942c7e5f8366ad55feb (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/simple_dialog.c')
-rw-r--r--gtk/simple_dialog.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gtk/simple_dialog.c b/gtk/simple_dialog.c
index 22d10a2550..61269534a2 100644
--- a/gtk/simple_dialog.c
+++ b/gtk/simple_dialog.c
@@ -1,7 +1,7 @@
/* simple_dialog.c
* Simple message dialog box routines.
*
- * $Id: simple_dialog.c,v 1.5 2000/08/11 13:33:09 deniel Exp $
+ * $Id: simple_dialog.c,v 1.6 2000/08/23 06:56:31 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -76,25 +76,24 @@ simple_dialog(gint type, gint *btn_mask, gchar *msg_format, ...) {
gchar **icon;
/* Main window */
- win = dlg_window_new();
- gtk_container_border_width(GTK_CONTAINER(win), 7);
-
switch (type) {
case ESD_TYPE_WARN :
- gtk_window_set_title(GTK_WINDOW(win), "Ethereal: Warning");
icon = icon_excl_xpm;
+ win = dlg_window_new("Ethereal: Warning");
break;
case ESD_TYPE_CRIT :
- gtk_window_set_title(GTK_WINDOW(win), "Ethereal: Error");
icon = icon_excl_xpm;
+ win = dlg_window_new("Ethereal: Error");
break;
case ESD_TYPE_INFO :
default :
icon = icon_ethereal_xpm;
- gtk_window_set_title(GTK_WINDOW(win), "Ethereal: Information");
+ win = dlg_window_new("Ethereal: Information");
break;
}
+ gtk_container_border_width(GTK_CONTAINER(win), 7);
+
gtk_object_set_data(GTK_OBJECT(win), bm_key, btn_mask);
/* Container for our rows */