Re: [gtkmm] Glade-2, libgtkmm, Xml::create, callbacks





Matthew Walton wrote:
On Wed, 2003-09-03 at 20:55, Douglas Roberts wrote:
  
[...] libglademm will never pay attention to
the callbacks, because the only thing it considers is the XML file
describing the UI, which, as far as I'm aware, has no information about
interactions between the components at all - that's left to the
programmer.

      
I don't believe this is true:  it sure looks like the callback handler 
is is defined in the xml file.  It is from this data that glademm knows 
how to create a stub callback function on the "clicked" signal.
    

<snip>

  
          <signal name="clicked" handler="on_LoadButton_clicked" 
last_modification_time="Thu, 14 Aug 2003 17:39:20 GMT"/>
    

Yes, but where's the code for it? libglademm considers only the contents
of the XML when it loads, so presumably it actually ignores this. Glade
the UI designer would use this for saving information for use when
generating code with glademm, or for the GTK+ C API.

  

This is in the window1_glade.cc file produced by glademm.

 LoadButton->signal_clicked().connect(SigC::slot(*this, &window1_glade::on_LoadButton_clicked));

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