[gnome-control-center/wip/gbsneto/new-keyboard-panel: 4/15] keyboard: add a group field to CcKeyboardItem
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/gbsneto/new-keyboard-panel: 4/15] keyboard: add a group field to CcKeyboardItem
- Date: Thu, 21 Jul 2016 21:40:40 +0000 (UTC)
commit 4fef86047d8aa4af2afc4e213c86f9ed9d8d75cf
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jun 21 14:35:20 2016 -0300
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.
panels/keyboard/cc-keyboard-item.h | 1 +
panels/keyboard/cc-keyboard-panel.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-item.h b/panels/keyboard/cc-keyboard-item.h
index 8792ba0..afe99b6 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 5f6b64d..d3530db 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",
@@ -893,6 +894,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])
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]