[hafqa] [hafqa] [Bug 3673] Switch to Virtual keyboard in x-terminal does not display previous input
From: bugzilla-daemon at maemo.org bugzilla-daemon at maemo.orgDate: Tue Sep 23 13:42:35 EEST 2008
- Previous message: [hafqa] [Bug 3673] Switch to Virtual keyboard in x-terminal does not display previous input
- Next message: [hafqa] [Bug 3646] hildon-fm doesn't build with Gtk+ 2.13
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
https://bugs.maemo.org/show_bug.cgi?id=3673 ------- Comment #4 from Jianjun.Yu at plenware.com 2008-09-23 13:42 GMT+3 ------- I investigate the source code of vte . Found that there is a funtion which leads the virtual keyboard cannot display previous input .I will give the steps. [sbox-DIABLO_ARMEL: ~/vte] > apt-get source libvte4 [sbox-DIABLO_ARMEL: ~/vte] > cd ./vte-0.12.2/debian/patches/ [sbox-DIABLO_ARMEL: ~/vte/vte-0.12.2/debian/patches] > vim 90-maemo-changes.patch This is a patch file which will patch the source code automatic when you build package.Then you will see this function in vte.c static gboolean vte_terminal_im_retrieve_surrounding(GtkIMContext *im_context, gpointer data) { gtk_im_context_set_surrounding(im_context, "", -1, 0); return TRUE; } Because of this function. we will don't see previous input forever. So I tried hard to find a way of getting the previous input.but i failed. why the entry widget implement this function (switch to virtual keyboard can display previous input). if you investigate the code of gtkentry.c . You will find the same function like this. static gboolean gtk_entry_retrieve_surrounding_cb (GtkIMContext *context, GtkEntry *entry) { gtk_im_context_set_surrounding (context, entry->text, entry->n_bytes, g_utf8_offset_to_pointer (entry->text, entry->current_pos) - entry->text); return TRUE; } So The entry widget can display previous input. Of course this just is the most import part. I know that the HIM provides the access to and inside information of the *text entry* widget. I want to know that whether could I fix this bug . Last this bug is more likely a enhancement. more information about HIM http://live.gnome.org/Hildon/HildonInputMethod/Concepts -- Configure bugmail: https://bugs.maemo.org/userprefs.cgi?tab=email Replies to this email are NOT read, instead please add comments at https://bugs.maemo.org/show_bug.cgi?id=3673 ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
- Previous message: [hafqa] [Bug 3673] Switch to Virtual keyboard in x-terminal does not display previous input
- Next message: [hafqa] [Bug 3646] hildon-fm doesn't build with Gtk+ 2.13
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]