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>);
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">
77
+----GInitiallyUnowned
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
87
87
<a name="ThunarxRenamer.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
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>
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
99
99
<div class="refsect1" title="Signals">
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>
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.
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>
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
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
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>
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>.
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>,
419
<div class="informalexample"><pre class="programlisting">
420
g_hash_table_replace (settings, g_strdup ("Foo"), g_strdup ("Bar"));
418
<div class="informalexample">
419
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
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>
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
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>
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
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.
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:
494
<div class="informalexample"><pre class="programlisting">
495
gtk_action_set_sensitive (action, FALSE);
501
<div class="informalexample">
502
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
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>
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:
506
<div class="informalexample"><pre class="programlisting">
507
g_list_foreach (list, (GFunc) g_object_unref, NULL);
521
<div class="informalexample">
522
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
525
<td class="listing_lines" align="right"><pre>1
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>
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.
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).
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>.
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.
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>.