Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Yan2019-01-10 20:02:00 +0000
committerXi Yan2019-01-11 19:12:27 +0000
commit829767ee26578b360cb8720b8ce70efb9cbe57af (patch)
tree180254544073ee2751fe9a4ffed66507696ec624 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
parentb534d10bac75e6886c4d50b2a5791ff4a3378234 (diff)
downloadeclipse.platform.swt-829767ee26578b360cb8720b8ce70efb9cbe57af.tar.gz
eclipse.platform.swt-829767ee26578b360cb8720b8ce70efb9cbe57af.tar.xz
eclipse.platform.swt-829767ee26578b360cb8720b8ce70efb9cbe57af.zip
Bug 540675 - [GTK4] Adapt to sizing machinery changes
GTK4 removed GtkBox's fill/expand child property using gtk_box_set_child_packing. This causes the issue where GtkScrollWindow inside vertical GtkBox has height 0. Add wrapper function to set the "vexpand" and "valign" child property to match the old behaviour. GtkScrollWindow no longer have 0px height. Tested with FillLayout, RowLayout, FormLayout, GridLayout with Bug542865_ShellChildrenCrash. Change-Id: I44c6510baaa36e595ef0831f33488ef4e522813a Signed-off-by: Xi Yan <xixiyan@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
index 35bad2edca..77fdbb859f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
@@ -1147,6 +1147,7 @@ char * GTK_nativeFunctionNames[] = {
"_1gtk_1widget_1set_1halign",
"_1gtk_1widget_1set_1has_1surface",
"_1gtk_1widget_1set_1has_1window",
+ "_1gtk_1widget_1set_1hexpand",
"_1gtk_1widget_1set_1margin_1bottom",
"_1gtk_1widget_1set_1margin_1end",
"_1gtk_1widget_1set_1margin_1start",
@@ -1161,6 +1162,7 @@ char * GTK_nativeFunctionNames[] = {
"_1gtk_1widget_1set_1size_1request",
"_1gtk_1widget_1set_1tooltip_1text",
"_1gtk_1widget_1set_1valign",
+ "_1gtk_1widget_1set_1vexpand",
"_1gtk_1widget_1set_1visible",
"_1gtk_1widget_1shape_1combine_1region",
"_1gtk_1widget_1show",

Back to the top