[gnome-menus] libmenu: Group GMenuTreeFlags flags in a pseudo-consistent way



commit 02d0f749a1c4f406fa773254c2095e6c4f3d5979
Author: Vincent Untz <vuntz gnome org>
Date:   Thu Jul 21 18:28:56 2011 +0200

    libmenu: Group GMenuTreeFlags flags in a pseudo-consistent way
    
    Since we're breaking ABI, let's go crazy and change the value of flags.
    Grouping flags by some sort of meaning (include ones, show ones, misc.
    ones) makes the header a bit nicer to read.

 libmenu/gmenu-tree.h |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/libmenu/gmenu-tree.h b/libmenu/gmenu-tree.h
index 1d9cd0d..ca9e91b 100644
--- a/libmenu/gmenu-tree.h
+++ b/libmenu/gmenu-tree.h
@@ -75,10 +75,12 @@ typedef enum
 {
   GMENU_TREE_FLAGS_NONE                = 0,
   GMENU_TREE_FLAGS_INCLUDE_EXCLUDED    = 1 << 0,
-  GMENU_TREE_FLAGS_SHOW_EMPTY          = 1 << 1,
-  GMENU_TREE_FLAGS_INCLUDE_NODISPLAY   = 1 << 2,
-  GMENU_TREE_FLAGS_SHOW_ALL_SEPARATORS = 1 << 3,
-  GMENU_TREE_FLAGS_SORT_DISPLAY_NAME   = 1 << 4
+  GMENU_TREE_FLAGS_INCLUDE_NODISPLAY   = 1 << 1,
+  /* leave some space for more include flags */
+  GMENU_TREE_FLAGS_SHOW_EMPTY          = 1 << 8,
+  GMENU_TREE_FLAGS_SHOW_ALL_SEPARATORS = 1 << 9,
+  /* leave some space for more show flags */
+  GMENU_TREE_FLAGS_SORT_DISPLAY_NAME   = 1 << 16
 } GMenuTreeFlags;
 GType gmenu_tree_flags_get_type (void);
 #define GMENU_TYPE_TREE_FLAGS (gmenu_tree_flags_get_type ())



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