[balsa/stop-using-gtkbox-child-properties] balsa-mime-widget: Use container-add for buttons
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/stop-using-gtkbox-child-properties] balsa-mime-widget: Use container-add for buttons
- Date: Sun, 23 Aug 2020 20:34:07 +0000 (UTC)
commit 0a9defe91d43d678fd65f75c7c2ff0707628bcd0
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Aug 23 16:33:31 2020 -0400
balsa-mime-widget: Use container-add for buttons
instead of box-pack-start, so that hexpand is respected.
src/balsa-mime-widget.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/balsa-mime-widget.c b/src/balsa-mime-widget.c
index 27d6cba27..35b675cea 100644
--- a/src/balsa-mime-widget.c
+++ b/src/balsa-mime-widget.c
@@ -267,7 +267,7 @@ balsa_mime_widget_new_unknown(BalsaMessage * bm,
(gpointer) mime_body))) {
gtk_widget_set_hexpand(button, TRUE);
gtk_widget_set_halign(button, GTK_ALIGN_FILL);
- gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
+ gtk_container_add(GTK_CONTAINER(hbox), button);
} else {
gtk_box_pack_start(GTK_BOX(mw),
gtk_label_new(_("No open or view action "
@@ -279,7 +279,7 @@ balsa_mime_widget_new_unknown(BalsaMessage * bm,
button = gtk_button_new_with_mnemonic(_("S_ave part"));
gtk_widget_set_hexpand(button, TRUE);
gtk_widget_set_halign(button, GTK_ALIGN_FILL);
- gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
+ gtk_container_add(GTK_CONTAINER(hbox), button);
g_signal_connect(button, "clicked",
G_CALLBACK(balsa_mime_widget_ctx_menu_save),
(gpointer) mime_body);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]