aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-notifications.c
diff options
context:
space:
mode:
authorJason Conti <jason.conti@gmail.com>2011-05-15 15:41:32 -0400
committerJason Conti <jason.conti@gmail.com>2011-05-15 15:41:32 -0400
commit239dec68b0e37d20d07af51e4bc21200447b0aaa (patch)
tree226b0f22a9939530d96b0b7e582eece89a2329da /src/indicator-notifications.c
parentfc92dc2b4c0173b17b2c4a771aef593316425e81 (diff)
downloadayatana-indicator-notifications-239dec68b0e37d20d07af51e4bc21200447b0aaa.tar.gz
ayatana-indicator-notifications-239dec68b0e37d20d07af51e4bc21200447b0aaa.tar.bz2
ayatana-indicator-notifications-239dec68b0e37d20d07af51e4bc21200447b0aaa.zip
Couldn't seem to get a signal when a menu item is added to the dbusmenu, so adding the interface back from indicator-datetime with a MessageAdded signal to notify the indicator when a notification is added to the menu.
Diffstat (limited to 'src/indicator-notifications.c')
-rw-r--r--src/indicator-notifications.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/indicator-notifications.c b/src/indicator-notifications.c
index 8238e02..2e75a97 100644
--- a/src/indicator-notifications.c
+++ b/src/indicator-notifications.c
@@ -97,6 +97,7 @@ static GtkImage *get_image(IndicatorObject *io);
static GtkMenu *get_menu(IndicatorObject *io);
static const gchar *get_accessible_desc(IndicatorObject *io);
static GdkPixbuf *load_icon(const gchar *, guint);
+static void menu_visible_notify_cb(GtkWidget *, GParamSpec *, gpointer);
static void receive_signal(GDBusProxy *proxy, gchar *sender_name, gchar *signal_name, GVariant *parameters, gpointer user_data);
static void service_proxy_cb(GObject *object, GAsyncResult *res, gpointer user_data);
@@ -128,7 +129,8 @@ indicator_notifications_class_init(IndicatorNotificationsClass *klass)
static void
menu_visible_notify_cb(GtkWidget *menu, G_GNUC_UNUSED GParamSpec *pspec, gpointer user_data)
{
- /*IndicatorNotifications *self = INDICATOR_NOTIFICATIONS(user_data);*/
+ /* IndicatorNotifications *self = INDICATOR_NOTIFICATIONS(user_data); */
+
g_debug("notify visible signal received");
gboolean visible;
@@ -163,8 +165,6 @@ indicator_notifications_init(IndicatorNotifications *self)
g_signal_connect(self->priv->menu, "notify::visible", G_CALLBACK(menu_visible_notify_cb), self);
- /*DbusmenuGtkClient *client = dbusmenu_gtkmenu_get_client(self->priv->menu);*/
-
self->priv->service_proxy_cancel = g_cancellable_new();
g_dbus_proxy_new_for_bus(G_BUS_TYPE_SESSION,