Re: [gtkmm] Glade-2, libgtkmm, Xml::create, callbacks
- From: Stephan Puchegger <puchs ap univie ac at>
- To: Christer Palm <palm nogui se>
- Cc: Douglas Roberts <dzzr lanl gov>, Gtkmm List <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Glade-2, libgtkmm, Xml::create, callbacks
- Date: Wed, 3 Sep 2003 09:01:17 +0200 (CEST)
Hi Douglas, Hi Christer!
On Wed, 3 Sep 2003, Christer Palm wrote:
> 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.
>
I think (but I am not sure), that the situation is the following:
libglademm can't do the same thing in C++ as libglade does in C due to the
name-mangling of the C++ compiler (as opposed to no name mangling in C).
That is why libglade can find the names of the callbacks in a C program
(although it is a runtime mechanism). Libglademm can't do the same thing
in C++ since it does not know what the mangled names look like.
I hope, that my info is correct.
Regards,
Stephan Puchegger
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]