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



Glade/glademm already saves all callback methods defined by the user.  The callback code, with the appropriate signal handling is saved as valid C++ code.  The problem is that glade/glademm does not give you a handle to the gui objects that it creates, so that unless you go into the code that glade/glademm wrote there the Gtk::objects are created, and re-declare them at a global scope, you have no way to get a handle to the Gtk::objects.

It sounds like you might not have used glade-2 to save a gui with C++ bindings.

Murray Cumming wrote:
On Wed, 2003-09-03 at 19:01, Douglas Roberts wrote:
  
The problem is that the callback functions defined by glade, and 
declared in the "app_name".glade file are ignored when you instantiate 
your gui application via Glib::RefPtr<Gnome::Glade::Xml> refXml;
    

Again, how did you expect Glade to know about the instance of the
signal-handling class? Or did you want to use a static function? That
would not be very useful in C++.

  

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