Re: Should a GtkFileFilter be freed or not?
- From: "A. Walton" <awalton gmail com>
- To: lars_paulsen web de
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Should a GtkFileFilter be freed or not?
- Date: Mon, 31 Jul 2017 12:19:16 +0100
On Mon, Jul 31, 2017 at 11:56 AM, Lars Paulsen <lars_paulsen web de> wrote:
Hello All,
I got a simple question about the GtkFileFilter:
Do I need to free it myself after the dialog I used it in has finished?
Or is gtk_widget_destroy(dialog) doing that for me?
The latter-ish. GtkFileFilter is a GInitiallyUnowned, which means when
you attach it to the file chooser widget, it will assume ownership of
the file filter and unref it for you at the end of its life.
Refer to the Floating References section of the documentation here:
https://developer.gnome.org/gobject/stable/gobject-The-Base-Object-Type.html
-Andrew Walton
Best Regards,
Lars
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]