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 749381 - Misc small cleanups for the keyboard panel
Misc small cleanups for the keyboard panel
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-05-14 14:24 UTC by Christophe Fergeau
Modified: 2015-05-15 17:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
keyboard: Make CcKeyboardItem::binding private (4.03 KB, patch)
2015-05-14 14:24 UTC, Christophe Fergeau
accepted-commit_now Details | Review
keyboard: Remove unused cc_keyboard_item_get_binding (1.56 KB, patch)
2015-05-14 14:24 UTC, Christophe Fergeau
accepted-commit_now Details | Review
keyboard: Remove 'gettext_package' handling (2.63 KB, patch)
2015-05-14 14:25 UTC, Christophe Fergeau
accepted-commit_now Details | Review
keyboard: Remove unused CcKeyboardItem::group (1.25 KB, patch)
2015-05-14 14:25 UTC, Christophe Fergeau
accepted-commit_now Details | Review
keyboard: Honor immutable command/name in custom commands (1.24 KB, patch)
2015-05-14 14:25 UTC, Christophe Fergeau
accepted-commit_now Details | Review

Description Christophe Fergeau 2015-05-14 14:24:42 UTC
This patch series removes some unused code, and fixes one bug when non-writable
gsettings keys are used (though I did not test the latter as I'm not sure how to
make a dconf key as read-only :(
Comment 1 Christophe Fergeau 2015-05-14 14:24:50 UTC
Created attachment 303368 [details] [review]
keyboard: Make CcKeyboardItem::binding private

It's not used outside of CcKeyboardItem
Comment 2 Christophe Fergeau 2015-05-14 14:24:57 UTC
Created attachment 303369 [details] [review]
keyboard: Remove unused cc_keyboard_item_get_binding
Comment 3 Christophe Fergeau 2015-05-14 14:25:05 UTC
Created attachment 303370 [details] [review]
keyboard: Remove 'gettext_package' handling

It's part of CcKeyboardItem but nothing uses it. It's also parsed
when loading KeyListEntry XML, but never used (not to be confused with
KeyList::package which is used).
Comment 4 Christophe Fergeau 2015-05-14 14:25:12 UTC
Created attachment 303371 [details] [review]
keyboard: Remove unused CcKeyboardItem::group
Comment 5 Christophe Fergeau 2015-05-14 14:25:19 UTC
Created attachment 303372 [details] [review]
keyboard: Honor immutable command/name in custom commands

If the gsettings key for the command or name of a custom shortcut is not
writable, the keyboard panel still lets you edit them. This commits
makes the corresponding widgets unsensitive when the gsettings key is
not writable.
Comment 6 Bastien Nocera 2015-05-15 12:12:48 UTC
Review of attachment 303368 [details] [review]:

Sure.
Comment 7 Bastien Nocera 2015-05-15 12:13:07 UTC
Review of attachment 303369 [details] [review]:

Looks good.
Comment 8 Bastien Nocera 2015-05-15 12:17:29 UTC
Review of attachment 303370 [details] [review]:

I would mention though that we don't use it because the descriptions are translated according to KeyList::package before we even tried to assign ::gettext_package.
Comment 9 Bastien Nocera 2015-05-15 12:19:20 UTC
Review of attachment 303371 [details] [review]:

Add a mention that the BindingGroupType is stored in the section tree model instead.
Comment 10 Bastien Nocera 2015-05-15 12:19:49 UTC
Review of attachment 303372 [details] [review]:

Looks good.
Comment 11 Christophe Fergeau 2015-05-15 17:44:19 UTC
Attachment 303368 [details] pushed as b7a2d17 - keyboard: Make CcKeyboardItem::binding private
Attachment 303369 [details] pushed as 241b403 - keyboard: Remove unused cc_keyboard_item_get_binding
Attachment 303370 [details] pushed as b442126 - keyboard: Remove 'gettext_package' handling
Attachment 303371 [details] pushed as 4257d87 - keyboard: Remove unused CcKeyboardItem::group
Attachment 303372 [details] pushed as 5f7ee29 - keyboard: Honor immutable command/name in custom commands