summaryrefslogtreecommitdiff
path: root/gtk/gtksearchbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-02 17:02:42 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 22:53:08 -0400
commit649ae635a7a6791ed4f6b67d2422dc1eb948ab54 (patch)
tree9bc4a0e26627cf999b1eee457d2e31226bc5b4c0 /gtk/gtksearchbar.c
parent686be577d5e2a5acbf7da08369128461d019b26d (diff)
downloadgtk+-649ae635a7a6791ed4f6b67d2422dc1eb948ab54.tar.gz
Use gtk_revealer_set_child throughout
Replace all uses of gtk_container_add on revealers with gtk_revealer_set_child.
Diffstat (limited to 'gtk/gtksearchbar.c')
-rw-r--r--gtk/gtksearchbar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c
index d69e941476..7a2e6178f3 100644
--- a/gtk/gtksearchbar.c
+++ b/gtk/gtksearchbar.c
@@ -355,8 +355,7 @@ gtk_search_bar_init (GtkSearchBar *bar)
gtk_center_box_set_end_widget (GTK_CENTER_BOX (priv->box_center), priv->close_button);
gtk_widget_hide (priv->close_button);
- gtk_container_add (GTK_CONTAINER (priv->revealer), priv->box_center);
-
+ gtk_revealer_set_child (GTK_REVEALER (priv->revealer), priv->box_center);
g_signal_connect (priv->revealer, "notify::reveal-child",
G_CALLBACK (reveal_child_changed_cb), bar);