aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-16 11:52:15 -0500
committerTed Gould <ted@canonical.com>2009-04-16 11:52:15 -0500
commit5e4f14e71580c3d1d551b8bd92fc225ede4a0561 (patch)
treed27123eb09daf1e1f53a2768dd033e904395daa3 /libdbusmenu-glib
parentce53e610ceaefd14e1eb32509499cb984f7d189f (diff)
downloadlibdbusmenu-5e4f14e71580c3d1d551b8bd92fc225ede4a0561.tar.gz
libdbusmenu-5e4f14e71580c3d1d551b8bd92fc225ede4a0561.tar.bz2
libdbusmenu-5e4f14e71580c3d1d551b8bd92fc225ede4a0561.zip
Oops, forgot layout. That's make the dbus folks angry.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/server.c8
-rw-r--r--libdbusmenu-glib/server.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index 31956c2..7e8999d 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -39,7 +39,8 @@ static guint signals[LAST_SIGNAL] = { 0 };
enum {
PROP_0,
PROP_DBUS_OBJECT,
- PROP_ROOT_NODE
+ PROP_ROOT_NODE,
+ PROP_LAYOUT
};
static void dbusmenu_server_class_init (DbusmenuServerClass *class);
@@ -92,6 +93,11 @@ dbusmenu_server_class_init (DbusmenuServerClass *class)
"The base object of the menus that are served",
DBUSMENU_TYPE_MENUITEM,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property (object_class, PROP_LAYOUT,
+ g_param_spec_string(DBUSMENU_SERVER_PROP_LAYOUT, "XML Layout of the menus",
+ "A simple XML string that describes the layout of the menus",
+ "<menu />",
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
dbus_g_object_type_install_info(DBUSMENU_TYPE_SERVER, &dbus_glib__dbusmenu_server_object_info);
diff --git a/libdbusmenu-glib/server.h b/libdbusmenu-glib/server.h
index a9822ea..f2324fd 100644
--- a/libdbusmenu-glib/server.h
+++ b/libdbusmenu-glib/server.h
@@ -21,6 +21,7 @@ G_BEGIN_DECLS
#define DBUSMENU_SERVER_PROP_DBUS_OBJECT "dbus-object"
#define DBUSMENU_SERVER_PROP_ROOT_NODE "root-node"
+#define DBUSMENU_SERVER_PROP_LAYOUT "layout"
typedef struct _DbusmenuServer DbusmenuServer;
typedef struct _DbusmenuServerClass DbusmenuServerClass;