GtkSearchBar: replace incomplete example with a real one
https://bugzilla.gnome.org/show_bug.cgi?id=709745
This commit is contained in:
parent
8e9dd8c3aa
commit
d5c36c62ed
@ -58,21 +58,11 @@
|
|||||||
*
|
*
|
||||||
* <example>
|
* <example>
|
||||||
* <title>Creating a search bar</title>
|
* <title>Creating a search bar</title>
|
||||||
* <programlisting><![CDATA[
|
* <programlisting>
|
||||||
* bar = gtk_search_bar_new ();
|
* <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../examples/search-bar.c">
|
||||||
*
|
* <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
|
||||||
* /<!---->* Create a box for the search entry and related widgets *<---->/
|
* </xi:include>
|
||||||
* entry = gtk_search_entry_new ();
|
* </programlisting>
|
||||||
* box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
|
|
||||||
* gtk_box_pack_start (GTK_BOX (box), entry, TRUE, TRUE, 0);
|
|
||||||
* /<!---->* Add a menu button to select the category of the search *<---->/
|
|
||||||
* menu_button = gtk_menu_button_new ();
|
|
||||||
* gtk_box_pack_start (GTK_BOX (box), menu_button, FALSE, FALSE, 0);
|
|
||||||
* gtk_container_add (GTK_CONTAINER (searchbar), box);
|
|
||||||
*
|
|
||||||
* /<!---->* And tell the search bar about the search entry *<---->/
|
|
||||||
* gtk_search_bar_connect_entry (GTK_SEARCH_BAR (bar), entry);
|
|
||||||
* ]]></programlisting>
|
|
||||||
* </example>
|
* </example>
|
||||||
*
|
*
|
||||||
* Since: 3.10
|
* Since: 3.10
|
||||||
|
Loading…
Reference in New Issue
Block a user