Re: [gtkmm] get_widget



Silly me.  I was assuming that libglade had been installed as part of glade-2.0.

Thanks,

--Doug


Murray Cumming wrote:
On Fri, 2003-08-22 at 17:19, Douglas Roberts wrote:
  
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);
    

Yes, and that's part of libglademm. It has an example and there is even
information about it in the gtkmm book.

  

-- 
===============================================================
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]