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



Hi Douglas!

Douglas Roberts wrote:

Using

refXml = Gnome::Glade::Xml::create("Panel.glade");

...

Gtk::Window *win= 0
refXml->get_widget("window1", win);

The button callback does not function.


libglademm won't connect any signals for you. You have to do that "manually". It can't, as libglademm is a runtime mechanism, and the required information is not available at runtime.


window1 *win = new window1();

creates a window where the button callback functions as it should.


This is not libglademm. Here you call the code generated by Glade (which shouldn't be used when you use libglademm - you don't even need to generate it).

--
Christer Palm




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