diff -r 3cea658b6377 widget/src/gtk2/nsWindow.cpp --- a/widget/src/gtk2/nsWindow.cpp Sun Jul 13 20:20:33 2008 -0700 +++ b/widget/src/gtk2/nsWindow.cpp Thu Jul 17 08:02:13 2008 -0400 @@ -3383,30 +3383,34 @@ nsWindow::NativeCreate(nsIWidget // do the work to get gconf setting. // will be done soon later. sysPrefService->GetBoolPref(sAccessibilityKey, &sAccessibilityEnabled); } } } if (sAccessibilityEnabled) { LOG(("nsWindow:: Create Toplevel Accessibility\n")); CreateRootAccessible(); } #endif + GtkIMContext *im = IMEGetContext(); + if (mContainer) + g_object_set_data(G_OBJECT(mContainer), "imcontext", im); + return NS_OK; } NS_IMETHODIMP nsWindow::SetWindowClass(const nsAString &xulWinType) { if (!mShell) return NS_ERROR_FAILURE; nsXPIDLString brandName; GetBrandName(brandName); XClassHint *class_hint = XAllocClassHint(); if (!class_hint) return NS_ERROR_OUT_OF_MEMORY;