[gtk/gtk-4-4] searchbar: Vertically center the close button



commit 66ef08921d402d980e6fd3cde9eed918d39fd41f
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Sep 14 12:22:45 2021 +0500

    searchbar: Vertically center the close button

 gtk/gtksearchbar.c | 1 +
 1 file changed, 1 insertion(+)
---
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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]