Author: paulp
Date: Tue Jan 29 20:49:58 2008
New Revision: 2955
URL: http://svn.gnome.org/viewvc/pygtk?rev=2955&view=rev

Log:
Add default value to 'pos' argument of gtk.UIManager.insert_action_group().

Modified:
   trunk/ChangeLog
   trunk/docs/reference/ChangeLog
   trunk/docs/reference/pygtk-gtkuimanager.xml
   trunk/gtk/gtk-base.defs

Modified: trunk/docs/reference/pygtk-gtkuimanager.xml
==============================================================================
--- trunk/docs/reference/pygtk-gtkuimanager.xml (original)
+++ trunk/docs/reference/pygtk-gtkuimanager.xml Tue Jan 29 20:49:58 2008
@@ -30,7 +30,7 @@
       <methodsynopsis language="python">
        <methodname><link 
linkend="method-gtkuimanager--insert-action-group">insert_action_group</link></methodname>
        <methodparam><parameter 
role="keyword">action_group</parameter></methodparam>
-       <methodparam><parameter role="keyword">pos</parameter></methodparam>
+       <methodparam><parameter 
role="keyword">pos</parameter><initializer>-1</initializer></methodparam>
       </methodsynopsis>
       <methodsynopsis language="python">
        <methodname><link 
linkend="method-gtkuimanager--remove-action-group">remove_action_group</link></methodname>
@@ -541,7 +541,7 @@
       <programlisting><methodsynopsis language="python">
          <methodname>insert_action_group</methodname>
          <methodparam><parameter 
role="keyword">action_group</parameter></methodparam>
-         <methodparam><parameter role="keyword">pos</parameter></methodparam>
+         <methodparam><parameter 
role="keyword">pos</parameter><initializer>-1</initializer></methodparam>
        </methodsynopsis></programlisting>
       <variablelist>
        <varlistentry>
@@ -561,6 +561,7 @@
 
       <note>
        <para>This method is available in PyGTK 2.4 and above.</para>
+       <para><parameter>pos</parameter> has default value since PyGTK 
2.12.</para>
       </note>
 
       <para>The <methodname>insert_action_group</methodname>() method
@@ -568,8 +569,9 @@
 linkend="class-gtkactiongroup"><classname>gtk.ActionGroup</classname></link>
 specified by <parameter>action_group</parameter> into the list of associated
 action groups at the position specified by
-<parameter>pos</parameter>. Actions in earlier groups hide actions with the
-same name in later groups.</para>
+<parameter>pos</parameter>. If <parameter>pos</parameter> is negative, new
+action group is inserted at the end of the list. Actions in earlier groups
+hide actions with the same name in later groups.</para>
 
     </refsect2>
 

Modified: trunk/gtk/gtk-base.defs
==============================================================================
--- trunk/gtk/gtk-base.defs     (original)
+++ trunk/gtk/gtk-base.defs     Tue Jan 29 20:49:58 2008
@@ -25331,7 +25331,7 @@
   (return-type "none")
   (parameters
     '("GtkActionGroup*" "action_group")
-    '("gint" "pos")
+    '("gint" "pos" (default "-1"))
   )
 )
 
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to