[balsa/gtk4: 101/246] main-window: Stop using GtkButtonBox




commit 60a51a218e14d85e11e625ae6de34096b7ab5fea
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Aug 29 19:41:24 2020 -0400

    main-window: Stop using GtkButtonBox

 src/main-window.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/main-window.c b/src/main-window.c
index 03afee01c..11758589e 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -3907,18 +3907,16 @@ bw_find_real(BalsaWindow * window, BalsaIndex * bindex, gboolean again)
        gtk_container_add(GTK_CONTAINER(vbox), frame);
 
        /* Button box */
-       box = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
+       box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
        gtk_container_set_border_width(GTK_CONTAINER(box), 6);
-       button = gtk_button_new_with_mnemonic(_("_Apply"));
+        button = libbalsa_add_button_to_box(_("_Apply"), box, GTK_ALIGN_START);
        g_signal_connect(button, "clicked",
                         G_CALLBACK(bw_find_button_clicked),
                         GINT_TO_POINTER(FIND_RESPONSE_FILTER));
-       gtk_container_add(GTK_CONTAINER(box), button);
-       button = gtk_button_new_with_mnemonic(_("_Clear"));
+        button = libbalsa_add_button_to_box(_("_Clear"), box, GTK_ALIGN_END);
        g_signal_connect(button, "clicked",
                         G_CALLBACK(bw_find_button_clicked),
                         GINT_TO_POINTER(FIND_RESPONSE_RESET));
-       gtk_container_add(GTK_CONTAINER(box), button);
        gtk_container_add(GTK_CONTAINER(frame), box);
 
        /* Frame with OK button */


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