aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardon <javier.jardon@codethink.co.uk>2011-07-05 15:47:24 +0100
committerJavier Jardon <javier.jardon@codethink.co.uk>2011-07-05 15:47:24 +0100
commitfed51c17453052ed88d43995a1a47d62869aa7de (patch)
treef2b1b9a6fdb1b66de9c10bc54c7a28a01b5f46a8
parent0dce7db776dc129bed60d6a45bc010498401c028 (diff)
downloadayatana-indicator-power-fed51c17453052ed88d43995a1a47d62869aa7de.tar.gz
ayatana-indicator-power-fed51c17453052ed88d43995a1a47d62869aa7de.tar.bz2
ayatana-indicator-power-fed51c17453052ed88d43995a1a47d62869aa7de.zip
Do not use the notify:visible signal to update the menu
-rw-r--r--src/indicator-power.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index 01ce4b4..896555b 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -616,16 +616,6 @@ get_image (IndicatorObject *io)
return priv->status_image;
}
-static void
-build_menu_cb (GtkWidget * menu,
- G_GNUC_UNUSED GParamSpec *pspec,
- gpointer user_data)
-{
- IndicatorPower *self = INDICATOR_POWER (user_data);
-
- build_menu (self);
-}
-
static GtkMenu *
get_menu (IndicatorObject *io)
{
@@ -634,9 +624,6 @@ get_menu (IndicatorObject *io)
build_menu (self);
- g_signal_connect (priv->menu, "notify::visible",
- G_CALLBACK (build_menu_cb), self);
-
return GTK_MENU (priv->menu);
}