diff options
author | Javier Jardón <javier.jardon@codethink.co.uk> | 2011-07-04 12:47:09 +0100 |
---|---|---|
committer | Javier Jardón <javier.jardon@codethink.co.uk> | 2011-07-04 12:47:09 +0100 |
commit | f29bcda5aa5a4a93fe613ee214073c3ca4d525bc (patch) | |
tree | 8dc42276fd1b9beeb527dc21f7f94efaa48a9bca /src/indicator-power.c | |
parent | 420e84d6df0c182f297777e7bd052927d38586b8 (diff) | |
download | ayatana-indicator-power-f29bcda5aa5a4a93fe613ee214073c3ca4d525bc.tar.gz ayatana-indicator-power-f29bcda5aa5a4a93fe613ee214073c3ca4d525bc.tar.bz2 ayatana-indicator-power-f29bcda5aa5a4a93fe613ee214073c3ca4d525bc.zip |
Build menu dynamically
Diffstat (limited to 'src/indicator-power.c')
-rw-r--r-- | src/indicator-power.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c index f411483..f9bd9af 100644 --- a/src/indicator-power.c +++ b/src/indicator-power.c @@ -236,7 +236,6 @@ set_accessible_desc (IndicatorPower *self, priv->accessible_desc = g_strdup (desc); } - static void get_primary_device_cb (GObject *source_object, GAsyncResult *res, @@ -497,8 +496,6 @@ indicator_power_init (IndicatorPower *self) priv->menu = NULL; priv->accessible_desc = NULL; - build_menu (self); - priv->proxy_cancel = g_cancellable_new(); g_dbus_proxy_new_for_bus (G_BUS_TYPE_SESSION, @@ -566,6 +563,8 @@ get_menu (IndicatorObject *io) IndicatorPower *self = INDICATOR_POWER (io); IndicatorPowerPrivate *priv = self->priv; + build_menu (self); + return GTK_MENU (priv->menu); } |