aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-09-09 08:11:47 +0000
committerGuy Harris <guy@alum.mit.edu>2005-09-09 08:11:47 +0000
commit3766c0334615f2d4c4bcf0cada81e131ddbe83af (patch)
tree80295f9c85cb4dae8224d20f5579b55609a5d069
parent2a1b17869102a68f3d12f1a37ded86bb83d125cb (diff)
Don't handle the ETHEREAL_STOCK_CAPTURE_START button if we don't have
libpcap - ETHEREAL_STOCK_CAPTURE_START isn't defined, and we can't capture in any case, so we don't need that button. svn path=/trunk/; revision=15736
-rw-r--r--gtk/dlg_utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/dlg_utils.c b/gtk/dlg_utils.c
index 88cbad70b7..9164261bb1 100644
--- a/gtk/dlg_utils.c
+++ b/gtk/dlg_utils.c
@@ -79,7 +79,7 @@ dlg_button_new(GtkWidget *hbox, GtkWidget *button_hbox, const gchar *stock_id)
/* create a button row for a dialog */
/* The purpose of this is, to have one place available, where all button rows
- * from all dialogs are layouted. This will:
+ * from all dialogs are laid out. This will:
*
* a.) keep the button layout more consistent over the different dialogs
* b.) being able to switch between different button layouts, e.g.:
@@ -135,8 +135,10 @@ dlg_button_row_new(const gchar *stock_id_first, ...)
close = stock_id;
} else if (strcmp(stock_id, GTK_STOCK_CLEAR) == 0) {
clear = stock_id;
+#ifdef HAVE_LIBPCAP
} else if (strcmp(stock_id, ETHEREAL_STOCK_CAPTURE_START) == 0) {
start = stock_id;
+#endif /* HAVE_LIBPCAP */
} else if (strcmp(stock_id, GTK_STOCK_STOP) == 0) {
stop = stock_id;
} else if (strcmp(stock_id, GTK_STOCK_HELP) == 0) {