-----Original Message-----
From: Esteban Quijano Vincenzi
Sent: Wednesday, August 01, 2001 11:21 AM
To: 'Jean-Christophe Berthon'
Subject: RE: HELP??? Dialog Window
> -----Original Message-----
> From: Jean-Christophe Berthon
> [mailto:jean-christophe berthon cgey com]
> Sent: Wednesday, August 01, 2001 10:51 AM
> To: Gtk List
> Subject: Re: HELP??? Dialog Window
>
>
>
>
> > AFAIK:
> >
> > > - destroy_event
> >
> > the window is being deleted and nothing can be done about it
> >
> > > - delete_event
> >
> > the WM attempted to close the window
> >
> > > - destroy
> >
> > the GTK object is being destroyed (not GUI related)
>
>
> Thanks a lot for your enlightment :-) but I have a subsidiary
> question :
> How to simulate a delete_event from the code? A kind of equivalent to
> "gtk_widget_destroy" but which do the same as the WM close button.
>
> Jean-Christophe
>
>
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
Try
GdkEvent event;
event.type = GDK_DELETE;
event.any.window = widget->window;
event.any.send_event = TRUE;
gtk_signal_emit_by_name(GTK_OBJECT(widget), "delete-event", &event, data_pointer, &bool_result);
Esteban Quijano Vincenzi
Artinsoft corp.
Phone: ++(506) 283-3144
Fax: (506) 283-2655
e-mail: equijano artinsoft com <equijano artinsoft com >