summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2021-09-14 12:22:45 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2021-09-14 12:22:45 +0500
commit099c9236797a0b66282d46175175ff9c25de366a (patch)
tree1d30eddcb4dfe6b2ae5fa7586385e70142ecfee4
parent2a12a3e6d904225a74f82d02c3b6aadbbd453323 (diff)
downloadgtk+-099c9236797a0b66282d46175175ff9c25de366a.tar.gz
searchbar: Vertically center the close button
-rw-r--r--gtk/gtksearchbar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c
index 0d6f036148..4394621d80 100644
--- a/gtk/gtksearchbar.c
+++ b/gtk/gtksearchbar.c
@@ -366,6 +366,7 @@ gtk_search_bar_init (GtkSearchBar *bar)
gtk_widget_set_hexpand (bar->box_center, TRUE);
bar->close_button = gtk_button_new_from_icon_name ("window-close-symbolic");
+ gtk_widget_set_valign (bar->close_button, GTK_ALIGN_CENTER);
gtk_widget_add_css_class (bar->close_button, "close");
gtk_center_box_set_end_widget (GTK_CENTER_BOX (bar->box_center), bar->close_button);
gtk_widget_hide (bar->close_button);