aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-28 16:01:16 -0500
committerTed Gould <ted@canonical.com>2009-04-28 16:01:16 -0500
commitbc2a1a314b64960eda857284bc0149193433a0a1 (patch)
treee6fca66d2d7274c4cfb0ed9e790857883e3a684f /libdbusmenu-glib/client.c
parent640720591a52701b852564fba3e0df3bd3c56e40 (diff)
downloadlibdbusmenu-bc2a1a314b64960eda857284bc0149193433a0a1.tar.gz
libdbusmenu-bc2a1a314b64960eda857284bc0149193433a0a1.tar.bz2
libdbusmenu-bc2a1a314b64960eda857284bc0149193433a0a1.zip
Fix property names.
Diffstat (limited to 'libdbusmenu-glib/client.c')
-rw-r--r--libdbusmenu-glib/client.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index d49b8db..f00c185 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -59,12 +59,12 @@ dbusmenu_client_class_init (DbusmenuClientClass *klass)
object_class->get_property = get_property;
g_object_class_install_property (object_class, PROP_DBUSOBJECT,
- g_param_spec_string("dbus-object", "DBus Object we represent",
+ g_param_spec_string(DBUSMENU_CLIENT_PROP_DBUS_OBJECT, "DBus Object we represent",
"The Object on the client that we're getting our data from.",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, PROP_DBUSNAME,
- g_param_spec_string("dbus-name", "DBus Client we connect to",
+ g_param_spec_string(DBUSMENU_CLIENT_PROP_DBUS_NAME, "DBus Client we connect to",
"Name of the DBus client we're connecting to.",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
@@ -345,7 +345,10 @@ update_layout (DbusmenuClient * client)
DbusmenuClient *
dbusmenu_client_new (const gchar * name, const gchar * object)
{
- DbusmenuClient * self = g_object_new(DBUSMENU_TYPE_CLIENT, "name", name, "object", object, NULL);
+ DbusmenuClient * self = g_object_new(DBUSMENU_TYPE_CLIENT,
+ DBUSMENU_CLIENT_PROP_DBUS_NAME, name,
+ DBUSMENU_CLIENT_PROP_DBUS_OBJECT, object,
+ NULL);
update_layout(self);
return self;