]> Pileus Git - ~andy/gtk/commitdiff
Document the "quick-bookmark" binding signal.
authorFederico Mena Quintero <federico@ximian.com>
Wed, 5 Oct 2005 05:12:06 +0000 (05:12 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Wed, 5 Oct 2005 05:12:06 +0000 (05:12 +0000)
2005-10-05  Federico Mena Quintero  <federico@ximian.com>

* gtk/tmpl/gtkfilechooser.sgml: Document the "quick-bookmark"
binding signal.

docs/reference/ChangeLog
docs/reference/gtk/tmpl/gtkfilechooser.sgml

index c4582bb02ee22cbb1cbc0b99ebfe4445c055aaf9..f84396a8f043ffefdda7acd388e5052381dbd40c 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-05  Federico Mena Quintero  <federico@ximian.com>
+
+       * gtk/tmpl/gtkfilechooser.sgml: Document the "quick-bookmark"
+       binding signal.
+
 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
 
        * gtk/tmpl/gtkfilechooser.sgml: Document the "desktop-folder"
index 413756c5443a79a1974f4dbc190545b0f55d8272..11e547ee79999139fe6d7de13da64c702e77d311 100644 (file)
@@ -238,6 +238,10 @@ update_preview_cb (GtkFileChooser *file_chooser, gpointer data)
                <entry>desktop-folder</entry>
                <entry><keycombo><keycap>Alt</keycap><keycap>D</keycap></keycombo></entry>
              </row>
+             <row>
+               <entry>quick-bookmark</entry>
+               <entry><keycombo><keycap>Alt</keycap><keycap>1</keycap></keycombo> through <keycombo><keycap>Alt</keycap><keycap>0</keycap></keycombo></entry>
+             </row>
            </tbody>
          </tgroup>
        </informaltable>
@@ -485,6 +489,60 @@ class "GtkFileChooserDefault" binding "misc-shortcut"
          </varlistentry>
        </variablelist>
       </refsect3>
+
+      <refsect3 id="GtkFileChooserDefault-quick-bookmark">
+       <title>The &quot;GtkFileChooserDefault::quick-bookmark&quot; signal</title>
+
+       <programlisting>
+          void user_function (GtkFileChooserDefault *chooser,
+                              gint bookmark_index,
+                              <link linkend="gpointer">gpointer</link> user_data);
+       </programlisting>
+
+       <para>
+         This is used to make the file chooser switch to the bookmark
+         specified in the <parameter>bookmark_index</parameter> parameter.
+         For example, if you have three bookmarks, you can pass 0, 1, 2 to
+         this signal to switch to each of them, respectively.  By default this is bound to
+         <keycombo><keycap>Alt</keycap><keycap>1</keycap></keycombo>,
+         <keycombo><keycap>Alt</keycap><keycap>2</keycap></keycombo>, 
+         etc. until
+         <keycombo><keycap>Alt</keycap><keycap>0</keycap></keycombo>.  Note
+         that in the default binding,
+         that <keycombo><keycap>Alt</keycap><keycap>1</keycap></keycombo> is
+         actually defined to switch to the bookmark at index 0, and so on
+         successively;
+         <keycombo><keycap>Alt</keycap><keycap>0</keycap></keycombo> is
+         defined to switch to the bookmark at index 10.
+       </para>
+
+       <variablelist role="params">
+         <varlistentry>
+           <term><parameter>chooser</parameter>&nbsp;:</term>
+           <listitem>
+             <simpara>
+               the object which received the signal.
+             </simpara>
+           </listitem>
+         </varlistentry>
+         <varlistentry>
+           <term><parameter>bookmark_indes</parameter>&nbsp;:</term>
+           <listitem>
+             <simpara>
+               index of the bookmark to switch to; the indices start at 0.
+             </simpara>
+           </listitem>
+         </varlistentry>
+         <varlistentry>
+           <term><parameter>user_data</parameter>&nbsp;:</term>
+           <listitem>
+             <simpara>
+               user data set when the signal handler was connected.
+             </simpara>
+           </listitem>
+         </varlistentry>
+       </variablelist>
+      </refsect3>
     </refsect2>
 
 <!-- ##### SECTION See_Also ##### -->