Widget type name
- From: Bo Lorentsen <bl lue dk>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Widget type name
- Date: Wed, 30 Mar 2005 00:16:52 +0200
Hi ...
I have been playing a little with the "glademm", and I ended up looking
all over th doc. for at widget type string, to identify a widget found
in a glade file.
I hoped for something like :
Gtk::Widget *pWidget;
m_refGlade->get_widget( "test_widget", pWidget );
if( pWidget->get_typename() == "GtkEntry" ) {
// Attach relevant code
}
Is this somehow possible, or is dynamic casting the only possible solution ?
/BL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]