How do we tell if we're dealing with a legacy function?
I have a similar question with gtk_file_selection_get_filename(). It
appears that it's returning a pointer from an internal structure
that is freed when the file selection widget is destroyed, but I'm
not positive.
Thanks,
ALf
On Thu, Jun 15, 2000 at 03:23:07PM -0400, Havoc Pennington wrote:
>
> Matthew <[EMAIL PROTECTED]> writes:
> > Should I be g_free()ing my gtk_editable_get_chars()? Is there a rule of thumb
> > to follow that will make it easier to figure out what to free and what doesn't
> > need to be freed?
> >
>
> Returned strings need to be freed, except for legacy functions that
> don't follow the convention.
>
> Havoc
>
> _______________________________________________
> gtk-list mailing list
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list