gtk_im_context_get_preedit_string ()



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?



-- 
SY,
 Alek                 mailto:maa sparc spb su




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