[maemo-developers] [maemo-developers] Re: Emacs work: porting to Maemo
From: Antti Ijäs antti.ijas at movial.fiDate: Thu Jan 25 10:32:32 EET 2007
- Previous message: [maemo-developers] Re: Emacs work: porting to Maemo
- Next message: [maemo-developers] Emacs work: porting to Maemo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, AFAIK, gtk_im_context_reset (YourGtkIMContext); should not hide anything, but only reset the state of the inputmethod. / Antti Antonio Gomes wrote: > Hi, > >> So, is there a way to set properties or call functions to make this >> widget work like a text widget as far as Hildon text input is >> concerned? If that's possible, it would make this and other GTK >> applications that have non-text GTK widgets that want to receive text >> input easier to port to Maemo. If it's not possible, I'd like to know >> it now. >> > > * creation and signal connections > > (...) > GtkIMContext *YourGtkIMContext = gtk_im_multicontext_new (); > (...) > g_signal_connect (YourGtkIMContext, "commit", > G_CALLBACK(your_im_context_commit_cb), pointer); > g_signal_connect (YourGtkIMContext, "has_selection", > G_CALLBACK(your_im_context_has_selection_cb), pointer); > g_signal_connect (YourGtkIMContext, "clipboard_operation", > G_CALLBACK(your_im_clipboard_operation_cb), pointer); > (... more signals here) > > > * popping vkb up: > > (..) > gtk_im_context_focus_in (YourGtkIMContext); > hildon_gtk_im_context_show (YourGtkIMContext); > (..) > > hiding: > > (..) > gtk_im_context_focus_out (YourGtkIMContext); > gtk_im_context_reset (YourGtkIMContext); > hildon_gtk_im_context_hide (YourGtkIMContext); > (..) > > my 2 cents >
- Previous message: [maemo-developers] Re: Emacs work: porting to Maemo
- Next message: [maemo-developers] Emacs work: porting to Maemo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]