[balsa/gtk4: 104/311] ab-window: Stop using GtkButtonBox
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 104/311] ab-window: Stop using GtkButtonBox
- Date: Fri, 17 Dec 2021 19:53:37 +0000 (UTC)
commit 8e9eb890671b0c658c45d72d360d184d55ad5622
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Aug 28 17:18:17 2020 -0400
ab-window: Stop using GtkButtonBox
src/ab-window.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/ab-window.c b/src/ab-window.c
index c577320e2..49fdbedb2 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;
@@ -324,18 +325,19 @@ balsa_ab_window_init(BalsaAbWindow *ab)
gtk_widget_set_size_request(scrolled_window, 300, 250);
/* Buttons ... */
- hbox = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
- gtk_button_box_set_layout(GTK_BUTTON_BOX(hbox), GTK_BUTTONBOX_SPREAD);
+ hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
gtk_grid_attach(GTK_GRID(grid), hbox, 0, 2, 1, 1);
gtk_widget_show(GTK_WIDGET(hbox));
- w = gtk_button_new_with_mnemonic(_("Run _Editor"));
+ 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);
gtk_container_add(GTK_CONTAINER(hbox), w);
gtk_widget_show(GTK_WIDGET(w));
- w = gtk_button_new_with_mnemonic(_("_Re-import"));
+ 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]