[gnome-menus/wip/gobject-review] libmenu: Default GMenuTree::name property to "applications.menu"



commit b8f2e09d572174ca93cbefd3f7595d44b6d0b2c3
Author: Vincent Untz <vuntz gnome org>
Date:   Thu Jul 21 17:00:25 2011 +0200

    libmenu: Default GMenuTree::name property to "applications.menu"
    
    This is useful for introspection bindings, since users will not
    necessarily think of setting the menu name property at construct time.
    And it's a saner default than NULL.

 libmenu/gmenu-tree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libmenu/gmenu-tree.c b/libmenu/gmenu-tree.c
index 76626a4..9c3fe7e 100644
--- a/libmenu/gmenu-tree.c
+++ b/libmenu/gmenu-tree.c
@@ -539,7 +539,7 @@ gmenu_tree_class_init (GMenuTreeClass *klass)
   g_object_class_install_property (gobject_class,
                                    PROP_NAME,
                                    g_param_spec_string ("name", "", "",
-                                                        NULL,
+                                                        "applications.menu",
                                                         G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
   /**
    * GMenuTree:flags



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