[balsa/gtk4: 92/312] Various: Stop using GtkBox child properties
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 92/312] Various: Stop using GtkBox child properties
- Date: Tue, 5 Oct 2021 20:00:58 +0000 (UTC)
commit eebe735b28c9814532bb60af5e52d0eeb12b4e7e
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jun 7 16:27:53 2020 -0400
Various: Stop using GtkBox child properties
Stop using GtkBox padding, fill and expand child properties
* src/filter-edit-callbacks.c (build_type_notebook):
ChangeLog | 6 ++++++
src/filter-edit-callbacks.c | 8 ++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ff571c25d..f5bf484ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -600,6 +600,12 @@
* src/filter-run-dialog.c (balsa_filter_run_dialog_new): call
prepare-threading to get ready for filtering.
+2020-06-07 Peter Bloomfield <pbloomfield bellsouth net>
+
+ Various: Stop using GtkBox padding, fill and expand child properties
+
+ * src/filter-edit-callbacks.c (build_type_notebook):
+
2020-06-07 Peter Bloomfield <pbloomfield bellsouth net>
Various: Stop using GtkBox padding, fill and expand child properties
diff --git a/src/filter-edit-callbacks.c b/src/filter-edit-callbacks.c
index 47fe0aec3..386c70b81 100644
--- a/src/filter-edit-callbacks.c
+++ b/src/filter-edit-callbacks.c
@@ -1004,7 +1004,9 @@ build_type_notebook()
box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5);
g_object_set(box, "margin", 5, NULL);
- gtk_box_pack_start(GTK_BOX(box), grid, TRUE, TRUE, 0);
+ gtk_widget_set_vexpand(grid, TRUE);
+ gtk_widget_set_valign(grid, GTK_ALIGN_FILL);
+ gtk_box_pack_start(GTK_BOX(box), grid, FALSE, FALSE, 0);
fe_type_simple_label =
gtk_label_new_with_mnemonic(_("One of the specified f_ields contains"));
@@ -1034,7 +1036,9 @@ build_type_notebook()
#if REGULAR_EXPRESSION_FILTERING_IS_IMPLEMENTED
page = gtk_table_new(5, 6, FALSE);
- gtk_box_pack_start(GTK_BOX(box), page, TRUE, TRUE, 0);
+ gtk_widget_set_vexpand(page, TRUE);
+ gtk_widget_set_valign(page, GTK_ALIGN_FILL);
+ gtk_box_pack_start(GTK_BOX(box), page, FALSE, FALSE, 0);
fe_type_regex_label =
gtk_label_new_with_mnemonic(_("_One of the regular expressions matches"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]