Re: Widget/Object doubts for a newbie...
- From: Tristan Van Berkom <tristan van berkom gmail com>
- To: antongiulio <antongiulio email it>
- Cc: gtk-list gnome org
- Subject: Re: Widget/Object doubts for a newbie...
- Date: Sun, 31 Oct 2004 13:36:51 -0500
On Sun, 31 Oct 2004 09:26:00 +0100, antongiulio <antongiulio email it> wrote:
[...]
> Why using g_object_unref to place g_free?
g_free is used to free a memory region, g_object_unref decreases
the reference count on a GObject (or any derivitaves ofcourse).
(when the reference count drops to 0, all the resources attatched to
that object are released).
> What is usefulness of g_object_set_data and g_object_add_weak_pointer?
g_object_set_data just sets a pointer to a string typed hash map attatched
to the object in question.
You can find all these answers at http://www.gtk.org/api
Cheers,
-Tristan
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]