Widget type name



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]