GNOME Bugzilla – Bug 733412
power: always connect to power settings changes
Last modified: 2014-07-23 14:04:21 UTC
See attached patch. This fixes a bug where the automatic suspend setting label wasn't updated immediately when changing a setting from the dialog.
Created attachment 281192 [details] [review] power: always connect to power settings changes We were failing to connect to the signal when CanHibernate returned FALSE; in that case, we would never update the automatic suspend label when a setting in the dialog was changed.
Review of attachment 281192 [details] [review]: But this means that if the critical-battery-action gsetting changes we'll try to use priv->critical_battery_combo which is then uninitialized (in the !CanHibernate case).
Created attachment 281448 [details] [review] power: always connect to power settings changes -- Whoops, good point.
Review of attachment 281448 [details] [review]: Looks good.
Pushing to include in today's release. Attachment 281448 [details] pushed as 84a9c51 - power: always connect to power settings changes