gtk2/gtk/gtkapplicationaccelsprivate.h
2020-07-25 00:47:36 +02:00

55 lines
2.2 KiB
C

/*
* Copyright © 2013 Canonical Limited
* Copyright © 2016 Sébastien Wilmet
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the licence, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
* Authors: Ryan Lortie <desrt@desrt.ca>
* Sébastien Wilmet <swilmet@gnome.org>
*/
#ifndef __GTK_APPLICATION_ACCELS_H__
#define __GTK_APPLICATION_ACCELS_H__
#include <gio/gio.h>
#include "gtkwindowprivate.h"
G_BEGIN_DECLS
#define GTK_TYPE_APPLICATION_ACCELS (gtk_application_accels_get_type ())
G_DECLARE_FINAL_TYPE (GtkApplicationAccels, gtk_application_accels,
GTK, APPLICATION_ACCELS,
GObject)
GtkApplicationAccels *
gtk_application_accels_new (void);
void gtk_application_accels_set_accels_for_action (GtkApplicationAccels *accels,
const char *detailed_action_name,
const char * const *accelerators);
char ** gtk_application_accels_get_accels_for_action (GtkApplicationAccels *accels,
const char *detailed_action_name);
char ** gtk_application_accels_get_actions_for_accel (GtkApplicationAccels *accels,
const char *accel);
char ** gtk_application_accels_list_action_descriptions (GtkApplicationAccels *accels);
GListModel * gtk_application_accels_get_shortcuts (GtkApplicationAccels *accels);
G_END_DECLS
#endif /* __GTK_APPLICATION_ACCELS_H__ */