[gtkmm] get_widget



Hi.

I'm building a gui using glade-2 and C++. I've built the gui and saved the code, and I am trying to make get_widget work. In searching for documentation on get_widget, I found a reference to this code snippet.

Glib::RefPtr<Gnome::Glade::Xml> refXml = Gnome::Glade::Xml::create(" ../episimsgui.glade"); <-- Line 16
   Gtk::Entry *pEntry = 0;
   refXml->get_widget("config_file_entry", pEntry);


On compiling I get these errors:

fileselection1.cc: In member function `virtual void fileselection1::on_ok_button1_clicked()':
fileselection1.cc:16: `Gnome' undeclared (first use this function)
fileselection1.cc:16: (Each undeclared identifier is reported only once for each function it appears in.)
fileselection1.cc:16: parse error before `::' token
fileselection1.cc:18: `refXml' undeclared (first use this function)


I've installed libgnome-2.2.3 and libxml2-2.5.8, as well as all the packaged needed to allow glade-2 to save C++ code. Can someone tell me what is missing?

Thanks,

--Doug

--
===============================================================
Douglas Roberts, CCS-5          |  "He has no enemies, but is
Los Alamos National Laboratory  |    intensely disliked by his
^                               |    friends."
(505)-667-4569                  |
dzzr lanl gov                   |    - Oscar Wilde
===============================================================





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