[balsa/gtk4: 101/311] toolbar-prefs: Center the arrows vertically
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 101/311] toolbar-prefs: Center the arrows vertically
- Date: Fri, 17 Dec 2021 19:53:35 +0000 (UTC)
commit 48295057bafcf4a0a201ba48387f41701e74a406
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Aug 30 12:01:38 2020 -0400
toolbar-prefs: Center the arrows vertically
Vertically center the box containing the four arrow buttons; it had
somehow floated up to the top of the column.
src/toolbar-prefs.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/toolbar-prefs.c b/src/toolbar-prefs.c
index 818684a52..988ee57fc 100644
--- a/src/toolbar-prefs.c
+++ b/src/toolbar-prefs.c
@@ -460,12 +460,11 @@ create_toolbar_page(BalsaToolbarModel * model, GActionMap * map)
/* Button box */
center_button_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_set_homogeneous(GTK_BOX(center_button_box), TRUE);
-
- button_box=gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
-
gtk_container_add(GTK_CONTAINER(lower_ctlbox), center_button_box);
+ button_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
+ gtk_widget_set_vexpand(button_box, TRUE);
+ gtk_widget_set_valign(button_box, GTK_ALIGN_CENTER);
gtk_container_add(GTK_CONTAINER(center_button_box), button_box);
page->back_button =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]