aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2013-03-14 04:31:53 (EDT)
committerCarolyn MacLeod2013-04-09 10:56:31 (EDT)
commit09c18db7e4dacf97a58ec58334cb8cca57112174 (patch)
tree289a9c28933a481d168dba7aff239ef4ba8f0247
parent444160ea1f20af86e896ce6c1517272e903c9efb (diff)
downloadeclipse.platform.swt-09c18db7e4dacf97a58ec58334cb8cca57112174.zip
eclipse.platform.swt-09c18db7e4dacf97a58ec58334cb8cca57112174.tar.gz
eclipse.platform.swt-09c18db7e4dacf97a58ec58334cb8cca57112174.tar.bz2
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.
-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 4949063..576ac5d 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);