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
> 

_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to