[gnome-menus] libmenu: Default GMenuTree::name property to "applications.menu"
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-menus] libmenu: Default GMenuTree::name property to "applications.menu"
- Date: Mon, 1 Aug 2011 17:45:37 +0000 (UTC)
commit 4c85e0ee58a4e8b11f1e5527909eefd02133a72a
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]