Re: About gtk_object_set_data()



There are two approaches. The data you set with gtk_object_set_data is
simply a gpointer and  when the object is destroyed or the data is
removed it manages the pointer but not the data (location) it points
to. If you eventually would like to perform some freeing when the data
is removed use g_object_set_data_full and specify a destroy callback.

Atanas



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