[balsa/gtk4: 158/276] ab-main: Stop using GtkButtonBox
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 158/276] ab-main: Stop using GtkButtonBox
- Date: Sat, 12 Dec 2020 16:03:31 +0000 (UTC)
commit cc7b2cf11c365f745e8f5bc3fe40a407acd00083
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Aug 28 17:17:39 2020 -0400
ab-main: Stop using GtkButtonBox
src/ab-main.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/ab-main.c b/src/ab-main.c
index 7e7afc545..1a62da9ed 100644
--- a/src/ab-main.c
+++ b/src/ab-main.c
@@ -832,18 +832,23 @@ static GtkWidget*
bab_get_edit_button_box(struct ABMainWindow *abmw)
{
GtkWidget *box;
+ GtkSizeGroup *size_group;
box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
+ size_group = gtk_size_group_new(GTK_SIZE_GROUP_BOTH);
- abmw->apply_button = libbalsa_add_mnemonic_button_to_box(_("_Apply"), box, GTK_ALIGN_START);
+ abmw->apply_button = libbalsa_button_box_button(_("_Apply"), size_group, GTK_ALIGN_START);
+ gtk_container_add(GTK_CONTAINER(box), abmw->apply_button);
g_signal_connect(abmw->apply_button, "clicked",
G_CALLBACK(apply_button_cb), (gpointer) NULL);
- abmw->remove_button = libbalsa_add_mnemonic_button_to_box(_("_Remove"), box, GTK_ALIGN_CENTER);
+ abmw->remove_button = libbalsa_button_box_button(_("_Remove"), size_group, GTK_ALIGN_CENTER);
+ gtk_container_add(GTK_CONTAINER(box), abmw->remove_button);
g_signal_connect(abmw->remove_button, "clicked",
G_CALLBACK(remove_button_cb), (gpointer) NULL);
- abmw->cancel_button = libbalsa_add_mnemonic_button_to_box(_("_Cancel"), box, GTK_ALIGN_END);
+ abmw->cancel_button = libbalsa_button_box_button(_("_Cancel"), size_group, GTK_ALIGN_END);
+ gtk_container_add(GTK_CONTAINER(box), abmw->cancel_button);
g_signal_connect(abmw->cancel_button, "clicked",
G_CALLBACK(cancel_button_cb), abmw);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]