aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-application.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-20 17:24:13 -0600
committerTed Gould <ted@gould.cx>2009-12-20 17:24:13 -0600
commit9185eeee48ad6fc91b023127e9f92f7348a0c6aa (patch)
treee26c5c6c22f8092701af2bf9c4aa8ca644b2f68b /src/indicator-application.c
parenta9c6b6e346c1c850284f8766171a371da8c7b595 (diff)
downloadayatana-indicator-application-9185eeee48ad6fc91b023127e9f92f7348a0c6aa.tar.gz
ayatana-indicator-application-9185eeee48ad6fc91b023127e9f92f7348a0c6aa.tar.bz2
ayatana-indicator-application-9185eeee48ad6fc91b023127e9f92f7348a0c6aa.zip
Adding in the icon path to the list of parameters that are passed when we have a new application.
Diffstat (limited to 'src/indicator-application.c')
-rw-r--r--src/indicator-application.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/indicator-application.c b/src/indicator-application.c
index f3566e4..436a743 100644
--- a/src/indicator-application.c
+++ b/src/indicator-application.c
@@ -91,7 +91,7 @@ static void indicator_application_dispose (GObject *object);
static void indicator_application_finalize (GObject *object);
static GList * get_entries (IndicatorObject * io);
static void connected (IndicatorServiceManager * sm, gboolean connected, IndicatorApplication * application);
-static void application_added (DBusGProxy * proxy, const gchar * iconname, gint position, const gchar * dbusaddress, const gchar * dbusobject, IndicatorApplication * application);
+static void application_added (DBusGProxy * proxy, const gchar * iconname, gint position, const gchar * dbusaddress, const gchar * dbusobject, const gchar * icon_path, IndicatorApplication * application);
static void application_removed (DBusGProxy * proxy, gint position , IndicatorApplication * application);
static void get_applications (DBusGProxy *proxy, GPtrArray *OUT_applications, GError *error, gpointer userdata);
@@ -111,12 +111,13 @@ indicator_application_class_init (IndicatorApplicationClass *klass)
io_class->get_entries = get_entries;
- dbus_g_object_register_marshaller(_application_service_marshal_VOID__STRING_INT_STRING_STRING,
+ dbus_g_object_register_marshaller(_application_service_marshal_VOID__STRING_INT_STRING_STRING_STRING,
G_TYPE_NONE,
G_TYPE_STRING,
G_TYPE_INT,
G_TYPE_STRING,
G_TYPE_STRING,
+ G_TYPE_STRING,
G_TYPE_INVALID);
return;
@@ -211,6 +212,7 @@ connected (IndicatorServiceManager * sm, gboolean connected, IndicatorApplicatio
G_TYPE_INT,
G_TYPE_STRING,
G_TYPE_STRING,
+ G_TYPE_STRING,
G_TYPE_INVALID);
dbus_g_proxy_add_signal(priv->service_proxy,
"ApplicationRemoved",
@@ -267,7 +269,7 @@ get_entries (IndicatorObject * io)
ApplicationEntry and signaling the indicator host that
we've got a new indicator. */
static void
-application_added (DBusGProxy * proxy, const gchar * iconname, gint position, const gchar * dbusaddress, const gchar * dbusobject, IndicatorApplication * application)
+application_added (DBusGProxy * proxy, const gchar * iconname, gint position, const gchar * dbusaddress, const gchar * dbusobject, const gchar * icon_path, IndicatorApplication * application)
{
g_debug("Building new application entry: %s with icon: %s", dbusaddress, iconname);
IndicatorApplicationPrivate * priv = INDICATOR_APPLICATION_GET_PRIVATE(application);