forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scim-bridge-0.4.15.2-qt4.patch
58 lines (52 loc) · 2.1 KB
/
scim-bridge-0.4.15.2-qt4.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
diff -Naur scim-bridge-0.4.15.orig/client-qt/qt4/Makefile.am scim-bridge-0.4.15/client-qt/qt4/Makefile.am
--- scim-bridge-0.4.15.orig/client-qt/qt4/Makefile.am 2009-01-18 01:57:40.000000000 +0900
+++ scim-bridge-0.4.15/client-qt/qt4/Makefile.am 2009-01-25 14:58:09.000000000 +0900
@@ -24,7 +24,7 @@
noinst_HEADERS = ../scim-bridge-client-qt.h ../scim-bridge-client-imcontext-qt.h ../scim-bridge-client-key-event-utility-qt.h ../scim-bridge-client-common-qt.h
-moduledir = @QT4_PREFIX@/plugins/inputmethods
+moduledir = @QT4_LIBDIR@/plugins/inputmethods
module_LTLIBRARIES = im-scim-bridge.la
im_scim_bridge_la_SOURCES = ../im-scim-bridge-qt.cpp \
diff -Naur scim-bridge-0.4.15.orig/client-qt/scim-bridge-client-imcontext-qt.cpp scim-bridge-0.4.15/client-qt/scim-bridge-client-imcontext-qt.cpp
--- scim-bridge-0.4.15.orig/client-qt/scim-bridge-client-imcontext-qt.cpp 2008-11-02 15:44:46.000000000 +0900
+++ scim-bridge-0.4.15/client-qt/scim-bridge-client-imcontext-qt.cpp 2009-01-25 15:04:34.000000000 +0900
@@ -219,6 +219,12 @@
void ScimBridgeClientIMContextImpl::setFocusWidget (QWidget *widget)
{
scim_bridge_pdebugln (4, "ScimBridgeClientIMContextImpl::setFocusWidget ()");
+
+ if (focused_imcontext != NULL) {
+ focused_imcontext->focus_out ();
+ focused_imcontext = NULL;
+ }
+
QInputContext::setFocusWidget (widget);
focus_in ();
update ();
@@ -442,8 +448,15 @@
}
}
+#ifdef QT4
+ if (preedit_shown) {
+ set_preedit_shown (false);
+ update_preedit ();
+ }
+#else
set_preedit_shown (false);
update_preedit ();
+#endif
focused_imcontext = NULL;
}
diff -Naur scim-bridge-0.4.15.orig/configure.ac scim-bridge-0.4.15/configure.ac
--- scim-bridge-0.4.15.orig/configure.ac 2009-01-18 02:24:32.000000000 +0900
+++ scim-bridge-0.4.15/configure.ac 2009-01-25 14:58:06.000000000 +0900
@@ -105,6 +105,10 @@
QT4_PREFIX=`$PKG_CONFIG --variable=prefix QtCore`
fi
AC_SUBST(QT4_PREFIX)
+ if test -z "$QT4_LIBDIR"; then
+ QT4_LIBDIR=`$PKG_CONFIG --variable=libdir QtCore`
+ fi
+ AC_SUBST(QT4_LIBDIR)
enable_qt4_immodule="yes";
fi