[gnome-control-center] keyboard: remove CcKeyboardItem.model
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: remove CcKeyboardItem.model
- Date: Mon, 29 Jun 2020 00:31:53 +0000 (UTC)
commit 0a50d2b7ecdc921455b913ef558e6f7b39f05c2d
Author: Ian Douglas Scott <idscott system76 com>
Date: Fri Jun 26 15:11:35 2020 -0700
keyboard: remove CcKeyboardItem.model
No longer set without `shortcuts_model`. This wasn't being used anyway.
panels/keyboard/cc-keyboard-item.c | 9 ---------
panels/keyboard/cc-keyboard-item.h | 4 ----
2 files changed, 13 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-item.c b/panels/keyboard/cc-keyboard-item.c
index ddb9aec96..853c5986b 100644
--- a/panels/keyboard/cc-keyboard-item.c
+++ b/panels/keyboard/cc-keyboard-item.c
@@ -44,7 +44,6 @@ struct _CcKeyboardItem
CcKeyCombo *primary_combo;
BindingGroupType group;
- GtkTreeModel *model;
char *description;
gboolean editable;
GList *key_combos;
@@ -859,14 +858,6 @@ cc_keyboard_item_get_item_type (CcKeyboardItem *item)
return item->type;
}
-void
-cc_keyboard_item_set_model (CcKeyboardItem *item, GtkTreeModel *model, BindingGroupType group)
-{
- g_return_if_fail (CC_IS_KEYBOARD_ITEM (item));
- item->model = model;
- item->group = group;
-}
-
const gchar *
cc_keyboard_item_get_gsettings_path (CcKeyboardItem *item)
{
diff --git a/panels/keyboard/cc-keyboard-item.h b/panels/keyboard/cc-keyboard-item.h
index cb3ca723d..2c344a773 100644
--- a/panels/keyboard/cc-keyboard-item.h
+++ b/panels/keyboard/cc-keyboard-item.h
@@ -96,10 +96,6 @@ const gchar* cc_keyboard_item_get_key (CcKeyboardItem
CcKeyboardItemType cc_keyboard_item_get_item_type (CcKeyboardItem *self);
-void cc_keyboard_item_set_model (CcKeyboardItem *self,
- GtkTreeModel *model,
- BindingGroupType group);
-
const gchar* cc_keyboard_item_get_gsettings_path (CcKeyboardItem *self);
GSettings* cc_keyboard_item_get_settings (CcKeyboardItem *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]