summaryrefslogtreecommitdiff
path: root/gtk/gtkmenuprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-08-28 21:24:11 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-08-28 21:24:11 -0400
commitaf8539bf11fd4e7084d304a6f33a46431f025741 (patch)
treeaab20e0cadcc1d23d7f1c9e9e9c808486b541fed /gtk/gtkmenuprivate.h
parenteb10e6b128aba98f24d4d28f9c9501278e1e8c5a (diff)
downloadgtk+-af8539bf11fd4e7084d304a6f33a46431f025741.tar.gz
Move deprectated menu enumerations to a private header
The GtkSubmenuDirection and GtkSubmenuPlacement enumerations have been deprecated as public API for a while, but are still used internally in the menu code. Move them to a private header. This also prevents to generation of GObject boilerplate for these enums.
Diffstat (limited to 'gtk/gtkmenuprivate.h')
-rw-r--r--gtk/gtkmenuprivate.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/gtk/gtkmenuprivate.h b/gtk/gtkmenuprivate.h
new file mode 100644
index 0000000000..9c1e0b39d2
--- /dev/null
+++ b/gtk/gtkmenuprivate.h
@@ -0,0 +1,44 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
+ *
+ * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+/*
+ * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
+ * file for a list of people on the GTK+ Team. See the ChangeLog
+ * files for a list of changes. These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
+#ifndef __GTK_MENU_PRIVATE_H__
+#define __GTK_MENU_PRIVATE_H__
+
+/* Directions for submenus */
+typedef enum
+{
+ GTK_DIRECTION_LEFT,
+ GTK_DIRECTION_RIGHT
+} GtkSubmenuDirection;
+
+/* Placement of submenus */
+typedef enum
+{
+ GTK_TOP_BOTTOM,
+ GTK_LEFT_RIGHT
+} GtkSubmenuPlacement;
+
+
+#endif /* __GTK_MENU_PRIVATE_H__ */