diff options
author | Jason Conti <jason.conti@gmail.com> | 2011-05-09 17:55:59 -0400 |
---|---|---|
committer | Jason Conti <jason.conti@gmail.com> | 2011-05-09 17:55:59 -0400 |
commit | 3a94067aba24348a30162ee0a817b81e0d424d9d (patch) | |
tree | 88b26f72f32923f66b8d761634ebc665978c3833 | |
parent | 484272658c1ff750627f48f3124bb906157b38f7 (diff) | |
download | ayatana-indicator-notifications-3a94067aba24348a30162ee0a817b81e0d424d9d.tar.gz ayatana-indicator-notifications-3a94067aba24348a30162ee0a817b81e0d424d9d.tar.bz2 ayatana-indicator-notifications-3a94067aba24348a30162ee0a817b81e0d424d9d.zip |
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.
-rw-r--r-- | src/indicator-example.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |