After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 652299 - Don't show non-functional lock button
Don't show non-functional lock button
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: shell
unspecified
Other All
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-10 15:31 UTC by Florian Müllner
Modified: 2011-06-10 15:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
shell: Don't update the visibility of the lock button (1.71 KB, patch)
2011-06-10 15:31 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2011-06-10 15:31:13 UTC
My user has administrator rights, which means that by the default polkit policy I don't need further permission to make changes in the datetime panel. While the panel is correctly unlocked, it can not be locked - clicking the lock button does not have any effect (as the permission cannot be released).

Luckily, it looks like an easy fix :-)
Comment 1 Florian Müllner 2011-06-10 15:31:16 UTC
Created attachment 189648 [details] [review]
shell: Don't update the visibility of the lock button

Currently the lock button's visibility is updated on permission
changes - if the active panel does provide a permission object,
the button is shown, otherwise hidden.
As GtkLockButton itself does manage its visibility, it is not
necessary to handle it in g-c-c. In fact it is harmful, as the
more sophisticated handling in GtkLockButton is overwritten: for
instances, GtkLockButton hides itself if an action is allowed and
the permission can not be released. By overwriting the behavior,
gnome-control-center ends up showing a non-functional button.
Comment 2 Bastien Nocera 2011-06-10 15:32:48 UTC
Comment on attachment 189648 [details] [review]
shell: Don't update the visibility of the lock button

Looks good!
Comment 3 Florian Müllner 2011-06-10 15:38:27 UTC
Attachment 189648 [details] pushed as 0402e73 - shell: Don't update the visibility of the lock button

Thanks for the quick review!