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