Commit d85047d3 authored by Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto
Browse files

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
parent c4e1ca2e
......@@ -60,6 +60,7 @@ typedef struct
/* FIXME move to priv? */
guint keyval;
guint keycode;
BindingGroupType group;
GdkModifierType mask;
GtkTreeModel *model;
char *description;
......
......@@ -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])
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment