Widget destruction



Hi,
When i destroy a container widget, my dispose() handler is
run in the child widget. However, the refcount isn't decremented
and the finalize() handler doesn't run. I thought the container
widget should decrement the refcount. What am i missing? (gtk 2.4.3)

For gtk widgets, am i supposed to do all freeing functions
in a mywidget_destroy() function, and use dispose() and finalize()
functions only for non-widget GObjects?

http://www.gtk.org/tutorial/sec-gtkdial.html#AEN2937




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