On Fri, 1 May 2009 22:34:48 +0300
sledge hammer <sledgehammer_...@hotmail.com> wrote:
> 
> Hello,
> 
> I use Gtk::SelectionData::get_uris() and in the docs says that if I
> get a non-0 result I should use Glib::strfreev() to free it.
> 
> The problem is there is no documentation about Glib::strfreev() and I
> don't know how to use it. I cant even find an example that uses it.
> So can you show me how to use it to free the result and have mem
> leaks?
> 
> Sidenote: I use std::vector<Glib::ustring> as container.

This looks like a result of the automatic generation of documentation
from the C source.  There is no Glib::strfreev() and you don't need to
try and call it.  You can pass the return value directly to a
std::vector<Glib::ustring>  container.

I suggest you enter a documentation bug for it.

You should take anything further up on this on the gtkmm mailing list,
which is the mailing list for the c++ bindings for gtk+.

Incidentally, are uris always in the utf-8 codeset, or are they
dependent on the filename codeset (which may not be utf-8, depending on
how you have set the G_BROKEN_FILENAMES and G_FILENAME_ENCODING
environmental variables)?  I don't know the answer to that, but if they
are not guaranteed to be in the utf-8 charset you would be better off
putting them in a container of std::string objects before you do
anything with them.

Chris
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to