summaryrefslogtreecommitdiff
path: root/gtk/gtkaccelmapprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-12-05 17:37:04 -0500
committerRyan Lortie <desrt@desrt.ca>2011-12-19 12:51:11 -0500
commit2398d7e900708bca24cf38bba9d87c920d7bb69f (patch)
tree956157ae1e52e1a8693f3782ef7d00e2a0bd2593 /gtk/gtkaccelmapprivate.h
parentf05cfd55f0e3067e4df1bcabdcd80616b8d0e539 (diff)
downloadgtk+-2398d7e900708bca24cf38bba9d87c920d7bb69f.tar.gz
Introduce gtkaccelmapprivate.h
Move internal accel map API there and update all users. Also, add an internal function to create an accel path for an action and parameter, and use it in gtkapplication.c and gtkmodelmenuitem.c instead of duplicating that code.
Diffstat (limited to 'gtk/gtkaccelmapprivate.h')
-rw-r--r--gtk/gtkaccelmapprivate.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/gtk/gtkaccelmapprivate.h b/gtk/gtkaccelmapprivate.h
new file mode 100644
index 0000000000..52843afc7e
--- /dev/null
+++ b/gtk/gtkaccelmapprivate.h
@@ -0,0 +1,45 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 1998, 2001 Tim Janik
+ *
+ * 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 License, 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, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#ifndef __GTK_ACCEL_MAP_PRIVATE_H__
+#define __GTK_ACCEL_MAP_PRIVATE_H__
+
+
+#include <gtk/gtkaccelmap.h>
+
+G_BEGIN_DECLS
+
+void _gtk_accel_map_init (void);
+
+void _gtk_accel_map_add_group (const gchar *accel_path,
+ GtkAccelGroup *accel_group);
+void _gtk_accel_map_remove_group (const gchar *accel_path,
+ GtkAccelGroup *accel_group);
+gboolean _gtk_accel_path_is_valid (const gchar *accel_path);
+
+gchar * _gtk_accel_path_for_action (const gchar *action_name,
+ GVariant *parameter);
+
+G_END_DECLS
+
+#endif /* __GTK_ACCEL_MAP_PRIVATE_H__ */