Re: Gtk::Widget::destory() ?



Maik,

>From looking at the widget.hg file, it appears that, indeed, the gtk_widget_destroy is deliberately not wrapped in gtkmm.
(The version I looked at was 2.8.1).  Thus, the best conclusion I can make by looking at the references you provide is that
this sentence about using Gtk::Widget::destroy() is an error.  If you are absolutely convinced you want to connect to the 'destroy' signal, you can do so by accessing the underlying GTK+ instance, e.g.

g_signal_connect(G_OBJECT(pYourWidget->gobj()),"destroy",G_CALLBACK(destroy_event),NULL);
(and make sure you get the callback signature right).

I know, sometimes you have no choice other than going low level to get what you want, but is there anything specific
that you are trying to achieve by dealing with 'destroy' directly?


Regards,

Nickolai



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