Re: Widget/Object doubts for a newbie...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 31 Oct 2004 09:26:00 +0100, antongiulio <antongiulio@xxxxxxxx> 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
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux