diff options
author | Ted Gould <ted@gould.cx> | 2011-03-02 22:41:48 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-03-02 22:41:48 -0600 |
commit | d693a90a23e498b50052040f90d761d0b57c5914 (patch) | |
tree | ca7c8648ab53286d4414521295d6eeb9bbe57115 /libdbusmenu-glib | |
parent | da9a1f784d3c1e8a75f832f60c3f86764810858c (diff) | |
download | libdbusmenu-d693a90a23e498b50052040f90d761d0b57c5914.tar.gz libdbusmenu-d693a90a23e498b50052040f90d761d0b57c5914.tar.bz2 libdbusmenu-d693a90a23e498b50052040f90d761d0b57c5914.zip |
Changing property name to match DBus recommendations
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/dbus-menu.xml | 2 | ||||
-rw-r--r-- | libdbusmenu-glib/server.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libdbusmenu-glib/dbus-menu.xml b/libdbusmenu-glib/dbus-menu.xml index 956844e..efb55d4 100644 --- a/libdbusmenu-glib/dbus-menu.xml +++ b/libdbusmenu-glib/dbus-menu.xml @@ -189,7 +189,7 @@ License version 3 and version 2.1 along with this program. If not, see </dox:d> </property> - <property name="icon-theme-path" type="as" access="read"> + <property name="IconThemePath" type="as" access="read"> <dox:d> A list of directories that should be used for finding icons using the icon naming spec. Idealy there should only be one for the icon diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index 14c0c53..7421747 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -754,7 +754,7 @@ bus_get_prop (GDBusConnection * connection, const gchar * sender, const gchar * return g_variant_new_uint32(DBUSMENU_VERSION_NUMBER); } else if (g_strcmp0(property, "TextDirection") == 0) { return g_variant_new_string(dbusmenu_text_direction_get_nick(priv->text_direction)); - } else if (g_strcmp0(property, "icon-theme-path") == 0) { + } else if (g_strcmp0(property, "IconThemePath") == 0) { GVariant * dirs = NULL; if (priv->icon_dirs != NULL) { @@ -1773,7 +1773,7 @@ dbusmenu_server_set_icon_paths (DbusmenuServer * server, GStrv icon_paths) g_variant_builder_add_value(¶ms, g_variant_new_string(DBUSMENU_INTERFACE)); GVariant * items = NULL; if (priv->icon_dirs != NULL) { - GVariant * dict = g_variant_new_dict_entry(g_variant_new_string("icon-theme-path"), g_variant_new_strv((const gchar * const *)priv->icon_dirs, -1)); + GVariant * dict = g_variant_new_dict_entry(g_variant_new_string("IconThemePath"), g_variant_new_strv((const gchar * const *)priv->icon_dirs, -1)); items = g_variant_new_array(NULL, &dict, 1); } else { items = g_variant_new_array(G_VARIANT_TYPE("{sv}"), NULL, 0); |