Accepting request 232891 from home:dliang:branches:M17N
bnc#875890 OBS-URL: https://build.opensuse.org/request/show/232891 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=95
This commit is contained in:
parent
c6c0eeac67
commit
3bbb1913f9
19
fcitx-password-visible-on-clutter-entry.patch
Normal file
19
fcitx-password-visible-on-clutter-entry.patch
Normal file
@ -0,0 +1,19 @@
|
||||
diff -Npur fcitx-4.2.8.3/src/frontend/gtk2/fcitximcontext-gio.c fcitx-4.2.8.3-new/src/frontend/gtk2/fcitximcontext-gio.c
|
||||
--- fcitx-4.2.8.3/src/frontend/gtk2/fcitximcontext-gio.c 2013-09-28 16:33:14.000000000 +0800
|
||||
+++ fcitx-4.2.8.3-new/src/frontend/gtk2/fcitximcontext-gio.c 2014-05-07 04:55:07.227490523 +0800
|
||||
@@ -971,7 +971,14 @@ _fcitx_im_context_set_capacity(FcitxIMCo
|
||||
if (GTK_IS_ENTRY (widget) &&
|
||||
!gtk_entry_get_visibility (GTK_ENTRY (widget))) {
|
||||
flags |= CAPACITY_PASSWORD;
|
||||
- }
|
||||
+ } else {
|
||||
+#if GTK_CHECK_VERSION(3, 6, 0)
|
||||
+ GtkInputPurpose purpose;
|
||||
+ g_object_get(fcitxcontext, "input-purpose", &purpose, NULL);
|
||||
+ if (purpose == GTK_INPUT_PURPOSE_PASSWORD)
|
||||
+ flags |= CAPACITY_PASSWORD;
|
||||
+#endif
|
||||
+ }
|
||||
}
|
||||
|
||||
gboolean update = FALSE;
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 7 05:24:03 UTC 2014 - dliang@suse.com
|
||||
|
||||
- Add fcitx-password-visible-on-clutter-entry.patch (bnc#875890)
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 1 14:14:02 UTC 2014 - i@marguerite.su
|
||||
|
||||
|
@ -37,6 +37,7 @@ Source10: input.svgz
|
||||
#PATCH-FEATURE-OPENSUSE marguerite@opensuse.org To support sougou IM, we need a context
|
||||
# variable to disable punc on the fly
|
||||
Patch: fcitx-context-variable-disable-punc-on-the-fly.patch
|
||||
Patch1: fcitx-password-visible-on-clutter-entry.patch
|
||||
BuildRequires: cairo-devel
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: dbus-1-devel
|
||||
@ -387,6 +388,7 @@ You can either use this package for download from kde-look.org using knewstaff i
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%patch -p1
|
||||
%patch1 -p1
|
||||
# hack to fix incompatibility of gtk-query-immodules-2.0 (bnc#845860)
|
||||
%if %suse_version < 1310
|
||||
sed -i \
|
||||
|
Loading…
Reference in New Issue
Block a user