From 14873b69ac47432164d8ef306008d58b0211eaae Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Tue, 1 Mar 2011 16:51:25 +0100 Subject: reference: pygtk-gtkmenu.xml: add missing methods and properties --- docs/reference/pygtk-gtkmenu.xml | 100 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 93 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/reference/pygtk-gtkmenu.xml b/docs/reference/pygtk-gtkmenu.xml index 6ef25d68..c8d2dbd5 100644 --- a/docs/reference/pygtk-gtkmenu.xml +++ b/docs/reference/pygtk-gtkmenu.xml @@ -149,6 +149,15 @@ linkend="method-gtkmenu--reorder-child">reorder_child + + set_reserve_toggle_size + reserve_toggle_size + + + get_reserve_toggle_size + + + @@ -233,6 +242,15 @@ linkend="method-gtkmenu--reorder-child">reorder_child Available in GTK+ 2.14. + + "reserve-toggle-size" + Read/Write + Whether the menu reserves space for toggles and icons, regardless of their actual presence. +This property should only be changed from its default value for special-purposes such as tabular menus. Regular menus that are connected to a menu bar or context menus should reserve toggle space for consistency. +Default value: True +Available in GTK+ 2.18. + + "tearoff-state" Read-Write @@ -271,17 +289,40 @@ when this menu is torn-off. Default value: "". + + "arrow-placement" + Read + When the menu is a submenu, position it this number of pixels offset horizontally. +Default value: gtk.ARROWS_BOTH. +Available in GTK+ 2.16 and above. + + + + "arrow-scaling" + Read + Arbitrary constant to scale down the size of the scroll arrow. +Allowed values: [0,1]. +Default value: 0.7 + + + + "double-arrows" + Read + When scrolling, always show both arrows. +Default value: True + + "horizontal-offset" Read When the menu is a submenu, position it this number of pixels offset horizontally. Default value: -2. - - "horizontal-padding" - Read - Extra space at the left and right edges of the menu - + + "horizontal-padding" + Read + Extra space at the left and right edges of the menu + "vertical-offset" @@ -292,8 +333,7 @@ when this menu is torn-off. Default value: "". "vertical-padding" Read - Extra space at the top and bottom of the menu. Allowed -values: >= 0. Default value: 1. + Extra space at the top and bottom of the menu. Allowed values: >= 0. Default value: 1. @@ -1068,6 +1108,52 @@ extend beyond the monitor boundaries or even the screen boundaries. + + gtk.Menu.set_reserve_toggle_size + + + set_reserve_toggle_size + reserve_toggle_size + + + + reserve_toggle_size : + True to reserve size for toggles. + + + + + This method is available in PyGTK 2.22 and above. + + + The set_reserve_toggle_size() method sets whether the menu + should reserve space for drawing toggles or icons, regardless of their actual presence. + + + + + gtk.Menu.get_reserve_toggle_size + + + get_reserve_toggle_size + + + + + Returns : + Whether the menu reserves toggle space. + + + + + This method is available in PyGTK 2.22 and above. + + + The get_reserve_toggle_size() method returns whether the menu + reserves space for toggles and icons, regardless of their actual presence. + + + -- cgit v1.2.1