projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
137a62c
)
searchbar: Vertically center the close button
author
Alexander Mikhaylenko
<alexm@gnome.org>
Tue, 14 Sep 2021 07:22:45 +0000
(12:22 +0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 31 Oct 2021 21:52:04 +0000
(17:52 -0400)
gtk/gtksearchbar.c
patch
|
blob
|
history
diff --git
a/gtk/gtksearchbar.c
b/gtk/gtksearchbar.c
index 0d6f036148969338539024f9b35d42682248376a..4394621d809b5567c478c6dd25363242c8145a94 100644
(file)
--- 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);