aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-11-06 22:46:30 -0600
committerTed Gould <ted@canonical.com>2009-11-06 22:46:30 -0600
commit4bcfbf41887d4b597cf727ed23e4d59946ff7666 (patch)
tree5acaf41e923f689d2c92d768f672aa428a57d4dc /src
parent1cee2f386e28a93036c68bb3f7ff96294440713e (diff)
downloadlibayatana-appindicator-4bcfbf41887d4b597cf727ed23e4d59946ff7666.tar.gz
libayatana-appindicator-4bcfbf41887d4b597cf727ed23e4d59946ff7666.tar.bz2
libayatana-appindicator-4bcfbf41887d4b597cf727ed23e4d59946ff7666.zip
Building the property proxy.
Diffstat (limited to 'src')
-rw-r--r--src/custom-service-appstore.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/custom-service-appstore.c b/src/custom-service-appstore.c
index 6368206..fc49b83 100644
--- a/src/custom-service-appstore.c
+++ b/src/custom-service-appstore.c
@@ -24,6 +24,7 @@ struct _Application {
gchar * dbus_name;
gchar * dbus_object;
DBusGProxy * dbus_proxy;
+ DBusGProxy * prop_proxy;
};
#define CUSTOM_SERVICE_APPSTORE_GET_PRIVATE(o) \
@@ -142,6 +143,7 @@ custom_service_appstore_application_add (CustomServiceAppstore * appstore, const
app->dbus_object,
NOTIFICATION_ITEM_DBUS_IFACE,
&error);
+
if (error != NULL) {
g_warning("Unable to get notification item proxy for object '%s' on host '%s': %s", dbus_object, dbus_name, error->message);
g_error_free(error);
@@ -149,6 +151,19 @@ custom_service_appstore_application_add (CustomServiceAppstore * appstore, const
return;
}
+ app->prop_proxy = dbus_g_proxy_new_for_name_owner(priv->bus,
+ app->dbus_name,
+ app->dbus_object,
+ DBUS_INTERFACE_PROPERTIES,
+ &error);
+
+ if (error != NULL) {
+ g_warning("Unable to get property proxy for object '%s' on host '%s': %s", dbus_object, dbus_name, error->message);
+ g_error_free(error);
+ g_object_unref(app->dbus_proxy);
+ g_free(app);
+ return;
+ }