Tuesday, July 8, 2008

GObject說明 The Base Object Type

The Base Object Type: "Description

主要是想要知道為什麼在宣告一個GObject A之後要先做g_object_ref(A)。

GObject is the fundamental type providing the common attributes and methods for all object types in GTK+, Pango and other libraries based on GObject. The GObject class provides methods for object construction and destruction, property access methods, and signal support. Signals are described in detail in Signals(3).

GInitiallyUnowned is derived from GObject. The only difference between the two is that the initial reference of a GInitiallyUnowned is flagged as a floating reference. This means that it is not specifically claimed to be 'owned' by any code portion. The main motivation for providing floating references is C convenience"

No comments:

Post a Comment



Related Posts Plugin for WordPress, Blogger...

Adventure Book 2.0 Headline Animator


funP Android 相關文章