[balsa/gtk4: 34/76] toolbar-prefs: Stop using GtkButtonBox
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [balsa/gtk4: 34/76] toolbar-prefs: Stop using GtkButtonBox
- Date: Fri,  9 Oct 2020 02:53:15 +0000 (UTC)
commit 1516f2aea8b2f8b0ef93870e325b98aa16ca0c7a
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Aug 30 12:53:14 2020 -0400
    toolbar-prefs: Stop using GtkButtonBox
 src/toolbar-prefs.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/toolbar-prefs.c b/src/toolbar-prefs.c
index fe26f891b..cea8a6813 100644
--- a/src/toolbar-prefs.c
+++ b/src/toolbar-prefs.c
@@ -414,18 +414,15 @@ create_toolbar_page(BalsaToolbarModel * model, GActionMap * map)
     gtk_container_add(GTK_CONTAINER(toolbar_scroll), page->toolbar);
 
     /* Button box */
-    button_box = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
-    gtk_box_set_spacing(GTK_BOX(button_box), 5);
+    button_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5);
     gtk_container_add(GTK_CONTAINER(toolbar_ctlbox), button_box);
 
     /* Standard button */
     page->standard_button =
-        gtk_button_new_with_mnemonic(_("_Restore toolbar to standard buttons"));
-    gtk_container_add(GTK_CONTAINER(button_box), page->standard_button);
+        libbalsa_add_button_to_box(_("_Restore toolbar to standard buttons"), button_box, GTK_ALIGN_START);
 
     /* Style button */
-    style_button = gtk_button_new_with_mnemonic(_("Toolbar _style…"));
-    gtk_container_add(GTK_CONTAINER(button_box), style_button);
+    style_button = libbalsa_add_button_to_box(_("Toolbar _style…"), button_box, GTK_ALIGN_END);
 
     /* Done with preview */
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]