Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2018-11-16 19:20:59 +0000
committerEric Williams2018-11-16 19:20:59 +0000
commit353c8dff563cb38b60e145ecb884b87a5aa4d493 (patch)
treee7bf34662a1c5c2242743ee2e62fdf367bae28c4 /bundles
parented8f052b607fe5aa79824f0541c4d7cf43fd6d3a (diff)
downloadeclipse.platform.swt-353c8dff563cb38b60e145ecb884b87a5aa4d493.tar.gz
eclipse.platform.swt-353c8dff563cb38b60e145ecb884b87a5aa4d493.tar.xz
eclipse.platform.swt-353c8dff563cb38b60e145ecb884b87a5aa4d493.zip
Bug 541107: [GTK4] Port native SwtFixed code to GTK4
Add chain-up calls to the "realize" and "map" virtual methods, as gtk_widget_set_realized() and gtk_widget_set_mapped() are gone now. Change-Id: Ie2b6698e8c0fbdbfbada37ca08777bb68cb5c7ae Signed-off-by: Eric Williams <ericwill@redhat.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c
index 59e98b0f06..6c48675f1d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.c
@@ -874,6 +874,8 @@ static void swt_fixed_init (SwtFixed *widget) {
priv->children = NULL;
priv->hadjustment = NULL;
priv->vadjustment = NULL;
+
+ gtk_widget_set_has_surface(GTK_WIDGET(widget), TRUE);
}
static void swt_fixed_finalize (GObject *object) {
@@ -958,6 +960,7 @@ static void swt_fixed_realize (GtkWidget *widget) {
surface = gdk_surface_new_child (gtk_widget_get_parent_surface (widget), &allocation);
gtk_widget_set_surface(widget, surface);
gdk_surface_set_user_data (surface, widget);
+ return GTK_WIDGET_CLASS (swt_fixed_parent_class)->realize (widget);
}
static void swt_fixed_map (GtkWidget *widget) {
@@ -984,6 +987,7 @@ static void swt_fixed_map (GtkWidget *widget) {
//cases.
gdk_surface_show_unraised (gtk_widget_get_surface (widget));
}
+ return GTK_WIDGET_CLASS (swt_fixed_parent_class)->map (widget);
}
/* Accessibility */

Back to the top