diff options
author | Tim Janik <timj@src.gnome.org> | 2008-06-20 11:06:52 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2008-06-20 11:06:52 +0000 |
commit | f61c3111760d20e2a7f394c54700c7b31812797f (patch) | |
tree | f9999921a81685538bbc00cde62d8a6623be71e5 /gtk/gtkmenu.h | |
parent | f79c213b33bf934c098683253c7d44b53193124b (diff) | |
download | gtk+-f61c3111760d20e2a7f394c54700c7b31812797f.tar.gz |
Seal GtkMenu
svn path=/trunk/; revision=20589
Diffstat (limited to 'gtk/gtkmenu.h')
-rw-r--r-- | gtk/gtkmenu.h | 64 |
1 files changed, 33 insertions, 31 deletions
diff --git a/gtk/gtkmenu.h b/gtk/gtkmenu.h index 3174bd420d..9271451a7e 100644 --- a/gtk/gtkmenu.h +++ b/gtk/gtkmenu.h @@ -60,55 +60,55 @@ typedef void (*GtkMenuDetachFunc) (GtkWidget *attach_widget, struct _GtkMenu { - GtkMenuShell menu_shell; + GtkMenuShell GSEAL (menu_shell); - GtkWidget *parent_menu_item; - GtkWidget *old_active_menu_item; + GtkWidget *GSEAL (parent_menu_item); + GtkWidget *GSEAL (old_active_menu_item); - GtkAccelGroup *accel_group; - gchar *accel_path; - GtkMenuPositionFunc position_func; - gpointer position_func_data; + GtkAccelGroup *GSEAL (accel_group); + gchar *GSEAL (accel_path); + GtkMenuPositionFunc GSEAL (position_func); + gpointer GSEAL (position_func_data); - guint toggle_size; + guint GSEAL (toggle_size); /* Do _not_ touch these widgets directly. We hide the reference * count from the toplevel to the menu, so it must be restored * before operating on these widgets */ - GtkWidget *toplevel; + GtkWidget *GSEAL (toplevel); - GtkWidget *tearoff_window; - GtkWidget *tearoff_hbox; - GtkWidget *tearoff_scrollbar; - GtkAdjustment *tearoff_adjustment; - - GdkWindow *view_window; - GdkWindow *bin_window; - - gint scroll_offset; - gint saved_scroll_offset; - gint scroll_step; - guint timeout_id; + GtkWidget *GSEAL (tearoff_window); + GtkWidget *GSEAL (tearoff_hbox); + GtkWidget *GSEAL (tearoff_scrollbar); + GtkAdjustment *GSEAL (tearoff_adjustment); + + GdkWindow *GSEAL (view_window); + GdkWindow *GSEAL (bin_window); + + gint GSEAL (scroll_offset); + gint GSEAL (saved_scroll_offset); + gint GSEAL (scroll_step); + guint GSEAL (timeout_id); /* When a submenu of this menu is popped up, motion in this * region is ignored */ - GdkRegion *navigation_region; - guint navigation_timeout; + GdkRegion *GSEAL (navigation_region); + guint GSEAL (navigation_timeout); - guint needs_destruction_ref_count : 1; - guint torn_off : 1; + guint GSEAL (needs_destruction_ref_count : 1); + guint GSEAL (torn_off : 1); /* The tearoff is active when it is torn off and the not-torn-off * menu is not popped up. */ - guint tearoff_active : 1; + guint GSEAL (tearoff_active : 1); - guint scroll_fast : 1; + guint GSEAL (scroll_fast : 1); - guint upper_arrow_visible : 1; - guint lower_arrow_visible : 1; - guint upper_arrow_prelight : 1; - guint lower_arrow_prelight : 1; + guint GSEAL (upper_arrow_visible : 1); + guint GSEAL (lower_arrow_visible : 1); + guint GSEAL (upper_arrow_prelight : 1); + guint GSEAL (lower_arrow_prelight : 1); }; struct _GtkMenuClass @@ -157,6 +157,7 @@ void gtk_menu_set_accel_group (GtkMenu *menu, GtkAccelGroup* gtk_menu_get_accel_group (GtkMenu *menu); void gtk_menu_set_accel_path (GtkMenu *menu, const gchar *accel_path); +const gchar* gtk_menu_get_accel_path (GtkMenu *menu); /* A reference count is kept for a widget when it is attached to * a particular widget. This is typically a menu item; it may also @@ -200,6 +201,7 @@ void gtk_menu_attach (GtkMenu *menu, void gtk_menu_set_monitor (GtkMenu *menu, gint monitor_num); +gint gtk_menu_get_monitor (GtkMenu *menu); GList* gtk_menu_get_for_attach_widget (GtkWidget *widget); #ifndef GTK_DISABLE_DEPRECATED |