[balsa/stop-using-gtkbuttonbox: 34/38] main-window: Stop using GtkButtonBox
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/stop-using-gtkbuttonbox: 34/38] main-window: Stop using GtkButtonBox
- Date: Sun, 30 Aug 2020 19:40:37 +0000 (UTC)
commit 1b7ad6f05e0d420382da1d38ada3bf6aa6cc20c8
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 9c0cfcce6..2a37ab282 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -3871,18 +3871,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]