keyboard: add a group field to CcKeyboardItem
This group field will be consumed by the next patches in order to provide the correct ordering of elements in the listbox. https://bugzilla.gnome.org/show_bug.cgi?id=769063
This commit is contained in:
parent
c4e1ca2ee0
commit
d85047d36e
2 changed files with 3 additions and 0 deletions
|
@ -285,6 +285,7 @@ append_section (CcKeyboardPanel *self,
|
|||
|
||||
cc_keyboard_item_set_hidden (item, keys_list[i].hidden);
|
||||
item->model = shortcut_model;
|
||||
item->group = group;
|
||||
|
||||
g_signal_connect (G_OBJECT (item),
|
||||
"notify",
|
||||
|
@ -864,6 +865,7 @@ add_custom_shortcut (CcKeyboardPanel *self,
|
|||
g_free (settings_path);
|
||||
|
||||
item->model = model;
|
||||
item->group = BINDING_GROUP_USER;
|
||||
|
||||
if (edit_custom_shortcut (self, item) && item->command && item->command[0])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue