[gtk/wip/exalm/papercuts: 1/2] searchbar: Vertically center the close button
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/papercuts: 1/2] searchbar: Vertically center the close button
- Date: Tue, 14 Sep 2021 07:23:08 +0000 (UTC)
commit 099c9236797a0b66282d46175175ff9c25de366a
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]