Re: Mozilla selections question

Philip <[email protected]>
Newsgroups gmane.comp.mozilla.devel.gtk
Organization Telenet Internet
Message-ID <[email protected]>
Havoc Pennington wrote:

> guint16 *ucs2 = selection_data->data; int i; GString *str;
> 
> str = g_string_new (NULL);
> i = 0;
> while (i < selection_data->length / 2)
>   {
>     g_string_append_unichar (str, ucs2[i]);
> 
>     ++i;
>   }
>   }
> return g_string_free (str, FALSE);
> 
> Or something like that.


Okay thanks,

Is there a non-Gtk-2.0 function for g_string_append_unichar() ?
We develop our application for both Gnome 2.0 and Gnome 1.x at
this moment.. so it should work on both :-\ ... 


-- 
Philip van Hoof aka freax (http://www.freax.eu.org)
irc: irc.openprojects.net mailto:freax @ linux.be
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.