diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-02 17:02:42 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-04 22:53:08 -0400 |
commit | 649ae635a7a6791ed4f6b67d2422dc1eb948ab54 (patch) | |
tree | 9bc4a0e26627cf999b1eee457d2e31226bc5b4c0 /gtk/gtksearchbar.c | |
parent | 686be577d5e2a5acbf7da08369128461d019b26d (diff) | |
download | gtk+-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.c | 3 |
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); |