summaryrefslogtreecommitdiff
path: root/gtk/gtksearchbar.c
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2013-10-09 11:57:42 -0400
committerXavier Claessens <xavier.claessens@collabora.co.uk>2013-10-10 14:48:13 -0400
commitd5c36c62ed3a0763399fd9fc3bdcd3a9fce166c5 (patch)
treebed5aadd42540d27c9a73d8e9a30e5d2f0a8613d /gtk/gtksearchbar.c
parent8e9dd8c3aa3408ad50207eb5cbb16cf1daf3dc98 (diff)
downloadgtk+-d5c36c62ed3a0763399fd9fc3bdcd3a9fce166c5.tar.gz
GtkSearchBar: replace incomplete example with a real one
https://bugzilla.gnome.org/show_bug.cgi?id=709745
Diffstat (limited to 'gtk/gtksearchbar.c')
-rw-r--r--gtk/gtksearchbar.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c
index bf5f2a969d..417bc46ff8 100644
--- a/gtk/gtksearchbar.c
+++ b/gtk/gtksearchbar.c
@@ -58,21 +58,11 @@
*
* <example>
* <title>Creating a search bar</title>
- * <programlisting><![CDATA[
- * bar = gtk_search_bar_new ();
- *
- * /<!---->* Create a box for the search entry and related widgets *<---->/
- * entry = gtk_search_entry_new ();
- * 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>
+ * <programlisting>
+ * <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>
+ * </xi:include>
+ * </programlisting>
* </example>
*
* Since: 3.10