From d85047d36e6358a98eb58fa5da4471b0133d2b80 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 21 Jun 2016 14:35:20 -0300 Subject: [PATCH] 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 --- panels/keyboard/cc-keyboard-item.h | 1 + panels/keyboard/cc-keyboard-panel.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/panels/keyboard/cc-keyboard-item.h b/panels/keyboard/cc-keyboard-item.h index 8792ba0af..afe99b648 100644 --- a/panels/keyboard/cc-keyboard-item.h +++ b/panels/keyboard/cc-keyboard-item.h @@ -60,6 +60,7 @@ typedef struct /* FIXME move to priv? */ guint keyval; guint keycode; + BindingGroupType group; GdkModifierType mask; GtkTreeModel *model; char *description; diff --git a/panels/keyboard/cc-keyboard-panel.c b/panels/keyboard/cc-keyboard-panel.c index 44f902e85..aa6659a5b 100644 --- a/panels/keyboard/cc-keyboard-panel.c +++ b/panels/keyboard/cc-keyboard-panel.c @@ -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]) {