[Uim-bugs] [Bug 2409] Any input methods should be disabled while capturing a key on uim-pref
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Feb 4 12:06:59 EET 2005
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=2409
------- Additional Comments From ekato at ees.hokudai.ac.jp 2005-02-04 02:06 -------
> The textbox problem can be defferred to 0.6.0.
How about this? This is a hack to replace key capture's
im_context in gtk_entry with gtk_im_context_simple.
It only affects key capture entries, so we can use Japanese
input method in other entries of uim-pref-gtk.
This may be very hackish, but works for me. If it is acceptable,
I'll use this code and remove toggle button of shift, control, alt
in key capture window and use uim's notation of key combination.
--- pref-gtk.c.orig Fri Feb 4 18:56:07 2005
+++ pref-gtk.c Fri Feb 4 18:57:16 2005
@@ -532,6 +532,7 @@
GtkWidget *hbox;
GtkWidget *label;
GtkWidget *entry;
+ GtkIMContext *im_context;
hbox = gtk_hbox_new(FALSE, 8);
@@ -539,6 +540,12 @@
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0);
entry = gtk_entry_new();
+
+ /* hack alert! */
+ im_context = gtk_im_context_simple_new();
+ g_object_unref(GTK_ENTRY(entry)->im_context);
+ GTK_ENTRY(entry)->im_context = im_context;
+
gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0);
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the uim-bugs
mailing list