diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-18 17:31:31 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2011-01-04 23:37:06 +0900 |
commit | f15a589651889fae1c2436f052b9f960d46b482a (patch) | |
tree | ec1907e93fe596e6e012cc2bc0adf8d8bf11c59b /gtk/gtkmenuitem.h | |
parent | 5e8e4429c785dbe6720b8509113bdf9622d0c948 (diff) | |
download | gtk+-f15a589651889fae1c2436f052b9f960d46b482a.tar.gz |
Added gtk_menu_item_set/get_reserve_indicator.
This is needed by GtkTreeMenu to ensure that child menu items
reserve space for the submenu indicator even if they dont have
submenus... in this way we ensure the same size of all cell
areas in the menu items at allocation/request time.
Diffstat (limited to 'gtk/gtkmenuitem.h')
-rw-r--r-- | gtk/gtkmenuitem.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkmenuitem.h b/gtk/gtkmenuitem.h index c0a51e496c..efa1bf0bbd 100644 --- a/gtk/gtkmenuitem.h +++ b/gtk/gtkmenuitem.h @@ -119,6 +119,19 @@ void gtk_menu_item_set_use_underline (GtkMenuItem *menu_item, gboolean setting); gboolean gtk_menu_item_get_use_underline (GtkMenuItem *menu_item); +void gtk_menu_item_set_reserve_indicator(GtkMenuItem *menu_item, + gboolean reserve); +gboolean gtk_menu_item_get_reserve_indicator(GtkMenuItem *menu_item); + +/* private */ +void _gtk_menu_item_refresh_accel_path (GtkMenuItem *menu_item, + const gchar *prefix, + GtkAccelGroup *accel_group, + gboolean group_changed); +gboolean _gtk_menu_item_is_selectable (GtkWidget *menu_item); +void _gtk_menu_item_popup_submenu (GtkWidget *menu_item, + gboolean with_delay); +void _gtk_menu_item_popdown_submenu (GtkWidget *menu_item); G_END_DECLS |