[gnome-control-center] region: Use an enum for column names



commit 94507750ce0b0baa3ed744cbf29bce5ba07d6e09
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 21 17:22:10 2011 +0000

    region: Use an enum for column names

 panels/region/gnome-region-panel-xkblt.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-xkblt.c b/panels/region/gnome-region-panel-xkblt.c
index 5661aee..2bc3e7a 100644
--- a/panels/region/gnome-region-panel-xkblt.c
+++ b/panels/region/gnome-region-panel-xkblt.c
@@ -31,10 +31,11 @@
 
 #include "gnome-region-panel-xkb.h"
 
-
-#define SEL_LAYOUT_TREE_COL_DESCRIPTION 0
-#define SEL_LAYOUT_TREE_COL_ID 1
-#define SEL_LAYOUT_TREE_COL_ENABLED 2
+enum {
+	SEL_LAYOUT_TREE_COL_DESCRIPTION,
+	SEL_LAYOUT_TREE_COL_ID,
+	SEL_LAYOUT_TREE_COL_ENABLED
+};
 
 static int idx2select = -1;
 static int max_selected_layouts = -1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]