aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-custom.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-11-24 16:31:55 -0600
committerTed Gould <ted@gould.cx>2009-11-24 16:31:55 -0600
commit7c86b00eba7f9cb4afd72d349c3579bb5f3ab5c3 (patch)
tree90be7a2bc4b176009fcc7528881ffe0b4ccee8e3 /src/indicator-custom.c
parentbfd38064e70101a388ef3c66d0d7c79755be1faf (diff)
parent4b23fc39d2fed996dd651d101dc1fb0a5b76d8f0 (diff)
downloadayatana-indicator-application-7c86b00eba7f9cb4afd72d349c3579bb5f3ab5c3.tar.gz
ayatana-indicator-application-7c86b00eba7f9cb4afd72d349c3579bb5f3ab5c3.tar.bz2
ayatana-indicator-application-7c86b00eba7f9cb4afd72d349c3579bb5f3ab5c3.zip
releasing version 0.0.1-0ubuntu3~ppa1~service7
Diffstat (limited to 'src/indicator-custom.c')
-rw-r--r--src/indicator-custom.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/indicator-custom.c b/src/indicator-custom.c
index 964d8aa..da89c30 100644
--- a/src/indicator-custom.c
+++ b/src/indicator-custom.c
@@ -88,6 +88,14 @@ indicator_custom_class_init (IndicatorCustomClass *klass)
io_class->get_entries = get_entries;
+ dbus_g_object_register_marshaller(_custom_service_marshal_VOID__STRING_INT_STRING_STRING,
+ G_TYPE_NONE,
+ G_TYPE_STRING,
+ G_TYPE_INT,
+ G_TYPE_STRING,
+ G_TYPE_STRING,
+ G_TYPE_INVALID);
+
return;
}
@@ -180,11 +188,11 @@ connected (IndicatorServiceManager * sm, gboolean connected, IndicatorCustom * c
G_TYPE_INT,
G_TYPE_STRING,
G_TYPE_STRING,
- G_TYPE_NONE);
+ G_TYPE_INVALID);
dbus_g_proxy_add_signal(priv->service_proxy,
"ApplicationRemoved",
G_TYPE_INT,
- G_TYPE_NONE);
+ G_TYPE_INVALID);
/* Connect to them */
g_debug("Connect to them.");
@@ -238,6 +246,7 @@ get_entries (IndicatorObject * io)
static void
application_added (DBusGProxy * proxy, const gchar * iconname, gint position, const gchar * dbusaddress, const gchar * dbusobject, IndicatorCustom * custom)
{
+ g_debug("Building new application entry: %s with icon: %s", dbusaddress, iconname);
IndicatorCustomPrivate * priv = INDICATOR_CUSTOM_GET_PRIVATE(custom);
ApplicationEntry * app = g_new(ApplicationEntry, 1);
@@ -245,6 +254,8 @@ application_added (DBusGProxy * proxy, const gchar * iconname, gint position, co
app->entry.label = NULL;
app->entry.menu = GTK_MENU(dbusmenu_gtkmenu_new((gchar *)dbusaddress, (gchar *)dbusobject));
+ gtk_widget_show(GTK_WIDGET(app->entry.image));
+
priv->applications = g_list_insert(priv->applications, app, position);
/* TODO: Need to deal with position here somehow */