1/*
2 * Copyright © 2013 Canonical Limited
3 * Copyright © 2016 Sébastien Wilmet
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the licence, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Ryan Lortie <desrt@desrt.ca>
19 * Sébastien Wilmet <swilmet@gnome.org>
20 */
21
22#ifndef __GTK_APPLICATION_ACCELS_H__
23#define __GTK_APPLICATION_ACCELS_H__
24
25#include <gio/gio.h>
26#include "gtkwindowprivate.h"
27
28G_BEGIN_DECLS
29
30#define GTK_TYPE_APPLICATION_ACCELS (gtk_application_accels_get_type ())
31G_DECLARE_FINAL_TYPE (GtkApplicationAccels, gtk_application_accels,
32 GTK, APPLICATION_ACCELS,
33 GObject)
34
35GtkApplicationAccels *
36 gtk_application_accels_new (void);
37
38void gtk_application_accels_set_accels_for_action (GtkApplicationAccels *accels,
39 const char *detailed_action_name,
40 const char * const *accelerators);
41
42char ** gtk_application_accels_get_accels_for_action (GtkApplicationAccels *accels,
43 const char *detailed_action_name);
44
45char ** gtk_application_accels_get_actions_for_accel (GtkApplicationAccels *accels,
46 const char *accel);
47
48char ** gtk_application_accels_list_action_descriptions (GtkApplicationAccels *accels);
49
50GListModel * gtk_application_accels_get_shortcuts (GtkApplicationAccels *accels);
51
52G_END_DECLS
53
54#endif /* __GTK_APPLICATION_ACCELS_H__ */
55

source code of gtk/gtk/gtkapplicationaccelsprivate.h