[balsa/gtk4: 102/193] main-window: Stop using GtkButtonBox




commit 17f125d01532aab7c065061c3b4cc9f9cdc2e45d
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 9545234cc..1068f60a9 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -3873,18 +3873,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]