aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-04-30 21:32:42 +0000
committerGuy Harris <guy@alum.mit.edu>2004-04-30 21:32:42 +0000
commite2ae85388d152119577bfa036ffd51c5a2f76adb (patch)
tree1280b8073d347cd52f8e5f6c265af80d1cfde588 /gtk
parent1989f2f0277f7942422914ef9feda7150d77b912 (diff)
GCC warning removed. (ANSI C says it's "implementation-defined" what
integral type an enum corresponds to; I guess GCC says "unsigned int" and MSVC says "int".) svn path=/trunk/; revision=10745
Diffstat (limited to 'gtk')
-rw-r--r--gtk/layout_prefs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/layout_prefs.c b/gtk/layout_prefs.c
index f32574f480..5caf1e3f9a 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.5 2004/04/30 06:30:13 ulfl Exp $
+ * $Id: layout_prefs.c,v 1.6 2004/04/30 21:32:42 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -286,7 +286,7 @@ layout_prefs_show(void)
icon_layout_4_xpm, icon_layout_3_xpm, icon_layout_6_xpm };
GtkWidget ** layout_type_buttons = g_malloc (sizeof(GtkWidget*) * LAYOUT_QTY);
- gint i;
+ int i;
/* main vertical box */
@@ -314,7 +314,8 @@ layout_prefs_show(void)
for (i=0; i<LAYOUT_QTY; ++i)
{
type_tb = gtk_toggle_button_new ();
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(type_tb), (i + 1) == prefs.gui_layout_type);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(type_tb),
+ (layout_type_e)(i + 1) == prefs.gui_layout_type);
gtk_container_add (GTK_CONTAINER(type_tb), xpm_to_widget(top_level, inline_txt[i]));