From b358f7c0a1b52e146f0870ae42bf673a944f75c1 Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Mon, 9 May 2011 17:55:59 -0400 Subject: Shown/Hidden code works but causing the indicator to freak out, so disabled for now. It will work fine for changing the icon status though. --- src/indicator-example.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/indicator-example.c b/src/indicator-example.c index 3430c37..67e7ba2 100644 --- a/src/indicator-example.c +++ b/src/indicator-example.c @@ -136,6 +136,7 @@ menu_visible_notify_cb(GtkWidget *menu, G_GNUC_UNUSED GParamSpec *pspec, gpointe // we should only react if we're currently visible gboolean visible; g_object_get(G_OBJECT(menu), "visible", &visible, NULL); + /* if(visible) { self->priv->current_state = STATE_SHOWN; } @@ -143,6 +144,7 @@ menu_visible_notify_cb(GtkWidget *menu, G_GNUC_UNUSED GParamSpec *pspec, gpointe g_debug("notify visible menu hidden"); self->priv->current_state = STATE_HIDDEN; } + */ update_label(self); } -- cgit v1.2.3