summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk
diff options
context:
space:
mode:
authorAlexander Kurtakov <akurtako@redhat.com>2013-03-14 10:31:53 +0200
committerAlexander Kurtakov <akurtako@redhat.com>2013-03-14 10:31:53 +0200
commit4ac2f80fba8d31c29a136ddd0e4b344e6bd3a230 (patch)
treee041a3d7b2b71794873109b279984bde86a366d3 /bundles/org.eclipse.swt/Eclipse SWT/gtk
parent2b14d767020ed3598cdf53c0df27bc3b8bd1ea64 (diff)
downloadeclipse.platform.swt-4ac2f80fba8d31c29a136ddd0e4b344e6bd3a230.tar.gz
eclipse.platform.swt-4ac2f80fba8d31c29a136ddd0e4b344e6bd3a230.tar.xz
eclipse.platform.swt-4ac2f80fba8d31c29a136ddd0e4b344e6bd3a230.zip
Fix GTK3 IMContext disposal.
Using PANGO_TYPE_LAYOUT to dispose GTK_TYPE_IM_MULTICONTEXT makes no sense at all, it's obviously a typo. Fixes a crash in Test_org_eclipse_swt_widgets_Display test.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
index 494906358b..576ac5d557 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
@@ -3544,7 +3544,7 @@ void releaseDisplay () {
OS.g_type_class_unref (pangoLayoutClass);
pangoLayoutNewProc = 0;
if (OS.GTK3) {
- long /*int*/ imContextType = OS.PANGO_TYPE_LAYOUT ();
+ long /*int*/ imContextType = OS.GTK_TYPE_IM_MULTICONTEXT ();
long /*int*/ imContextClass = OS.g_type_class_ref (imContextType);
OS.G_OBJECT_CLASS_SET_CONSTRUCTOR (imContextClass, imContextNewProc);
OS.g_type_class_unref (imContextClass);