~indicator-applet-developers/ubuntu/precise/indicator-appmenu/upstream

« back to all changes in this revision

Viewing changes to docs/devel/html/HudSource.html

  • Committer: Charles Kerr
  • Date: 2012-04-05 16:19:32 UTC
  • mfrom: (1.4.2)
  • Revision ID: charles.kerr@canonical.com-20120405161932-rf6899hc99e99pmb
* New upstream release.
  * Faster searches and better search results. (lp: #947283, lp: #972354)
  * Don't submit searches with zero tokens. (lp: #973203)
  * Propertly emit the WindowUnregistered signal when windows go away.
  * Improvements to the gcov automake rules.
  * Fix bootstrap error in tests.
  - reduce hud cpu usage and DoS on long strings (lp: #938584, lp: #948820)

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
<span class="returnvalue">void</span>                <a class="link" href="HudSource.html#hud-source-changed" title="hud_source_changed ()">hud_source_changed</a>                  (<em class="parameter"><code><a class="link" href="HudSource.html" title="HudSource"><span class="type">HudSource</span></a> *source</code></em>);
51
51
<span class="returnvalue">void</span>                <a class="link" href="HudSource.html#hud-source-search" title="hud_source_search ()">hud_source_search</a>                   (<em class="parameter"><code><a class="link" href="HudSource.html" title="HudSource"><span class="type">HudSource</span></a> *source</code></em>,
52
52
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Pointer-Arrays.html#GPtrArray"><span class="type">GPtrArray</span></a> *results_array</code></em>,
53
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *search_string</code></em>);
 
53
                                                         <em class="parameter"><code><span class="type">HudTokenList</span> *search_tokens</code></em>);
54
54
</pre>
55
55
</div>
56
56
<div class="refsect1">
128
128
<pre class="programlisting">struct HudSourceInterface {
129
129
  GTypeInterface g_iface;
130
130
 
131
 
  void (* use)    (HudSource   *source);
132
 
  void (* unuse)  (HudSource   *source);
133
 
  void (* search) (HudSource   *source,
134
 
                   GPtrArray   *results_array,
135
 
                   const gchar *search_string);
 
131
  void (* use)    (HudSource    *source);
 
132
  void (* unuse)  (HudSource    *source);
 
133
  void (* search) (HudSource    *source,
 
134
                   GPtrArray    *results_array,
 
135
                   HudTokenList *search_tokens);
136
136
};
137
137
</pre>
138
138
<p>
188
188
<a name="hud-source-search"></a><h3>hud_source_search ()</h3>
189
189
<pre class="programlisting"><span class="returnvalue">void</span>                hud_source_search                   (<em class="parameter"><code><a class="link" href="HudSource.html" title="HudSource"><span class="type">HudSource</span></a> *source</code></em>,
190
190
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Pointer-Arrays.html#GPtrArray"><span class="type">GPtrArray</span></a> *results_array</code></em>,
191
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *search_string</code></em>);</pre>
 
191
                                                         <em class="parameter"><code><span class="type">HudTokenList</span> *search_tokens</code></em>);</pre>
192
192
<p>
193
193
Searches for <a href="HudItem.html"><span class="type">HudItems</span></a> in <em class="parameter"><code>source</code></em> that potentially match
194
194
<em class="parameter"><code>search_string</code></em> and creates <a href="HudResult.html"><span class="type">HudResults</span></a> for them, appending them to