diff options
author | Paul D'Pong | 2021-04-27 14:55:04 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2021-04-28 18:12:34 +0000 |
commit | c3487914122f11015b8a206cc96c364291e17c48 (patch) | |
tree | cc62661b627c7abd8cfb0fac500271280caf9bf1 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java | |
parent | 39dbd6727fd71b3c85e03cec1abc9dda813a1727 (diff) | |
download | eclipse.platform.swt-c3487914122f11015b8a206cc96c364291e17c48.tar.gz eclipse.platform.swt-c3487914122f11015b8a206cc96c364291e17c48.tar.xz eclipse.platform.swt-c3487914122f11015b8a206cc96c364291e17c48.zip |
Bug 570533 - [GTK4] Make separate GTK3.java and GTK4.java native
wrappers
- GtkWindow, GtkMenu/GtkMenuItem, GtkSelectionData,
GtkToolBar/GtkToolBarItems, GtkShortcut, GtkIconTheme, GtkIconPaintable,
GtkPopoverMenu, GtkText, GtkNative
Change-Id: I591890882e3d5e43d11c1aa17bd9549ba35396ba
Signed-off-by: Paul D'Pong <sdamrong@redhat.com>
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/179896
Tested-by: Platform Bot <platform-bot@eclipse.org>
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java index d53a31d221..044f4def38 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java @@ -18,6 +18,7 @@ import org.eclipse.swt.*; import org.eclipse.swt.internal.*; import org.eclipse.swt.internal.gtk.*; import org.eclipse.swt.internal.gtk3.*; +import org.eclipse.swt.internal.gtk4.*; /** * Instances of this class are used to inform or warn the user. @@ -167,12 +168,12 @@ public int open() { * TODO: This may not work as we are setting the icon list of the GtkWindow through * GdkToplevel (which has no way of retrieving the icon list set. See bug 572200. */ - long iconName = GTK.gtk_window_get_icon_name(parentHandle); + long iconName = GTK4.gtk_window_get_icon_name(parentHandle); if (iconName != 0) { - GTK.gtk_window_set_icon_name(handle, iconName); + GTK4.gtk_window_set_icon_name(handle, iconName); } } else { - long pixbufs = GTK.gtk_window_get_icon_list(parentHandle); + long pixbufs = GTK3.gtk_window_get_icon_list(parentHandle); if (pixbufs != 0) { GTK3.gtk_window_set_icon_list(handle, pixbufs); OS.g_list_free (pixbufs); @@ -225,7 +226,7 @@ public int open() { display.removeIdleProc(); if (GTK.GTK4) { - GTK.gtk_window_destroy(handle); + GTK4.gtk_window_destroy(handle); } else { GTK.gtk_widget_destroy(handle); } |