Line |
Branch |
Exec |
Source |
1 |
|
|
/* cc-panel-list.c |
2 |
|
|
* |
3 |
|
|
* Copyright (C) 2016 Endless, Inc |
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: Georges Basile Stavracas Neto <gbsneto@gnome.org> |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#pragma once |
22 |
|
|
|
23 |
|
|
#include <glib-object.h> |
24 |
|
|
|
25 |
|
|
#include "cc-panel.h" |
26 |
|
|
#include "cc-shell-model.h" |
27 |
|
|
|
28 |
|
|
G_BEGIN_DECLS |
29 |
|
|
|
30 |
|
|
typedef enum |
31 |
|
|
{ |
32 |
|
|
CC_PANEL_LIST_MAIN, |
33 |
|
|
CC_PANEL_LIST_SEARCH |
34 |
|
|
} CcPanelListView; |
35 |
|
|
|
36 |
|
|
#define CC_TYPE_PANEL_LIST (cc_panel_list_get_type()) |
37 |
|
|
|
38 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcPanelList, cc_panel_list, CC, PANEL_LIST, AdwBin) |
39 |
|
|
|
40 |
|
|
GtkWidget* cc_panel_list_new (void); |
41 |
|
|
|
42 |
|
|
gboolean cc_panel_list_activate (CcPanelList *self); |
43 |
|
|
|
44 |
|
|
const gchar* cc_panel_list_get_search_query (CcPanelList *self); |
45 |
|
|
|
46 |
|
|
void cc_panel_list_set_search_query (CcPanelList *self, |
47 |
|
|
const gchar *search); |
48 |
|
|
|
49 |
|
|
CcPanelListView cc_panel_list_get_view (CcPanelList *self); |
50 |
|
|
|
51 |
|
|
void cc_panel_list_add_panel (CcPanelList *self, |
52 |
|
|
CcPanelCategory category, |
53 |
|
|
const gchar *id, |
54 |
|
|
const gchar *title, |
55 |
|
|
const gchar *description, |
56 |
|
|
const GStrv keywords, |
57 |
|
|
const gchar *icon, |
58 |
|
|
CcPanelVisibility visibility); |
59 |
|
|
|
60 |
|
|
const gchar* cc_panel_list_get_current_panel (CcPanelList *self); |
61 |
|
|
|
62 |
|
|
void cc_panel_list_set_active_panel (CcPanelList *self, |
63 |
|
|
const gchar *id); |
64 |
|
|
|
65 |
|
|
void cc_panel_list_set_panel_visibility (CcPanelList *self, |
66 |
|
|
const gchar *id, |
67 |
|
|
CcPanelVisibility visibility); |
68 |
|
|
|
69 |
|
|
void cc_panel_list_set_selection_mode (CcPanelList *self, |
70 |
|
|
GtkSelectionMode selection_mode); |
71 |
|
|
void cc_panel_list_center_activated_row (CcPanelList *self, |
72 |
|
|
gboolean val); |
73 |
|
|
|
74 |
|
|
G_END_DECLS |
75 |
|
|
|