Re: gtk_signal_emit & refcounting



On Friday, August 31, 2001, at 07:20  AM, John Tunison wrote:

Why does some code ref and unref, wrapped around a signal emission? (Like gtk_widget_hide, but I've seen it elsewhere too.)

I can't answer for "elsewhere too", but gtk_widget_hide refs to guarantee that the widget will still be around for the gtk_widget_queue_resize that runs after the signal emission.

    -- Darin




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