GNOME Bugzilla – Bug 679984
Use GtkLevelBar
Last modified: 2013-01-11 16:15:37 UTC
Now that GtkLevelBar is available in GTK, we should use it instead of the CcStrengthBar custom widget. See attached patches.
Created attachment 218875 [details] [review] power: port to GtkLevelBar
Created attachment 218876 [details] [review] user-accounts: port to GtkLevelBar This also adds another out parameter to pw_strength(), which is a discrete indication of the password strength (to be used with GtkLevelBar). The advantage of having such a parameter back from pw_strength() is that we can make sure the fill value and the hint string change at the same time, for better consistency.
Created attachment 218877 [details] [review] shell: remove CcStrengthBar Panels are all ported to GtkLevelBar instead.
Review of attachment 218875 [details] [review]: From a power panel point of view, this looks fine, thanks. Best to get hadess to other patches tho.
Attachment 218875 [details] pushed as b05591b - power: port to GtkLevelBar Attachment 218876 [details] pushed as dfe03a1 - user-accounts: port to GtkLevelBar Attachment 218877 [details] pushed as 1b3e877 - shell: remove CcStrengthBar There's another "strength" bar in the sound panel, used for the microphone level, which includes use of decay. That should stretch your API nicely :)
Cosimo, will you look at using the strength bar in the sound panel?
Yeah, I'd be interested in exploring that. It would require some GtkLevelBar subclass and/or special theming probably though - I think it's better to close this bug and file a new enhancement for the sound panel. I'll do that.