[Glade-users] segfault after widget destroy

Karla Stenger kstenger@montevideo.com.uy
Sun, 14 Mar 2004 17:04:46 -0300


> On Fri, 2004-03-12 at 23:50, Karla Stenger wrote:
> > Look at my code at http://cvs.sourceforge.net/viewcvs.py/a-renet/client=
-gtk/
>=20
> Connecting to the "destroy" signal and using gtk_widget_destroy() is not
> correct. You don't need to do that.

Right now i was doing that for the main window of my aplication, not for the
setup_window, and when i click on the X of the setup_window it crashes, even
when it has no callback connected not to destroy event nor to delete-event.

> Maybe you confused it with the "delete-event" signal, which happens when
> the user clicks on the 'X' window button. If you don't handle that
> signal, I think the window will be destroyed automatically.

I am surely a bit confused about what events are called when.
If there is a guide describing this i'd like to know about it.

> What do you want to happen when the user clicks the 'X' button?
> You probably want to call gtk_exit() to quit the application

No, what i want is to go back to my main window, thats if i just click on t=
he X
of my settings_window. If i'm in my main window i would call gtk_main_quit(=
),
that was working fine for what i need now.

>=20
> Damon

Thanks,
Karla
--=20
+-----------------------------+
| Karla  M=AA  Stenger  S=E1bat   |
| Pando . Canelones . Uruguay |
| kstenger@montevideo.com.uy  |
+-----------------------------+