summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-03 09:58:27 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 22:53:08 -0400
commit99ef14b59fde5bfb2dbfdb0f1b7fe49b8550ddf5 (patch)
treeb1d613f0c6c02a189924821304b98f1be0ee00df /examples
parente2abe6dd2986ac30953a2c8564b3daa9fb5de6c7 (diff)
downloadgtk+-99ef14b59fde5bfb2dbfdb0f1b7fe49b8550ddf5.tar.gz
Use gtk_search_bar_set_child throughout
Diffstat (limited to 'examples')
-rw-r--r--examples/search-bar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/search-bar.c b/examples/search-bar.c
index 1657b2b874..c39dc8c140 100644
--- a/examples/search-bar.c
+++ b/examples/search-bar.c
@@ -19,7 +19,7 @@ activate_cb (GtkApplication *app,
gtk_widget_show (search_bar);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
- gtk_container_add (GTK_CONTAINER (search_bar), box);
+ gtk_search_bar_set_child (GTK_SEARCH_BAR (search_bar), box);
entry = gtk_search_entry_new ();
gtk_widget_set_hexpand (entry, TRUE);