Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Copyright © 2013 Red Hat, Inc. |
3 |
|
|
* |
4 |
|
|
* Authors: Joaquim Rocha <jrocha@redhat.com> |
5 |
|
|
* |
6 |
|
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
|
* it under the terms of the GNU General Public License as published by |
8 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
9 |
|
|
* (at your option) any later version. |
10 |
|
|
* |
11 |
|
|
* This program is distributed in the hope that it will be useful, |
12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
|
|
* GNU General Public License for more details. |
15 |
|
|
* |
16 |
|
|
* You should have received a copy of the GNU General Public License |
17 |
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
18 |
|
|
*/ |
19 |
|
|
|
20 |
|
|
#pragma once |
21 |
|
|
|
22 |
|
|
#include <gtk/gtk.h> |
23 |
|
|
#include <gdesktop-enums.h> |
24 |
|
|
|
25 |
|
|
G_BEGIN_DECLS |
26 |
|
|
|
27 |
|
|
#define CC_WACOM_TYPE_BUTTON_ROW (cc_wacom_button_row_get_type ()) |
28 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcWacomButtonRow, cc_wacom_button_row, CC, WACOM_BUTTON_ROW, GtkListBoxRow) |
29 |
|
|
|
30 |
|
|
static struct { |
31 |
|
|
GDesktopPadButtonAction action_type; |
32 |
|
|
const gchar *action_name; |
33 |
|
|
} action_table[] = { |
34 |
|
|
{ G_DESKTOP_PAD_BUTTON_ACTION_NONE, NC_("Wacom action-type", "Application defined") }, |
35 |
|
|
{ G_DESKTOP_PAD_BUTTON_ACTION_KEYBINDING, NC_("Wacom action-type", "Send Keystroke") }, |
36 |
|
|
{ G_DESKTOP_PAD_BUTTON_ACTION_SWITCH_MONITOR, NC_("Wacom action-type", "Switch Monitor") }, |
37 |
|
|
{ G_DESKTOP_PAD_BUTTON_ACTION_HELP, NC_("Wacom action-type", "Show On-Screen Help") } |
38 |
|
|
}; |
39 |
|
|
|
40 |
|
|
GtkWidget * cc_wacom_button_row_new (guint button, |
41 |
|
|
GSettings *settings); |
42 |
|
|
|
43 |
|
|
G_END_DECLS |
44 |
|
|
|