[gtk+/gtk-3-10] GtkSearchBar: replace incomplete example with a real one



commit bde811bed0fe1c6c40fad1ec6cd5a209ea07376b
Author: Xavier Claessens <xavier claessens collabora co uk>
Date:   Wed Oct 9 11:57:42 2013 -0400

    GtkSearchBar: replace incomplete example with a real one
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709745

 gtk/gtksearchbar.c |   20 +++++---------------
 1 files changed, 5 insertions(+), 15 deletions(-)
---
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c
index bf5f2a9..417bc46 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]