~noskcaj/ubuntu/vivid/thunar/1.6.4

« back to all changes in this revision

Viewing changes to docs/reference/thunarx/html/ThunarxRenamer.html

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2010-12-04 16:46:20 UTC
  • mto: (2.1.3 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 69.
  • Revision ID: james.westby@ubuntu.com-20101204164620-h7p4t2e9z6hfhz6l
Tags: upstream-1.1.4
Import upstream version 1.1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
                    <a class="link" href="ThunarxRenamer.html#ThunarxRenamer-struct" title="ThunarxRenamer">ThunarxRenamer</a>;
52
52
                    <a class="link" href="ThunarxRenamer.html#ThunarxRenamerClass" title="ThunarxRenamerClass">ThunarxRenamerClass</a>;
53
 
const <span class="returnvalue">gchar</span> *       <a class="link" href="ThunarxRenamer.html#thunarx-renamer-get-help-url" title="thunarx_renamer_get_help_url ()">thunarx_renamer_get_help_url</a>        (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>);
 
53
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="ThunarxRenamer.html#thunarx-renamer-get-help-url" title="thunarx_renamer_get_help_url ()">thunarx_renamer_get_help_url</a>        (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>);
54
54
<span class="returnvalue">void</span>                <a class="link" href="ThunarxRenamer.html#thunarx-renamer-set-help-url" title="thunarx_renamer_set_help_url ()">thunarx_renamer_set_help_url</a>        (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
55
 
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *help_url</code></em>);
56
 
const <span class="returnvalue">gchar</span> *       <a class="link" href="ThunarxRenamer.html#thunarx-renamer-get-name" title="thunarx_renamer_get_name ()">thunarx_renamer_get_name</a>            (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>);
 
55
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *help_url</code></em>);
 
56
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="ThunarxRenamer.html#thunarx-renamer-get-name" title="thunarx_renamer_get_name ()">thunarx_renamer_get_name</a>            (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>);
57
57
<span class="returnvalue">void</span>                <a class="link" href="ThunarxRenamer.html#thunarx-renamer-set-name" title="thunarx_renamer_set_name ()">thunarx_renamer_set_name</a>            (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
58
 
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);
59
 
<span class="returnvalue">gchar</span> *             <a class="link" href="ThunarxRenamer.html#thunarx-renamer-process" title="thunarx_renamer_process ()">thunarx_renamer_process</a>             (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
 
58
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
 
59
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="ThunarxRenamer.html#thunarx-renamer-process" title="thunarx_renamer_process ()">thunarx_renamer_process</a>             (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
60
60
                                                         <em class="parameter"><code><a class="link" href="ThunarxFileInfo.html" title="ThunarxFileInfo"><span class="type">ThunarxFileInfo</span></a> *file</code></em>,
61
 
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
62
 
                                                         <em class="parameter"><code><span class="type">guint</span> index</code></em>);
 
61
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
 
62
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index</code></em>);
63
63
<span class="returnvalue">void</span>                <a class="link" href="ThunarxRenamer.html#thunarx-renamer-load" title="thunarx_renamer_load ()">thunarx_renamer_load</a>                (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
64
 
                                                         <em class="parameter"><code><span class="type">GHashTable</span> *settings</code></em>);
 
64
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *settings</code></em>);
65
65
<span class="returnvalue">void</span>                <a class="link" href="ThunarxRenamer.html#thunarx-renamer-save" title="thunarx_renamer_save ()">thunarx_renamer_save</a>                (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
66
 
                                                         <em class="parameter"><code><span class="type">GHashTable</span> *settings</code></em>);
67
 
<span class="returnvalue">GList</span> *             <a class="link" href="ThunarxRenamer.html#thunarx-renamer-get-actions" title="thunarx_renamer_get_actions ()">thunarx_renamer_get_actions</a>         (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
68
 
                                                         <em class="parameter"><code><span class="type">GtkWindow</span> *window</code></em>,
69
 
                                                         <em class="parameter"><code><span class="type">GList</span> *files</code></em>);
 
66
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *settings</code></em>);
 
67
<a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="ThunarxRenamer.html#thunarx-renamer-get-actions" title="thunarx_renamer_get_actions ()">thunarx_renamer_get_actions</a>         (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
 
68
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk/GtkWindow.html"><span class="type">GtkWindow</span></a> *window</code></em>,
 
69
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *files</code></em>);
70
70
<span class="returnvalue">void</span>                <a class="link" href="ThunarxRenamer.html#thunarx-renamer-changed" title="thunarx_renamer_changed ()">thunarx_renamer_changed</a>             (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>);
71
71
</pre>
72
72
</div>
73
73
<div class="refsect1" title="Object Hierarchy">
74
74
<a name="ThunarxRenamer.object-hierarchy"></a><h2>Object Hierarchy</h2>
75
75
<pre class="synopsis">
76
 
  GObject
77
 
   +----GInitiallyUnowned
78
 
         +----GtkObject
79
 
               +----GtkWidget
80
 
                     +----GtkContainer
81
 
                           +----GtkBox
82
 
                                 +----GtkVBox
 
76
  <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
 
77
   +----<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
 
78
         +----<a href="/usr/share/gtk-doc/html/gtk/GtkObject.html">GtkObject</a>
 
79
               +----<a href="/usr/share/gtk-doc/html/gtk/GtkWidget.html">GtkWidget</a>
 
80
                     +----<a href="/usr/share/gtk-doc/html/gtk/GtkContainer.html">GtkContainer</a>
 
81
                           +----<a href="/usr/share/gtk-doc/html/gtk/GtkBox.html">GtkBox</a>
 
82
                                 +----<a href="/usr/share/gtk-doc/html/gtk/GtkVBox.html">GtkVBox</a>
83
83
                                       +----ThunarxRenamer
84
84
</pre>
85
85
</div>
87
87
<a name="ThunarxRenamer.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
88
88
<p>
89
89
ThunarxRenamer implements
90
 
 AtkImplementorIface,  GtkBuildable and  GtkOrientable.</p>
 
90
 AtkImplementorIface,  <a href="/usr/share/gtk-doc/html/gtk/gtk-gtkbuildable.html#GtkBuildable">GtkBuildable</a> and  <a href="/usr/share/gtk-doc/html/gtk/gtk-Orientable.html#GtkOrientable">GtkOrientable</a>.</p>
91
91
</div>
92
92
<div class="refsect1" title="Properties">
93
93
<a name="ThunarxRenamer.properties"></a><h2>Properties</h2>
94
94
<pre class="synopsis">
95
 
  "<a class="link" href="ThunarxRenamer.html#ThunarxRenamer--help-url" title='The "help-url" property'>help-url</a>"                 <span class="type">gchar</span>*                : Read / Write
96
 
  "<a class="link" href="ThunarxRenamer.html#ThunarxRenamer--name" title='The "name" property'>name</a>"                     <span class="type">gchar</span>*                : Read / Write / Construct Only
 
95
  "<a class="link" href="ThunarxRenamer.html#ThunarxRenamer--help-url" title='The "help-url" property'>help-url</a>"                 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write
 
96
  "<a class="link" href="ThunarxRenamer.html#ThunarxRenamer--name" title='The "name" property'>name</a>"                     <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write / Construct Only
97
97
</pre>
98
98
</div>
99
99
<div class="refsect1" title="Signals">
202
202
<hr>
203
203
<div class="refsect2" title="thunarx_renamer_get_help_url ()">
204
204
<a name="thunarx-renamer-get-help-url"></a><h3>thunarx_renamer_get_help_url ()</h3>
205
 
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       thunarx_renamer_get_help_url        (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>);</pre>
 
205
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       thunarx_renamer_get_help_url        (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>);</pre>
206
206
<p>
207
207
Returns the URL of the documentation for <em class="parameter"><code>renamer</code></em>
208
 
or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if no specific documentation is available
 
208
or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no specific documentation is available
209
209
for <em class="parameter"><code>renamer</code></em> and the general documentation of the
210
210
Thunar renamers should be displayed instead.
211
211
</p>
229
229
<div class="refsect2" title="thunarx_renamer_set_help_url ()">
230
230
<a name="thunarx-renamer-set-help-url"></a><h3>thunarx_renamer_set_help_url ()</h3>
231
231
<pre class="programlisting"><span class="returnvalue">void</span>                thunarx_renamer_set_help_url        (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
232
 
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *help_url</code></em>);</pre>
 
232
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *help_url</code></em>);</pre>
233
233
<p>
234
234
The URL to the documentation of this <a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a>.
235
235
Derived classes can set this property to point to the
261
261
<hr>
262
262
<div class="refsect2" title="thunarx_renamer_get_name ()">
263
263
<a name="thunarx-renamer-get-name"></a><h3>thunarx_renamer_get_name ()</h3>
264
 
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       thunarx_renamer_get_name            (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>);</pre>
 
264
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       thunarx_renamer_get_name            (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>);</pre>
265
265
<p>
266
266
Returns the user visible name for <em class="parameter"><code>renamer</code></em>, previously
267
267
set with <a class="link" href="ThunarxRenamer.html#thunarx-renamer-set-name" title="thunarx_renamer_set_name ()"><code class="function">thunarx_renamer_set_name()</code></a>.
286
286
<div class="refsect2" title="thunarx_renamer_set_name ()">
287
287
<a name="thunarx-renamer-set-name"></a><h3>thunarx_renamer_set_name ()</h3>
288
288
<pre class="programlisting"><span class="returnvalue">void</span>                thunarx_renamer_set_name            (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
289
 
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);</pre>
 
289
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
290
290
<p>
291
291
Sets the user visible name for <em class="parameter"><code>renamer</code></em> to <em class="parameter"><code>name</code></em>. This method should
292
292
only be called by derived classes and prior to returning the <em class="parameter"><code>renamer</code></em>
311
311
<hr>
312
312
<div class="refsect2" title="thunarx_renamer_process ()">
313
313
<a name="thunarx-renamer-process"></a><h3>thunarx_renamer_process ()</h3>
314
 
<pre class="programlisting"><span class="returnvalue">gchar</span> *             thunarx_renamer_process             (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
 
314
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             thunarx_renamer_process             (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
315
315
                                                         <em class="parameter"><code><a class="link" href="ThunarxFileInfo.html" title="ThunarxFileInfo"><span class="type">ThunarxFileInfo</span></a> *file</code></em>,
316
 
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
317
 
                                                         <em class="parameter"><code><span class="type">guint</span> index</code></em>);</pre>
 
316
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
 
317
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index</code></em>);</pre>
318
318
<p>
319
319
Determines the replacement for <em class="parameter"><code>text</code></em> (which is the relevant
320
320
part of the full <em class="parameter"><code>file</code></em> name, i.e. either the suffix, the name
322
322
</p>
323
323
<p>
324
324
The caller is responsible to free the returned string using
325
 
<code class="function">g_free()</code> when no longer needed.
 
325
<a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when no longer needed.
326
326
</p>
327
327
<div class="variablelist"><table border="0">
328
328
<col align="left" valign="top">
347
347
</tr>
348
348
<tr>
349
349
<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td>
350
 
<td>the index of the file in the list, used
351
 
           for renamers that work on numbering.
 
350
<td>
352
351
</td>
353
352
</tr>
354
353
<tr>
363
362
<div class="refsect2" title="thunarx_renamer_load ()">
364
363
<a name="thunarx-renamer-load"></a><h3>thunarx_renamer_load ()</h3>
365
364
<pre class="programlisting"><span class="returnvalue">void</span>                thunarx_renamer_load                (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
366
 
                                                         <em class="parameter"><code><span class="type">GHashTable</span> *settings</code></em>);</pre>
 
365
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *settings</code></em>);</pre>
367
366
<p>
368
367
Tells <em class="parameter"><code>renamer</code></em> to load its internal settings from the specified
369
368
<em class="parameter"><code>settings</code></em>. The <em class="parameter"><code>settings</code></em> hash table contains previously saved
374
373
Implementations of <a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> may decide to override this
375
374
method to perform custom loading of settings. If you do not
376
375
override this method, the default method of <a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a>
377
 
will be used, which simply loads all <span class="type">GObject</span> properties
 
376
will be used, which simply loads all <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> properties
378
377
provided by <em class="parameter"><code>renamer</code></em>s class (excluding the ones
379
378
provided by the parent classes) from the <em class="parameter"><code>settings</code></em>. The
380
 
<span class="type">GObject</span> properties must be transformable to strings and
 
379
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> properties must be transformable to strings and
381
380
from strings.
382
381
</p>
383
382
<p>
394
393
</tr>
395
394
<tr>
396
395
<td><p><span class="term"><em class="parameter"><code>settings</code></em> :</span></p></td>
397
 
<td>a <span class="type">GHashTable</span> which contains the previously saved
 
396
<td>a <a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> which contains the previously saved
398
397
            settings for <em class="parameter"><code>renamer</code></em> as key/value pairs of strings.
399
398
</td>
400
399
</tr>
405
404
<div class="refsect2" title="thunarx_renamer_save ()">
406
405
<a name="thunarx-renamer-save"></a><h3>thunarx_renamer_save ()</h3>
407
406
<pre class="programlisting"><span class="returnvalue">void</span>                thunarx_renamer_save                (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
408
 
                                                         <em class="parameter"><code><span class="type">GHashTable</span> *settings</code></em>);</pre>
 
407
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *settings</code></em>);</pre>
409
408
<p>
410
409
Tells <em class="parameter"><code>renamer</code></em> to save its internal settings to the specified
411
410
<em class="parameter"><code>settings</code></em>, which can afterwards be loaded by <a class="link" href="ThunarxRenamer.html#thunarx-renamer-load" title="thunarx_renamer_load ()"><code class="function">thunarx_renamer_load()</code></a>.
412
411
</p>
413
412
<p>
414
 
The strings saved to <em class="parameter"><code>settings</code></em> must be allocated by <code class="function">g_strdup()</code>,
 
413
The strings saved to <em class="parameter"><code>settings</code></em> must be allocated by <a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strdup"><code class="function">g_strdup()</code></a>,
415
414
both the keys and the values. For example to store the string
416
415
<code class="literal">Bar</code> for the setting <code class="literal">Foo</code>,
417
416
you'd use:
418
417
</p>
419
 
<div class="informalexample"><pre class="programlisting">
420
 
g_hash_table_replace (settings, g_strdup ("Foo"), g_strdup ("Bar"));
421
 
</pre></div>
 
418
<div class="informalexample">
 
419
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
 
420
    <tbody>
 
421
      <tr>
 
422
        <td class="listing_lines" align="right"><pre>1</pre></td>
 
423
        <td class="listing_code"><pre class="programlisting"><span class="function"><a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#g-hash-table-replace">g_hash_table_replace</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">settings</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Foo"</span><span class="symbol">),</span><span class="normal"> </span><span class="function"><a href="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Bar"</span><span class="symbol">));</span></pre></td>
 
424
      </tr>
 
425
    </tbody>
 
426
  </table>
 
427
</div>
 
428
 
422
429
<p>
423
430
</p>
424
431
<p>
425
432
Implementations of <a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> may decide to override this
426
433
method to perform custom saving of settings. If you do not overrride
427
434
this method, the default method of <a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> will be used,
428
 
which simply stores all <span class="type">GObject</span> properties provided by the
 
435
which simply stores all <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> properties provided by the
429
436
<em class="parameter"><code>renamer</code></em>s class (excluding the ones provided by the parent
430
 
classes) to the <em class="parameter"><code>settings</code></em>. The <span class="type">GObject</span> properties must be transformable
 
437
classes) to the <em class="parameter"><code>settings</code></em>. The <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> properties must be transformable
431
438
to strings.
432
439
</p>
433
440
<p>
444
451
</tr>
445
452
<tr>
446
453
<td><p><span class="term"><em class="parameter"><code>settings</code></em> :</span></p></td>
447
 
<td>a <span class="type">GHashTable</span> to which the current settings of <em class="parameter"><code>renamer</code></em>
 
454
<td>a <a href="/usr/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> to which the current settings of <em class="parameter"><code>renamer</code></em>
448
455
            should be stored as key/value pairs of strings.
449
456
</td>
450
457
</tr>
454
461
<hr>
455
462
<div class="refsect2" title="thunarx_renamer_get_actions ()">
456
463
<a name="thunarx-renamer-get-actions"></a><h3>thunarx_renamer_get_actions ()</h3>
457
 
<pre class="programlisting"><span class="returnvalue">GList</span> *             thunarx_renamer_get_actions         (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
458
 
                                                         <em class="parameter"><code><span class="type">GtkWindow</span> *window</code></em>,
459
 
                                                         <em class="parameter"><code><span class="type">GList</span> *files</code></em>);</pre>
 
464
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             thunarx_renamer_get_actions         (<em class="parameter"><code><a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer</code></em>,
 
465
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk/GtkWindow.html"><span class="type">GtkWindow</span></a> *window</code></em>,
 
466
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *files</code></em>);</pre>
460
467
<p>
461
 
Returns the list of <span class="type">GtkAction</span>s provided by <em class="parameter"><code>renamer</code></em> for
462
 
the given list of <em class="parameter"><code>files</code></em>. By default, this method returns <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
 
468
Returns the list of <a href="/usr/share/gtk-doc/html/gtk/GtkAction.html"><span class="type">GtkAction</span></a>s provided by <em class="parameter"><code>renamer</code></em> for
 
469
the given list of <em class="parameter"><code>files</code></em>. By default, this method returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
463
470
(the empty list), but derived classes may override this method
464
471
to provide additional actions for files in the bulk renamer
465
472
dialog list.
466
473
</p>
467
474
<p>
468
 
The returned <span class="type">GtkAction</span>s will be displayed in the file's
 
475
The returned <a href="/usr/share/gtk-doc/html/gtk/GtkAction.html"><span class="type">GtkAction</span></a>s will be displayed in the file's
469
476
context menu of the bulk renamer dialog, when this <em class="parameter"><code>renamer</code></em> is
470
477
active. For example, an ID3-Tag based renamer may add an action
471
478
"Edit Tags" to the context menus of supported media files and,
472
479
when activated, display a dialog (which should be transient and
473
 
modal for <em class="parameter"><code>window</code></em>, if not <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>), which allows the users to edit
 
480
modal for <em class="parameter"><code>window</code></em>, if not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>), which allows the users to edit
474
481
media file tags on-the-fly.
475
482
</p>
476
483
<p>
487
494
Some actions may only work properly if only a single file ist
488
495
selected (for example, the ID3-Tag renamer will probably only
489
496
supporting editing one file at a time). In this case you have
490
 
basicly two options: Either you can return <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> here if <em class="parameter"><code>files</code></em>
 
497
basicly two options: Either you can return <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> here if <em class="parameter"><code>files</code></em>
491
498
does not contain exactly one item, or you can return the actions
492
499
as usual, but make them insensitive, using:
493
500
</p>
494
 
<div class="informalexample"><pre class="programlisting">
495
 
gtk_action_set_sensitive (action, FALSE);
496
 
</pre></div>
 
501
<div class="informalexample">
 
502
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
 
503
    <tbody>
 
504
      <tr>
 
505
        <td class="listing_lines" align="right"><pre>1</pre></td>
 
506
        <td class="listing_code"><pre class="programlisting"><span class="function"><a href="/usr/share/gtk-doc/html/gtk/GtkAction.html#gtk-action-set-sensitive">gtk_action_set_sensitive</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">action</span><span class="symbol">,</span><span class="normal"> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span></pre></td>
 
507
      </tr>
 
508
    </tbody>
 
509
  </table>
 
510
</div>
 
511
 
497
512
<p>
498
513
The latter has the advantage that the user will still notice the
499
514
existance of the action and probably realize that it can only be
503
518
The caller is responsible to free the returned list using something
504
519
like the following:
505
520
</p>
506
 
<div class="informalexample"><pre class="programlisting">
507
 
g_list_foreach (list, (GFunc) g_object_unref, NULL);
508
 
g_list_free (list);
509
 
</pre></div>
 
521
<div class="informalexample">
 
522
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
 
523
    <tbody>
 
524
      <tr>
 
525
        <td class="listing_lines" align="right"><pre>1
 
526
2</pre></td>
 
527
        <td class="listing_code"><pre class="programlisting"><span class="function"><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-foreach">g_list_foreach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">list</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GFunc">GFunc</a></span><span class="symbol">)</span><span class="normal"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="symbol">,</span><span class="normal"> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
 
528
<span class="function"><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free">g_list_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">list</span><span class="symbol">);</span></pre></td>
 
529
      </tr>
 
530
    </tbody>
 
531
  </table>
 
532
</div>
 
533
 
510
534
<p>
511
535
</p>
512
536
<p>
513
537
As a special note, this method automatically takes a reference on the
514
 
<em class="parameter"><code>renamer</code></em> for every <span class="type">GtkAction</span> object returned from the real implementation
 
538
<em class="parameter"><code>renamer</code></em> for every <a href="/usr/share/gtk-doc/html/gtk/GtkAction.html"><span class="type">GtkAction</span></a> object returned from the real implementation
515
539
of this method in <em class="parameter"><code>renamer</code></em>. This is to make sure that the extension stays
516
540
in memory for atleast the time that the actions are used.
517
541
</p>
518
542
<p>
519
 
The <span class="type">GtkAction</span>s returned from this method must be namespaced with
 
543
The <a href="/usr/share/gtk-doc/html/gtk/GtkAction.html"><span class="type">GtkAction</span></a>s returned from this method must be namespaced with
520
544
the module to avoid collision with internal file manager actions and
521
545
actions provided by other extensions. For example, the menu action
522
546
provided by the ID3-Tag renamer mentioned above, should be named
523
547
<code class="literal">TagRenamer::edit-tags</code> (if <code class="literal">TagRenamer</code>
524
 
is the class name). For additional information about the way <span class="type">GtkAction</span>s
 
548
is the class name). For additional information about the way <a href="/usr/share/gtk-doc/html/gtk/GtkAction.html"><span class="type">GtkAction</span></a>s
525
549
should be returned from extensions and the way they are used, read the
526
550
description of the <a class="link" href="ThunarxMenuProvider.html" title="ThunarxMenuProvider"><span class="type">ThunarxMenuProvider</span></a> interface or read the introduction
527
551
provided with this reference manual.
530
554
A note of warning concerning the <em class="parameter"><code>window</code></em> parameter. Plugins should
531
555
avoid taking a reference on <em class="parameter"><code>window</code></em>, as that might introduce a
532
556
circular reference and can thereby cause a quite large memory leak.
533
 
Instead, if <em class="parameter"><code>window</code></em> is not <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>, add a weak reference using the
534
 
<code class="function">g_object_weak_ref()</code> or <code class="function">g_object_add_weak_pointer()</code> method. But don't
 
557
Instead, if <em class="parameter"><code>window</code></em> is not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, add a weak reference using the
 
558
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-weak-ref"><code class="function">g_object_weak_ref()</code></a> or <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-add-weak-pointer"><code class="function">g_object_add_weak_pointer()</code></a> method. But don't
535
559
forget to release the weak reference if <em class="parameter"><code>window</code></em> survived the lifetime
536
560
of your action (which is likely to be the case in most situations).
537
561
</p>
545
569
</tr>
546
570
<tr>
547
571
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
548
 
<td>a <span class="type">GtkWindow</span> or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
 
572
<td>a <a href="/usr/share/gtk-doc/html/gtk/GtkWindow.html"><span class="type">GtkWindow</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
549
573
</td>
550
574
</tr>
551
575
<tr>
552
576
<td><p><span class="term"><em class="parameter"><code>files</code></em> :</span></p></td>
553
 
<td>a <span class="type">GList</span> of <a class="link" href="ThunarxFileInfo.html" title="ThunarxFileInfo"><span class="type">ThunarxFileInfo</span></a>s.
 
577
<td>a <a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="ThunarxFileInfo.html" title="ThunarxFileInfo"><span class="type">ThunarxFileInfo</span></a>s.
554
578
</td>
555
579
</tr>
556
580
<tr>
557
581
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
558
 
<td> the list of <span class="type">GtkAction</span>s provided by <em class="parameter"><code>renamer</code></em>
 
582
<td> the list of <a href="/usr/share/gtk-doc/html/gtk/GtkAction.html"><span class="type">GtkAction</span></a>s provided by <em class="parameter"><code>renamer</code></em>
559
583
              for the given list of <em class="parameter"><code>files</code></em>.
560
584
</td>
561
585
</tr>
586
610
<a name="ThunarxRenamer.property-details"></a><h2>Property Details</h2>
587
611
<div class="refsect2" title='The "help-url" property'>
588
612
<a name="ThunarxRenamer--help-url"></a><h3>The <code class="literal">"help-url"</code> property</h3>
589
 
<pre class="programlisting">  "help-url"                 <span class="type">gchar</span>*                : Read / Write</pre>
 
613
<pre class="programlisting">  "help-url"                 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write</pre>
590
614
<p>
591
615
The URL to the documentation of this <a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a>.
592
616
Derived classes can set this property to point to the
604
628
<hr>
605
629
<div class="refsect2" title='The "name" property'>
606
630
<a name="ThunarxRenamer--name"></a><h3>The <code class="literal">"name"</code> property</h3>
607
 
<pre class="programlisting">  "name"                     <span class="type">gchar</span>*                : Read / Write / Construct Only</pre>
 
631
<pre class="programlisting">  "name"                     <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write / Construct Only</pre>
608
632
<p>
609
633
The user visible name of the renamer, that is displayed
610
634
in the bulk rename dialog of the file manager. Derived
618
642
<div class="refsect2" title='The "changed" signal'>
619
643
<a name="ThunarxRenamer-changed"></a><h3>The <code class="literal">"changed"</code> signal</h3>
620
644
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="ThunarxRenamer.html" title="ThunarxRenamer"><span class="type">ThunarxRenamer</span></a> *renamer,
621
 
                                                        <span class="type">gpointer</span>        user_data)      : Run First</pre>
 
645
                                                        <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>        user_data)      : Run First</pre>
622
646
<p>
623
647
Derived classes should emit this signal using the
624
648
<a class="link" href="ThunarxRenamer.html#thunarx-renamer-changed" title="thunarx_renamer_changed ()"><code class="function">thunarx_renamer_changed()</code></a> method whenever the user