[balsa/gtk4: 170/311] ab-window: Stop using GtkButtonBox




commit ec3531919b8b03d4bd7e7685ff789a1bac492ff5
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Aug 28 17:18:17 2020 -0400

    ab-window: Stop using GtkButtonBox

 src/ab-window.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/ab-window.c b/src/ab-window.c
index c19884cb0..52e6df23e 100644
--- a/src/ab-window.c
+++ b/src/ab-window.c
@@ -236,6 +236,7 @@ balsa_ab_window_init(BalsaAbWindow *ab)
        *box2,
        *scrolled_window,
        *frame;
+    GtkSizeGroup *size_group;
 
     ab->current_address_book = NULL;
 
@@ -328,11 +329,13 @@ balsa_ab_window_init(BalsaAbWindow *ab)
     gtk_grid_attach(GTK_GRID(grid), hbox, 0, 2, 1, 1);
     gtk_widget_show(GTK_WIDGET(hbox));
 
-    w = libbalsa_add_mnemonic_button_to_box(_("Run _Editor"), hbox, GTK_ALIGN_CENTER);
+    size_group = gtk_size_group_new(GTK_SIZE_GROUP_BOTH);
+
+    w = libbalsa_button_box_button(_("Run _Editor"), size_group, GTK_ALIGN_CENTER);
     g_signal_connect(w, "clicked",
                      G_CALLBACK(balsa_ab_window_run_editor), NULL);
 
-    w = libbalsa_add_mnemonic_button_to_box(_("_Re-import"), hbox, GTK_ALIGN_CENTER);
+    w = libbalsa_button_box_button(_("_Re-import"), size_group, GTK_ALIGN_CENTER);
     g_signal_connect(w, "clicked",
                      G_CALLBACK(balsa_ab_window_reload),
                       ab);


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