aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/server.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-22 14:16:45 -0600
committerTed Gould <ted@gould.cx>2011-02-22 14:16:45 -0600
commit08409e83ad0cc9beeb27f3f4dce9b98a43138576 (patch)
tree0044893076bd9080cd3ad709af5839ca0db24a41 /libdbusmenu-glib/server.c
parenta72bcc0edc0da201b2cf112e057ee2273d4dd6d8 (diff)
downloadlibdbusmenu-08409e83ad0cc9beeb27f3f4dce9b98a43138576.tar.gz
libdbusmenu-08409e83ad0cc9beeb27f3f4dce9b98a43138576.tar.bz2
libdbusmenu-08409e83ad0cc9beeb27f3f4dce9b98a43138576.zip
Handle the property being grabbed over dbus
Diffstat (limited to 'libdbusmenu-glib/server.c')
-rw-r--r--libdbusmenu-glib/server.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index d969a55..22aec70 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -754,6 +754,16 @@ 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, "icon-theme-path") == 0) {
+ GVariant * dirs = NULL;
+
+ if (priv->icon_dirs != NULL) {
+ dirs = g_variant_new_strv((const gchar * const *)priv->icon_dirs, -1);
+ } else {
+ dirs = g_variant_new_array(G_VARIANT_TYPE_STRING, NULL, 0);
+ }
+
+ return dirs;
} else {
g_warning("Unknown property '%s'", property);
}