diff options
author | Ted Gould <ted@gould.cx> | 2011-02-24 13:52:01 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-24 13:52:01 -0600 |
commit | 3566852c8b4330cff84f4a7c6bcf18601264f747 (patch) | |
tree | 03142d12a03b9f5b462d280024bb4971c7757a94 | |
parent | 0184d1824357d0e3bcf4e4142b26663ba21e7c4c (diff) | |
download | libdbusmenu-3566852c8b4330cff84f4a7c6bcf18601264f747.tar.gz libdbusmenu-3566852c8b4330cff84f4a7c6bcf18601264f747.tar.bz2 libdbusmenu-3566852c8b4330cff84f4a7c6bcf18601264f747.zip |
Set property to status and return it
-rw-r--r-- | libdbusmenu-glib/dbus-menu.xml | 2 | ||||
-rw-r--r-- | libdbusmenu-glib/server.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libdbusmenu-glib/dbus-menu.xml b/libdbusmenu-glib/dbus-menu.xml index 829c16e..0d2a2d6 100644 --- a/libdbusmenu-glib/dbus-menu.xml +++ b/libdbusmenu-glib/dbus-menu.xml @@ -179,7 +179,7 @@ License version 3 and version 2.1 along with this program. If not, see </dox:d> </property> - <property name="state" type="s" access="read"> + <property name="status" type="s" access="read"> <dox:d> Tells if the menus are in a normal state or they believe that they could use some attention. Cases for showing them would be if help diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index e3fd2cd..056d6cb 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -744,6 +744,8 @@ bus_get_prop (GDBusConnection * connection, const gchar * sender, const gchar * return g_variant_new_uint32(DBUSMENU_VERSION_NUMBER); } else if (g_strcmp0(property, "text-direction") == 0) { return g_variant_new_string(dbusmenu_text_direction_get_nick(priv->text_direction)); + } else if (g_strcmp0(property, "status") == 0) { + return g_variant_new_string(dbusmenu_status_get_nick(priv->status)); } else { g_warning("Unknown property '%s'", property); } |