aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-application.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-02-08 10:49:54 -0600
committerTed Gould <ted@gould.cx>2012-02-08 10:49:54 -0600
commit04922240ee1e2c73ec61b46f17cab7653372eefa (patch)
tree86f389849d1fe991649fa40a0acfa109f38384e7 /src/indicator-application.c
parent8aa53e21ffeb4ccbb52efd47f4f8c8a897187c10 (diff)
parent7614d417822f95aa20dfadc8f06d70012ea916a6 (diff)
downloadayatana-indicator-application-04922240ee1e2c73ec61b46f17cab7653372eefa.tar.gz
ayatana-indicator-application-04922240ee1e2c73ec61b46f17cab7653372eefa.tar.bz2
ayatana-indicator-application-04922240ee1e2c73ec61b46f17cab7653372eefa.zip
Adding support for the Title property
Diffstat (limited to 'src/indicator-application.c')
-rw-r--r--src/indicator-application.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/indicator-application.c b/src/indicator-application.c
index 173124c..8b28ebc 100644
--- a/src/indicator-application.c
+++ b/src/indicator-application.c
@@ -158,7 +158,7 @@ indicator_application_init (IndicatorApplication *self)
priv->theme_dirs = NULL;
priv->disconnect_kill = 0;
- priv->sm = indicator_service_manager_new(INDICATOR_APPLICATION_DBUS_ADDR);
+ priv->sm = indicator_service_manager_new_version(INDICATOR_APPLICATION_DBUS_ADDR, INDICATOR_APPLICATION_SERVICE_VERSION);
g_signal_connect(G_OBJECT(priv->sm), INDICATOR_SERVICE_MANAGER_SIGNAL_CONNECTION_CHANGE, G_CALLBACK(connection_changed), self);
priv->applications = NULL;
@@ -811,10 +811,11 @@ receive_signal (GDBusProxy * proxy, gchar * sender_name, gchar * signal_name,
const gchar * guide;
const gchar * accessible_desc;
const gchar * hint;
- g_variant_get (parameters, "(&si&s&o&s&s&s&s&s)", &iconname,
+ const gchar * title;
+ g_variant_get (parameters, "(&si&s&o&s&s&s&s&s&s)", &iconname,
&position, &dbusaddress, &dbusobject,
&icon_theme_path, &label, &guide,
- &accessible_desc, &hint);
+ &accessible_desc, &hint, &title);
application_added(self, iconname, position, dbusaddress,
dbusobject, icon_theme_path, label, guide,
accessible_desc, hint);
@@ -884,7 +885,7 @@ get_applications (GObject * obj, GAsyncResult * res, gpointer user_data)
}
/* Get our new applications that we got in the request */
- g_variant_get(result, "(a(sisosssss))", &iter);
+ g_variant_get(result, "(a(sisossssss))", &iter);
while ((child = g_variant_iter_next_value (iter))) {
get_applications_helper(self, child);
g_variant_unref(child);
@@ -909,9 +910,10 @@ get_applications_helper (IndicatorApplication * self, GVariant * variant)
const gchar * guide;
const gchar * accessible_desc;
const gchar * hint;
- g_variant_get(variant, "(sisosssss)", &icon_name, &position,
+ const gchar * title;
+ g_variant_get(variant, "(sisossssss)", &icon_name, &position,
&dbus_address, &dbus_object, &icon_theme_path, &label,
- &guide, &accessible_desc, &hint);
+ &guide, &accessible_desc, &hint, &title);
return application_added(self, icon_name, position, dbus_address, dbus_object, icon_theme_path, label, guide, accessible_desc, hint);
}