GCC Code Coverage Report


Directory: ./
File: panels/keyboard/cc-keyboard-shortcut-group.h
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 1 0.0%
Branches: 0 6 0.0%

Line Branch Exec Source
1 /* -*- mode: c; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * Copyright (C) 2022 Purism SPC
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, see <http://www.gnu.org/licenses/>.
17 *
18 * Author(s):
19 * Mohammed Sadiq <sadiq@sadiqpk.org>
20 *
21 * SPDX-License-Identifier: GPL-2.0-or-later
22 */
23
24 #pragma once
25
26 #include <adwaita.h>
27
28 #include "cc-keyboard-manager.h"
29 #include "cc-keyboard-shortcut-editor.h"
30
31 G_BEGIN_DECLS
32
33 #define CC_TYPE_KEYBOARD_SHORTCUT_GROUP (cc_keyboard_shortcut_group_get_type ())
34
35 G_DECLARE_FINAL_TYPE (CcKeyboardShortcutGroup, cc_keyboard_shortcut_group, CC, KEYBOARD_SHORTCUT_GROUP, AdwPreferencesGroup)
36
37 GtkWidget *cc_keyboard_shortcut_group_new (GListModel *shortcut_items,
38 const char *section_id,
39 const char *section_title,
40 CcKeyboardManager *manager,
41 CcKeyboardShortcutEditor *shortcut_editor,
42 GtkSizeGroup *size_group);
43 GListModel *cc_keyboard_shortcut_group_get_model (CcKeyboardShortcutGroup *self);
44 void cc_keyboard_shortcut_group_set_filter (CcKeyboardShortcutGroup *self,
45 GStrv search_terms);
46
47 G_END_DECLS
48