Re: Gtk::Dialog::on_delete_event() is never called
- From: Bob Caryl <bob fis-cal com>
- To: Tobias Eberle <tobias eberle gmx de>
- Cc: gtkmm-list gnome org
- Subject: Re: Gtk::Dialog::on_delete_event() is never called
- Date: Mon, 01 Aug 2005 05:17:59 -0500
Tobias Eberle wrote:
Hallo,
I want to prevent that the user can close a dialog (derived from
Gtk::Dialog) by clicking on the X. I tried to override
on_delete_event():
class CMyDialog : public Gtk::Dialog
{
//...
protected:
bool on_delete_event(GdkEventAny *);
}
but on_delete_event() is never called. Is this a bug or is there another
mechanism to catch the delete event?
Thanks.
Tobias
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
Sorry, forgot to mention this: after called "set_decorated" with false
as its parameter be sure to call "set_has_frame" with true as its
parameter. This effectively turns everything back on except that the
close icon (x) no longer works.
Bob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]