From acb752726d1822dfbdc04435c6320d1654313abb Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 5 May 2004 07:31:05 +0000 Subject: 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 --- gtk/layout_prefs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/layout_prefs.c') 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 @@ -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); -- cgit v1.2.1