From 373d9f1ca238da2e9a158bc720c6ad9c75931858 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 14 May 2015 16:53:02 -0500 Subject: better checking on whether or not menus are built. --- src/service.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/service.c b/src/service.c index dad6dc8..f0b3ef9 100644 --- a/src/service.c +++ b/src/service.c @@ -110,6 +110,7 @@ struct _IndicatorPowerServicePrivate guint actions_export_id; GDBusConnection * conn; + gboolean menus_built; struct ProfileMenuInfo menus[N_PROFILES]; GSimpleActionGroup * actions; @@ -674,7 +675,7 @@ rebuild_now (IndicatorPowerService * self, guint sections) g_simple_action_set_state (p->header_action, create_header_state (self)); } - if (p->conn == NULL) /* we haven't built the menus yet */ + if (!p->menus_built) return; if (sections & SECTION_DEVICES) @@ -1184,6 +1185,7 @@ indicator_power_service_init (IndicatorPowerService * self) for (i=0; imenus_built = TRUE; g_signal_connect_swapped(p->brightness, "notify::auto-brightness-supported", G_CALLBACK(on_auto_brightness_supported_changed), self); -- cgit v1.2.3 From 65f56468d1c02a02ea51a3ac336dc3ffe60db524 Mon Sep 17 00:00:00 2001 From: CI Train Bot Date: Fri, 15 May 2015 16:39:51 +0000 Subject: Releasing 12.10.6+15.04.20150515-0ubuntu1 --- debian/changelog | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/changelog b/debian/changelog index 098b590..0f45e80 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +indicator-power (12.10.6+15.04.20150515-0ubuntu1) vivid; urgency=medium + + [ Charles Kerr ] + * Fix timing issue that caused "Adjust brightness automatically" + menuitem to sometimes not be shown. (LP: #1382861) + + -- CI Train Bot Fri, 15 May 2015 16:39:51 +0000 + indicator-power (12.10.6+15.04.20150402-0ubuntu1) vivid; urgency=medium [ Marc Deslauriers ] -- cgit v1.2.3