summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGian Mario Tagliaretti <gianmt@src.gnome.org>2007-07-25 21:49:41 +0000
committerGian Mario Tagliaretti <gianmt@src.gnome.org>2007-07-25 21:49:41 +0000
commit29f0671d74c1a7b36027da6d5f38d165f873ab5c (patch)
tree68b29f1ed6968f606a2faade704b8b5a46a74255
parent7060d1d8d0fe7a6be017fd7cdc710696fa06f8a0 (diff)
downloadpygtk-29f0671d74c1a7b36027da6d5f38d165f873ab5c.tar.gz
Updated gtk.Action docs with 2.12 API
svn path=/trunk/; revision=2860
-rw-r--r--docs/reference/ChangeLog4
-rw-r--r--docs/reference/pygtk-gtkaction.xml40
2 files changed, 44 insertions, 0 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog
index c35979b9..49f5ded1 100644
--- a/docs/reference/ChangeLog
+++ b/docs/reference/ChangeLog
@@ -1,5 +1,9 @@
2007-07-25 Gian Mario Tagliaretti <gianmt@gnome.org>
+ * pygtk-gtkaction.xml: Update with 2.12 API.
+
+2007-07-25 Gian Mario Tagliaretti <gianmt@gnome.org>
+
* pygtk-gtkaboutdialog.xml: Update with 2.12 API.
2007-07-25 Gian Mario Tagliaretti <gianmt@gnome.org>
diff --git a/docs/reference/pygtk-gtkaction.xml b/docs/reference/pygtk-gtkaction.xml
index 51e38a8f..ef1b073f 100644
--- a/docs/reference/pygtk-gtkaction.xml
+++ b/docs/reference/pygtk-gtkaction.xml
@@ -50,6 +50,10 @@ item (new in PyGTK 2.4)</refpurpose>
<methodparam><parameter role="keyword">icon_size</parameter></methodparam>
</methodsynopsis>
<methodsynopsis language="python">
+ <methodname><link linkend="method-gtkaction--create-menu">create_menu</link></methodname>
+ <methodparam></methodparam>
+ </methodsynopsis>
+ <methodsynopsis language="python">
<methodname><link linkend="method-gtkaction--create-menu-item">create_menu_item</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
@@ -125,6 +129,15 @@ item (new in PyGTK 2.4)</refpurpose>
</synopsis>
</refsect1>
+
+ <refsect1>
+ <title>Implemented Interfaces</title>
+ <para>
+ <link linkend="class-gtkaction"><classname>gtk.Action</classname></link>
+ implements
+ <link linkend="class-gtkbuildable"><classname>gtk.Buildable</classname></link>
+ </para>
+ </refsect1>
<refsect1 id="properties-gtkaction">
<title>gtk.Action Properties</title>
@@ -583,6 +596,33 @@ linkend="class-gtkaction"><classname>gtk.Action</classname></link>
implementations to create icons displayed in the proxy widgets.</para>
</refsect2>
+
+ <refsect2 id="method-gtkaction--create-menu">
+ <title>gtk.Action.create_menu</title>
+
+ <programlisting><methodsynopsis language="python">
+ <methodname>create_menu</methodname>
+ <methodparam></methodparam>
+ </methodsynopsis></programlisting>
+ <variablelist>
+ <varlistentry>
+ <term><emphasis>Returns</emphasis>&nbsp;:</term>
+ <listitem><simpara>the menu item provided by the action, or
+ <literal>None</literal>.</simpara></listitem>
+ </varlistentry>
+ </variablelist>
+
+ <note>
+ <para>This method is available in PyGTK 2.12 and above.</para>
+ </note>
+
+ <para>
+ If action provides a <link linkend="class-gtkmenu"><classname>gtk.Menu</classname></link>.
+ widget as a submenu for the menu item or the toolbar item it creates, <methodname>create_menu</methodname>() method
+ returns an instance of that menu.
+ </para>
+
+ </refsect2>
<refsect2 id="method-gtkaction--create-menu-item">
<title>gtk.Action.create_menu_item</title>