[maemo-developers] [maemo-developers] Re: Emacs work: porting to Maemo
From: Antonio Gomes tonikitoo at gmail.comDate: Thu Jan 25 00:23:06 EET 2007
- Previous message: [maemo-developers] Re: Emacs work: porting to Maemo
- Next message: [maemo-developers] Re: Emacs work: porting to Maemo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
--
--Antonio Gomes
- Previous message: [maemo-developers] Re: Emacs work: porting to Maemo
- Next message: [maemo-developers] Re: Emacs work: porting to Maemo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
