Re: gtk_im_context_get_preedit_string ()



"Aleksey A. Malyshev" <maa sparc spb su> writes:

> Hi,
> 
> I have a question.
> Docs for gtk_im_context_get_preedit_string () says:
> "Retrieve the current preedit string for the input context,
>  and a list of attributes to apply to the string."
>  but if you look sources you can see:
> 
> gtk_im_context_real_get_preedit_string (GtkIMContext       *context,
>                                         gchar             **str,
>                                         PangoAttrList     **attrs,
>                                         gint               *cursor_pos)
> //----------------
> {
>   if (str)
>     *str = g_strdup ("");
>   if (attrs)
>     *attrs = pango_attr_list_new ();
>   if (cursor_pos)
>     *cursor_pos = 0;
> }
> //----------------
> 
> And str always equal "".
> 
>  What for this function needed?

You are looking at the fallback implementation. It needs to be overriden
(look at, for instance, gtkimcontextxim.c) to be useful.

Regards,
                                        Owen
  



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]