diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-03 09:58:27 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-04 22:53:08 -0400 |
commit | 99ef14b59fde5bfb2dbfdb0f1b7fe49b8550ddf5 (patch) | |
tree | b1d613f0c6c02a189924821304b98f1be0ee00df /examples | |
parent | e2abe6dd2986ac30953a2c8564b3daa9fb5de6c7 (diff) | |
download | gtk+-99ef14b59fde5bfb2dbfdb0f1b7fe49b8550ddf5.tar.gz |
Use gtk_search_bar_set_child throughout
Diffstat (limited to 'examples')
-rw-r--r-- | examples/search-bar.c | 2 |
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); |