GNOME Bugzilla – Bug 709745
GtkSearchBar example problems
Last modified: 2013-10-10 18:49:07 UTC
In the doc, Example 27. Creating a search bar, has some issues: 1) gtk_container_add (GTK_CONTAINER (searchbar), box); --> searchbar does not exist, it is "bar". 2) gtk_widget_show() is missing on bar, entry, box and menu_button. It is particularly important to note that gtk_widget_show() is required on the GtkSearchBar itself, since it could be confusing because it hides/shows itself. We are also missing an example app that demonstrate how it works, so I suggest writing one and including the .c file in the doc. I like full examples that actually build in the doc :-) Patch coming...
Created attachment 256828 [details] [review] Add example app for GtkSearchBar
Created attachment 256830 [details] [review] GtkSearchBar: replace incomplete example with a real one
Running that example app, I've seen a bug: the window can be shrinked smaller than the minimal size of the searchbar and then the search entry is not displayed anymore.
(In reply to comment #3) > Running that example app, I've seen a bug: the window can be shrinked smaller > than the minimal size of the searchbar and then the search entry is not > displayed anymore. Reported separately in bug #709751
Patches reviewed by Matthias and merged.