Re: GtkWindow destroy problem



on 9/6/01 10:04 AM, Martin Baulig at martin home-of-linux org wrote:

> Ok, so just to make sure I did it right, is the following correct ?
> 
>     o = g_object_new (GTK_TYPE_WINDOW, NULL);
>     gtk_object_ref (o);
>     gtk_object_sink (o);
>     /* ... some time later ... */
>     g_object_unref (o);

This code is correct, but it won't make the window go away. The window's
top-level owner still owns it, and it won't go away until someone destroys
it. But perhaps that's what you want.

    -- Darin





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