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



Mathew:



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


<child>
       <widget class="GtkButton" id="LoadButton">
         <property name="visible">True</property>
         <property name="can_focus">True</property>
         <property name="label" translatable="yes">Load</property>
         <property name="use_underline">True</property>
         <property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_LoadButton_clicked" last_modification_time="Thu, 14 Aug 2003 17:39:20 GMT"/>
       </widget>
       <packing>
         <property name="left_attach">0</property>
         <property name="right_attach">1</property>
         <property name="top_attach">0</property>
         <property name="bottom_attach">1</property>
         <property name="x_options">fill</property>
         <property name="y_options"></property>
       </packing>
     </child>


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