8
8
<link rel="up" href="ch07.html" title="Widgets">
9
9
<link rel="prev" href="RBSearchEntry.html" title="RBSearchEntry">
10
10
<link rel="next" href="RBURIDialog.html" title="RBURIDialog">
11
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
47
47
<a name="RBSongInfo.synopsis"></a><h2>Synopsis</h2>
48
48
<pre class="synopsis">struct <a class="link" href="RBSongInfo.html#RBSongInfo-struct" title="struct RBSongInfo">RBSongInfo</a>;
49
49
struct <a class="link" href="RBSongInfo.html#RBSongInfoClass" title="struct RBSongInfoClass">RBSongInfoClass</a>;
50
<a href="http://library.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="RBSongInfo.html#rb-song-info-new" title="rb_song_info_new ()">rb_song_info_new</a> (<em class="parameter"><code><a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a> *source</code></em>,
50
<span class="returnvalue">GtkWidget</span> * <a class="link" href="RBSongInfo.html#rb-song-info-new" title="rb_song_info_new ()">rb_song_info_new</a> (<em class="parameter"><code><a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a> *source</code></em>,
51
51
<em class="parameter"><code><a class="link" href="RBEntryView.html" title="RBEntryView"><span class="type">RBEntryView</span></a> *entry_view</code></em>);
52
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <a class="link" href="RBSongInfo.html#rb-song-info-append-page" title="rb_song_info_append_page ()">rb_song_info_append_page</a> (<em class="parameter"><code><a class="link" href="RBSongInfo.html" title="RBSongInfo"><span class="type">RBSongInfo</span></a> *info</code></em>,
52
<span class="returnvalue">guint</span> <a class="link" href="RBSongInfo.html#rb-song-info-append-page" title="rb_song_info_append_page ()">rb_song_info_append_page</a> (<em class="parameter"><code><a class="link" href="RBSongInfo.html" title="RBSongInfo"><span class="type">RBSongInfo</span></a> *info</code></em>,
53
53
<em class="parameter"><code>const <span class="type">char</span> *title</code></em>,
54
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk/GtkWidget.html"><span class="type">GtkWidget</span></a> *page</code></em>);
54
<em class="parameter"><code><span class="type">GtkWidget</span> *page</code></em>);
57
57
<div class="refsect1">
58
58
<a name="RBSongInfo.object-hierarchy"></a><h2>Object Hierarchy</h2>
59
59
<pre class="synopsis">
60
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
61
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
62
+----<a href="http://library.gnome.org/devel/gtk/GtkWidget.html">GtkWidget</a>
63
+----<a href="http://library.gnome.org/devel/gtk/GtkContainer.html">GtkContainer</a>
64
+----<a href="http://library.gnome.org/devel/gtk/GtkBin.html">GtkBin</a>
65
+----<a href="http://library.gnome.org/devel/gtk/GtkWindow.html">GtkWindow</a>
66
+----<a href="http://library.gnome.org/devel/gtk/GtkDialog.html">GtkDialog</a>
61
+----GInitiallyUnowned
71
71
<a name="RBSongInfo.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
73
73
RBSongInfo implements
74
AtkImplementorIface and <a href="http://library.gnome.org/devel/gtk/GtkBuildable.html">GtkBuildable</a>.</p>
74
AtkImplementorIface and GtkBuildable.</p>
76
76
<div class="refsect1">
77
77
<a name="RBSongInfo.properties"></a><h2>Properties</h2>
78
78
<pre class="synopsis">
79
79
"<a class="link" href="RBSongInfo.html#RBSongInfo--current-entry" title='The "current-entry" property'>current-entry</a>" <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>* : Read
80
80
"<a class="link" href="RBSongInfo.html#RBSongInfo--entry-view" title='The "entry-view" property'>entry-view</a>" <a class="link" href="RBEntryView.html" title="RBEntryView"><span class="type">RBEntryView</span></a>* : Read / Write / Construct Only
81
"<a class="link" href="RBSongInfo.html#RBSongInfo--selected-entries" title='The "selected-entries" property'>selected-entries</a>" <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Value-arrays.html#GValueArray"><span class="type">GValueArray</span></a>* : Read
81
"<a class="link" href="RBSongInfo.html#RBSongInfo--selected-entries" title='The "selected-entries" property'>selected-entries</a>" <span class="type">GValueArray</span>* : Read
82
82
"<a class="link" href="RBSongInfo.html#RBSongInfo--source" title='The "source" property'>source</a>" <a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a>* : Read / Write / Construct Only
85
85
<div class="refsect1">
86
86
<a name="RBSongInfo.signals"></a><h2>Signals</h2>
87
87
<pre class="synopsis">
88
"<a class="link" href="RBSongInfo.html#RBSongInfo-post-metadata-change" title='The "post-metadata-change" signal'>post-metadata-change</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
89
"<a class="link" href="RBSongInfo.html#RBSongInfo-pre-metadata-change" title='The "pre-metadata-change" signal'>pre-metadata-change</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
88
"<a class="link" href="RBSongInfo.html#RBSongInfo-post-metadata-change" title='The "post-metadata-change" signal'>post-metadata-change</a>" : <code class="literal">Run Last</code>
89
"<a class="link" href="RBSongInfo.html#RBSongInfo-pre-metadata-change" title='The "pre-metadata-change" signal'>pre-metadata-change</a>" : <code class="literal">Run Last</code>
92
92
<div class="refsect1">
99
99
This class has two modes. It can display and edit properties of a single
100
entry, in which case it uses a <a href="http://library.gnome.org/devel/gtk/GtkNotebook.html"><span class="type">GtkNotebook</span></a> to split the properties across
100
entry, in which case it uses a <span class="type">GtkNotebook</span> to split the properties across
101
101
'basic' and 'details' pages, and it can display and edit properties of
102
102
multiple entries at a time, in which case a smaller set of properties is
103
103
displayed in a single set.
106
In single-entry mode, it is possible to add extra pages to the <a href="http://library.gnome.org/devel/gtk/GtkNotebook.html"><span class="type">GtkNotebook</span></a>
106
In single-entry mode, it is possible to add extra pages to the <span class="type">GtkNotebook</span>
107
107
widget in the dialog. The 'create-song-info' signal is emitted by the <a class="link" href="RBShell.html" title="RBShell"><span class="type">RBShell</span></a>
108
108
object, allowing signal handlers to add pages by calling <a class="link" href="RBSongInfo.html#rb-song-info-append-page" title="rb_song_info_append_page ()"><span class="type">rb_song_info_append_page</span></a>.
109
109
The lyrics plugin is currently the only place where this ability is used.
146
146
<div class="refsect2">
147
147
<a name="rb-song-info-new"></a><h3>rb_song_info_new ()</h3>
148
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * rb_song_info_new (<em class="parameter"><code><a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a> *source</code></em>,
148
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * rb_song_info_new (<em class="parameter"><code><a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a> *source</code></em>,
149
149
<em class="parameter"><code><a class="link" href="RBEntryView.html" title="RBEntryView"><span class="type">RBEntryView</span></a> *entry_view</code></em>);</pre>
151
151
Creates a new <a class="link" href="RBSongInfo.html" title="RBSongInfo"><span class="type">RBSongInfo</span></a> for the selected entry or entries in
174
174
<div class="refsect2">
175
175
<a name="rb-song-info-append-page"></a><h3>rb_song_info_append_page ()</h3>
176
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> rb_song_info_append_page (<em class="parameter"><code><a class="link" href="RBSongInfo.html" title="RBSongInfo"><span class="type">RBSongInfo</span></a> *info</code></em>,
176
<pre class="programlisting"><span class="returnvalue">guint</span> rb_song_info_append_page (<em class="parameter"><code><a class="link" href="RBSongInfo.html" title="RBSongInfo"><span class="type">RBSongInfo</span></a> *info</code></em>,
177
177
<em class="parameter"><code>const <span class="type">char</span> *title</code></em>,
178
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk/GtkWidget.html"><span class="type">GtkWidget</span></a> *page</code></em>);</pre>
178
<em class="parameter"><code><span class="type">GtkWidget</span> *page</code></em>);</pre>
180
180
Adds a new page to the song properties window. Should be called
181
181
in a handler connected to the <a class="link" href="RBShell.html" title="RBShell"><span class="type">RBShell</span></a> 'create-song-info' signal.
229
229
<div class="refsect2">
230
230
<a name="RBSongInfo--selected-entries"></a><h3>The <code class="literal">"selected-entries"</code> property</h3>
231
<pre class="programlisting"> "selected-entries" <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Value-arrays.html#GValueArray"><span class="type">GValueArray</span></a>* : Read</pre>
231
<pre class="programlisting"> "selected-entries" <span class="type">GValueArray</span>* : Read</pre>
233
233
The set of <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> objects currently being displayed. Valid for both
234
234
single-entry and multiple-entry song properties windows.
251
251
<a name="RBSongInfo-post-metadata-change"></a><h3>The <code class="literal">"post-metadata-change"</code> signal</h3>
252
252
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RBSongInfo.html" title="RBSongInfo"><span class="type">RBSongInfo</span></a> *song_info,
253
253
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry,
254
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
254
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
256
256
Emitted just after changes have been applied to the database.
257
257
Probably useless.
279
279
<a name="RBSongInfo-pre-metadata-change"></a><h3>The <code class="literal">"pre-metadata-change"</code> signal</h3>
280
280
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RBSongInfo.html" title="RBSongInfo"><span class="type">RBSongInfo</span></a> *song_info,
281
281
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry,
282
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
282
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
284
284
Emitted just before the changes made in the song properties window
285
285
are applied to the database. This is only emitted in the single-entry