From d244cd82f545a78b2b4b04e962a3ad4f32480d58 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Sat, 31 Jan 2004 12:13:23 +0000 Subject: cleanup of new "question dialogs", using GTK2 primary/secondary message text from GNOME HIG for simple_dialogs, added a "question dialog" for the coloring rules "Clear" button svn path=/trunk/; revision=9921 --- gtk/capture_dlg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk/capture_dlg.c') diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c index 90de6fcf8d..123e1aaf56 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.100 2004/01/31 03:22:39 guy Exp $ + * $Id: capture_dlg.c,v 1.101 2004/01/31 12:13:22 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -785,10 +785,10 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_) if((cfile.state != FILE_CLOSED) && !cfile.user_saved) { /* user didn't saved his current file, ask him */ - dialog = simple_dialog(ESD_TYPE_QUEST | ESD_TYPE_MODAL, + dialog = simple_dialog(ESD_TYPE_WARN | ESD_TYPE_MODAL, ESD_BTN_YES | ESD_BTN_NO | ESD_BTN_CANCEL, - "Save packets to \"%s\" before capturing?", - cf_get_display_name(&cfile)); + PRIMARY_TEXT_START "Save capture file before starting a new capture?" PRIMARY_TEXT_END "\n\n" + "If you start a new capture without saving, your current capture data will be discarded."); simple_dialog_set_cb(dialog, capture_prep_answered_cb, NULL); } else { /* unchanged file, just capture a new one */ -- cgit v1.2.3