]> Pileus Git - ~andy/gtk/blob - gtk/gtkmenuitemprivate.h
bd916e90aceb3f88451c1808d27a279978cc0e9c
[~andy/gtk] / gtk / gtkmenuitemprivate.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __GTK_MENU_ITEM_PRIVATE_H__
21 #define __GTK_MENU_ITEM_PRIVATE_H__
22
23 #include <gtk/gtkmenuitem.h>
24 #include <gtk/gtkaction.h>
25
26
27 G_BEGIN_DECLS
28
29 struct _GtkMenuItemPrivate
30 {
31   GtkWidget *submenu;
32   GdkWindow *event_window;
33
34   guint16 toggle_size;
35   guint16 accelerator_width;
36
37   guint timer;
38
39   gchar  *accel_path;
40
41   GtkAction *action;
42
43   guint show_submenu_indicator : 1;
44   guint submenu_placement      : 1;
45   guint submenu_direction      : 1;
46   guint right_justify          : 1;
47   guint timer_from_keypress    : 1;
48   guint from_menubar           : 1;
49   guint use_action_appearance  : 1;
50   guint reserve_indicator      : 1;
51 };
52
53 void     _gtk_menu_item_refresh_accel_path   (GtkMenuItem   *menu_item,
54                                               const gchar   *prefix,
55                                               GtkAccelGroup *accel_group,
56                                               gboolean       group_changed);
57 gboolean _gtk_menu_item_is_selectable        (GtkWidget     *menu_item);
58 void     _gtk_menu_item_popup_submenu        (GtkWidget     *menu_item,
59                                               gboolean       with_delay);
60 void     _gtk_menu_item_popdown_submenu      (GtkWidget     *menu_item);
61 void      _gtk_menu_item_refresh_accel_path  (GtkMenuItem   *menu_item,
62                                               const gchar   *prefix,
63                                               GtkAccelGroup *accel_group,
64                                               gboolean       group_changed);
65 gboolean  _gtk_menu_item_is_selectable       (GtkWidget     *menu_item);
66 void      _gtk_menu_item_popup_submenu       (GtkWidget     *menu_item,
67                                               gboolean       with_delay);
68 void      _gtk_menu_item_popdown_submenu     (GtkWidget     *menu_item);
69
70 G_END_DECLS
71
72 #endif /* __GTK_MENU_ITEM_PRIVATE_H__ */