Re: GtkWindow destroy problem
- From: Darin Adler <darin bentspoon com>
- To: Martin Baulig <martin home-of-linux org>
- Cc: Tim Janik <timj gtk org>, Havoc Pennington <hp redhat com>, Gtk Developers <gtk-devel-list gnome org>
- Subject: Re: GtkWindow destroy problem
- Date: Fri, 07 Sep 2001 08:44:17 -0700
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]