aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/filter_prefs.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-04-21 19:43:44 +0000
committerGuy Harris <guy@alum.mit.edu>2003-04-21 19:43:44 +0000
commitee1bc75c1b8b3825f871579eb7faa8289cb3b477 (patch)
treee1c5b8e1ef4fccc6f7504cdcb3642941b73e83d1 /gtk/filter_prefs.c
parent5c1d9182ec23cdc02db34460b82c18fdbdb68dc1 (diff)
From Brad Hards: don't mention the "Add Expression" button in the
message box popped up if you try to add a new capture filter but haven't specified a filter name or string, as there is no such button for capture filters. svn path=/trunk/; revision=7517
Diffstat (limited to 'gtk/filter_prefs.c')
-rw-r--r--gtk/filter_prefs.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/gtk/filter_prefs.c b/gtk/filter_prefs.c
index 593063ee19..c447f94373 100644
--- a/gtk/filter_prefs.c
+++ b/gtk/filter_prefs.c
@@ -3,7 +3,7 @@
* (This used to be a notebook page under "Preferences", hence the
* "prefs" in the file name.)
*
- * $Id: filter_prefs.c,v 1.44 2003/03/02 13:46:01 deniel Exp $
+ * $Id: filter_prefs.c,v 1.45 2003/04/21 19:43:44 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1126,11 +1126,17 @@ filter_new_bt_clicked_cb(GtkWidget *w, gpointer data)
g_list_foreach(get_filter_dialog_list(list), new_filter_cb, &args);
} else {
/* Give the user some basic directions on how to use the 'new' button */
- simple_dialog(ESD_TYPE_WARN, NULL,
- "You have left either the 'Filter name' or 'Filter string' field empty.\n"
- "To add a new filter, enter a name for the filter, and enter the expression\n"
- "for the filter or use the 'Add Expression...' button to construct an\n"
- "expression, then click 'New'.");
+ if (CFILTER_LIST == list)
+ simple_dialog(ESD_TYPE_WARN, NULL,
+ "You have left either the 'Filter name' or 'Filter string' field empty.\n"
+ "To add a new filter, enter a name for the filter, and enter the expression\n"
+ "for the filter.");
+ else /* DFILTER */
+ simple_dialog(ESD_TYPE_WARN, NULL,
+ "You have left either the 'Filter name' or 'Filter string' field empty.\n"
+ "To add a new filter, enter a name for the filter, and enter the expression\n"
+ "for the filter or use the 'Add Expression...' button to construct an\n"
+ "expression, then click 'New'.");
}
}