Re: [gtkmm] Problem with libglademm with Popup context menu



You need to take a look at the "derived" example in the libglademm
source which will show you how to use your glade treeview with a custom
class (rather than a plain ol' Gtk::TreeView).

On Sun, 2004-08-08 at 09:20 +0100, PenguinMan wrote:
> Look at this code:
> 
> ....
> Gtk::TreeView* m_TreeView;
> ....
> 
> ....
> m_refGlade->get_widget( "treeview1", m_TreeView );
> ....
> 
> Everything works well.
> But I want to use Gtk::TreeView with popup context menu. So here is my code:
> 
> ....
> TreeView_WithPopup* m_TreeView;
> ....
> 
> ....
> m_refGlade->get_widget( "treeview1", m_TreeView );
> ....
> 
> m_TreeView did not show up and I got this message:
> ** (treeview:13548): CRITICAL **: Gnome::Glade::Xml::get_widget():
> dynamic_cast<> failed.
> 
> How do I solve my problem here?
> Thank you.
> 
> gtkmm-2.4, libglademm-2.4.
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
-- 
======================================================================
Bryan Forbes
bryan reigndropsfall net
http://www.reigndropsfall.net

"It does not take a majority to prevail, but rather an irate, tireless
minority keen to set brush fires in people's minds."
        - Samuel Adams, an architect of the Constitution

Key fingerprint = 3D7D B728 713A BB7B B8B1  5B61 3888 17E0 70CA 0F3D

Attachment: signature.asc
Description: This is a digitally signed message part



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