1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>RBSourceHeader</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="Rhythmbox Development Reference Manual">
8
<link rel="up" href="ch05.html" title="Shell">
9
<link rel="prev" href="RBShell.html" title="RBShell">
10
<link rel="next" href="RBStatusbar.html" title="RBStatusbar">
11
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="RBShell.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="ch05.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">Rhythmbox Development Reference Manual</th>
21
<td><a accesskey="n" href="RBStatusbar.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#RBSourceHeader.synopsis" class="shortcut">Top</a>
26
<a href="#RBSourceHeader.description" class="shortcut">Description</a>
28
<a href="#RBSourceHeader.object-hierarchy" class="shortcut">Object Hierarchy</a>
30
<a href="#RBSourceHeader.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
32
<a href="#RBSourceHeader.properties" class="shortcut">Properties</a>
34
<a href="#RBSourceHeader.signals" class="shortcut">Signals</a>
37
<div class="refentry" title="RBSourceHeader">
38
<a name="RBSourceHeader"></a><div class="titlepage"></div>
39
<div class="refnamediv"><table width="100%"><tr>
41
<h2><span class="refentrytitle"><a name="RBSourceHeader.top_of_page"></a>RBSourceHeader</span></h2>
42
<p>RBSourceHeader — container for search box and toolbar</p>
44
<td valign="top" align="right"></td>
46
<div class="refsynopsisdiv" title="Synopsis">
47
<a name="RBSourceHeader.synopsis"></a><h2>Synopsis</h2>
48
<pre class="synopsis"> <a class="link" href="RBSourceHeader.html#RBSourceHeader-struct" title="RBSourceHeader">RBSourceHeader</a>;
49
<a class="link" href="RBSourceHeader.html#RBSourceHeaderClass" title="RBSourceHeaderClass">RBSourceHeaderClass</a>;
50
<a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="returnvalue">RBSourceHeader</span></a> * <a class="link" href="RBSourceHeader.html#rb-source-header-new" title="rb_source_header_new ()">rb_source_header_new</a> (<em class="parameter"><code><span class="type">GtkUIManager</span> *mgr</code></em>,
51
<em class="parameter"><code><span class="type">GtkActionGroup</span> *actiongroup</code></em>);
52
<span class="returnvalue">void</span> <a class="link" href="RBSourceHeader.html#rb-source-header-set-source" title="rb_source_header_set_source ()">rb_source_header_set_source</a> (<em class="parameter"><code><a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a> *header</code></em>,
53
<em class="parameter"><code><a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a> *source</code></em>);
54
<span class="returnvalue">void</span> <a class="link" href="RBSourceHeader.html#rb-source-header-clear-search" title="rb_source_header_clear_search ()">rb_source_header_clear_search</a> (<em class="parameter"><code><a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a> *header</code></em>);
55
<span class="returnvalue">void</span> <a class="link" href="RBSourceHeader.html#rb-source-header-sync-control-state" title="rb_source_header_sync_control_state ()">rb_source_header_sync_control_state</a> (<em class="parameter"><code><a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a> *header</code></em>);
56
<span class="returnvalue">void</span> <a class="link" href="RBSourceHeader.html#rb-source-header-focus-search-box" title="rb_source_header_focus_search_box ()">rb_source_header_focus_search_box</a> (<em class="parameter"><code><a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a> *header</code></em>);
59
<div class="refsect1" title="Object Hierarchy">
60
<a name="RBSourceHeader.object-hierarchy"></a><h2>Object Hierarchy</h2>
61
<pre class="synopsis">
63
+----GInitiallyUnowned
71
<div class="refsect1" title="Implemented Interfaces">
72
<a name="RBSourceHeader.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
74
RBSourceHeader implements
75
AtkImplementorIface and GtkBuildable.</p>
77
<div class="refsect1" title="Properties">
78
<a name="RBSourceHeader.properties"></a><h2>Properties</h2>
79
<pre class="synopsis">
80
"<a class="link" href="RBSourceHeader.html#RBSourceHeader--action-group" title='The "action-group" property'>action-group</a>" <span class="type">GtkActionGroup</span>* : Read / Write / Construct Only
81
"<a class="link" href="RBSourceHeader.html#RBSourceHeader--source" title='The "source" property'>source</a>" <a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a>* : Read / Write
82
"<a class="link" href="RBSourceHeader.html#RBSourceHeader--ui-manager" title='The "ui-manager" property'>ui-manager</a>" <span class="type">GtkUIManager</span>* : Read / Write / Construct Only
85
<div class="refsect1" title="Signals">
86
<a name="RBSourceHeader.signals"></a><h2>Signals</h2>
87
<pre class="synopsis">
88
"<a class="link" href="RBSourceHeader.html#RBSourceHeader-get-search-actions" title='The "get-search-actions" signal'>get-search-actions</a>" : Run Last
89
"<a class="link" href="RBSourceHeader.html#RBSourceHeader-refresh-search-bar" title='The "refresh-search-bar" signal'>refresh-search-bar</a>" : Run Last
92
<div class="refsect1" title="Description">
93
<a name="RBSourceHeader.description"></a><h2>Description</h2>
95
The source header contains the search box and the search
96
action toolbar. It remembers the search text and browser
97
visibility state for each source, applying the stored state
98
for the newly selected source when the source selection changes.
101
The search bar contains a set of actions determined by the
102
selected source. The source is responsible for tracking
103
which search action is active.
106
<div class="refsect1" title="Details">
107
<a name="RBSourceHeader.details"></a><h2>Details</h2>
108
<div class="refsect2" title="RBSourceHeader">
109
<a name="RBSourceHeader-struct"></a><h3>RBSourceHeader</h3>
110
<pre class="programlisting">typedef struct _RBSourceHeader RBSourceHeader;</pre>
115
<div class="refsect2" title="RBSourceHeaderClass">
116
<a name="RBSourceHeaderClass"></a><h3>RBSourceHeaderClass</h3>
117
<pre class="programlisting">typedef struct {
118
GtkTableClass parent_class;
121
void (*refresh_search_bar) (RBSourceHeader *header);
122
} RBSourceHeaderClass;
128
<div class="refsect2" title="rb_source_header_new ()">
129
<a name="rb-source-header-new"></a><h3>rb_source_header_new ()</h3>
130
<pre class="programlisting"><a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="returnvalue">RBSourceHeader</span></a> * rb_source_header_new (<em class="parameter"><code><span class="type">GtkUIManager</span> *mgr</code></em>,
131
<em class="parameter"><code><span class="type">GtkActionGroup</span> *actiongroup</code></em>);</pre>
133
Creates the <a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a>.
135
<div class="variablelist"><table border="0">
136
<col align="left" valign="top">
139
<td><p><span class="term"><em class="parameter"><code>mgr</code></em> :</span></p></td>
140
<td>the <span class="type">GtkUIManager</span>
144
<td><p><span class="term"><em class="parameter"><code>actiongroup</code></em> :</span></p></td>
145
<td>the <span class="type">GtkActionGroup</span> to add actions to
149
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
150
<td> the <a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a> instance
157
<div class="refsect2" title="rb_source_header_set_source ()">
158
<a name="rb-source-header-set-source"></a><h3>rb_source_header_set_source ()</h3>
159
<pre class="programlisting"><span class="returnvalue">void</span> rb_source_header_set_source (<em class="parameter"><code><a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a> *header</code></em>,
160
<em class="parameter"><code><a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a> *source</code></em>);</pre>
162
Updates the source header when a new source is selected.
164
<div class="variablelist"><table border="0">
165
<col align="left" valign="top">
168
<td><p><span class="term"><em class="parameter"><code>header</code></em> :</span></p></td>
169
<td>the <a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a>
173
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
174
<td>the new selected <a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a>
181
<div class="refsect2" title="rb_source_header_clear_search ()">
182
<a name="rb-source-header-clear-search"></a><h3>rb_source_header_clear_search ()</h3>
183
<pre class="programlisting"><span class="returnvalue">void</span> rb_source_header_clear_search (<em class="parameter"><code><a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a> *header</code></em>);</pre>
185
Clears the search box and resets all search state for the
186
current selected source.
188
<div class="variablelist"><table border="0">
189
<col align="left" valign="top">
191
<td><p><span class="term"><em class="parameter"><code>header</code></em> :</span></p></td>
192
<td>the <a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a>
198
<div class="refsect2" title="rb_source_header_sync_control_state ()">
199
<a name="rb-source-header-sync-control-state"></a><h3>rb_source_header_sync_control_state ()</h3>
200
<pre class="programlisting"><span class="returnvalue">void</span> rb_source_header_sync_control_state (<em class="parameter"><code><a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a> *header</code></em>);</pre>
202
Updates the sensitivity and active state of various actions
203
related to the source header.
205
<div class="variablelist"><table border="0">
206
<col align="left" valign="top">
208
<td><p><span class="term"><em class="parameter"><code>header</code></em> :</span></p></td>
209
<td>the <a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a>
215
<div class="refsect2" title="rb_source_header_focus_search_box ()">
216
<a name="rb-source-header-focus-search-box"></a><h3>rb_source_header_focus_search_box ()</h3>
217
<pre class="programlisting"><span class="returnvalue">void</span> rb_source_header_focus_search_box (<em class="parameter"><code><a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a> *header</code></em>);</pre>
219
Grabs input focus for the search box.
221
<div class="variablelist"><table border="0">
222
<col align="left" valign="top">
224
<td><p><span class="term"><em class="parameter"><code>header</code></em> :</span></p></td>
225
<td>the <a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a>
231
<div class="refsect1" title="Property Details">
232
<a name="RBSourceHeader.property-details"></a><h2>Property Details</h2>
233
<div class="refsect2" title='The "action-group" property'>
234
<a name="RBSourceHeader--action-group"></a><h3>The <code class="literal">"action-group"</code> property</h3>
235
<pre class="programlisting"> "action-group" <span class="type">GtkActionGroup</span>* : Read / Write / Construct Only</pre>
237
The <span class="type">GtkActionGroup</span> to add actions to.
241
<div class="refsect2" title='The "source" property'>
242
<a name="RBSourceHeader--source"></a><h3>The <code class="literal">"source"</code> property</h3>
243
<pre class="programlisting"> "source" <a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a>* : Read / Write</pre>
245
The currently selected <a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a>.
249
<div class="refsect2" title='The "ui-manager" property'>
250
<a name="RBSourceHeader--ui-manager"></a><h3>The <code class="literal">"ui-manager"</code> property</h3>
251
<pre class="programlisting"> "ui-manager" <span class="type">GtkUIManager</span>* : Read / Write / Construct Only</pre>
253
The <span class="type">GtkUIManager</span> instance.
257
<div class="refsect1" title="Signal Details">
258
<a name="RBSourceHeader.signal-details"></a><h2>Signal Details</h2>
259
<div class="refsect2" title='The "get-search-actions" signal'>
260
<a name="RBSourceHeader-get-search-actions"></a><h3>The <code class="literal">"get-search-actions"</code> signal</h3>
261
<pre class="programlisting"><span class="returnvalue">GValueArray</span>* user_function (<a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a> *header,
262
<a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a> *arg1,
263
<span class="type">gpointer</span> user_data) : Run Last</pre>
265
Allows signal handlers to add search actions to the search
266
bar by returning an array of search action names.
268
<div class="variablelist"><table border="0">
269
<col align="left" valign="top">
272
<td><p><span class="term"><em class="parameter"><code>header</code></em> :</span></p></td>
273
<td>the <a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a>
277
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
278
<td>user data set when the signal handler was connected.</td>
284
<div class="refsect2" title='The "refresh-search-bar" signal'>
285
<a name="RBSourceHeader-refresh-search-bar"></a><h3>The <code class="literal">"refresh-search-bar"</code> signal</h3>
286
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a> *header,
287
<span class="type">gpointer</span> user_data) : Run Last</pre>
289
An action signal used to repopulate the search bar.
290
This should be called after a signal handler for
291
<span class="type">"get-search-actions"</span> has been connected
294
<div class="variablelist"><table border="0">
295
<col align="left" valign="top">
298
<td><p><span class="term"><em class="parameter"><code>header</code></em> :</span></p></td>
299
<td>the <a class="link" href="RBSourceHeader.html" title="RBSourceHeader"><span class="type">RBSourceHeader</span></a>
303
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
304
<td>user data set when the signal handler was connected.</td>
313
Generated by GTK-Doc V1.15</div>
b'\\ No newline at end of file'