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:
Georges Basile Stavracas Neto 2016-06-21 14:35:20 -03:00
parent c4e1ca2ee0
commit d85047d36e
2 changed files with 3 additions and 0 deletions

View file

@ -60,6 +60,7 @@ typedef struct
/* FIXME move to priv? */
guint keyval;
guint keycode;
BindingGroupType group;
GdkModifierType mask;
GtkTreeModel *model;
char *description;

View file

@ -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])
{