summaryrefslogtreecommitdiff
path: root/gtk/layout_prefs.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-05-05 07:31:05 +0000
committerGuy Harris <guy@alum.mit.edu>2004-05-05 07:31:05 +0000
commitacb752726d1822dfbdc04435c6320d1654313abb (patch)
treec7711b5b389d9435b07a0a13900eeace52a17aaa /gtk/layout_prefs.c
parent659ac78357caef4ed2fd990b5e3347579ad0ef89 (diff)
downloadwireshark-acb752726d1822dfbdc04435c6320d1654313abb.tar.gz
Use an enum when initializing "prefs.gui_layout_type".
Add an entry to that enum at the end and use that to generate the value of LAYOUT_QTY. svn path=/trunk/; revision=10800
Diffstat (limited to 'gtk/layout_prefs.c')
-rw-r--r--gtk/layout_prefs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/layout_prefs.c b/gtk/layout_prefs.c
index d784c3756e..66b229581e 100644
--- a/gtk/layout_prefs.c
+++ b/gtk/layout_prefs.c
@@ -1,7 +1,7 @@
/* layout_prefs.c
* Dialog box for layout preferences
*
- * $Id: layout_prefs.c,v 1.7 2004/05/02 08:54:32 ulfl Exp $
+ * $Id: layout_prefs.c,v 1.8 2004/05/05 07:31:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -46,7 +46,7 @@
#include "../image/icon_layout_5.xpm"
#include "../image/icon_layout_6.xpm"
-#define LAYOUT_QTY 6
+#define LAYOUT_QTY (layout_type_max - 1)
static void layout_validate_cb(GtkWidget *w _U_, gpointer data);