libglademm: mixing Gtk-C code with gtkmm-C++ code possible?
- From: Christian Nolte <ch nolte fh-wolfenbuettel de>
- To: gnomemm-list gnome org
- Subject: libglademm: mixing Gtk-C code with gtkmm-C++ code possible?
- Date: Fri, 20 Jan 2006 20:42:28 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I am trying to write a simple Gaim-Plugin. Gaim is a pure Gtk-C
Application and so is the plugin-API. However, I want to write the main
parts of the plugin with C++ using gtkmm. The UI shall be designed with
glade2. I have a simple test.glade file which only contains one widget,
a GtkWindow. Loading the .glade file from within the plugin works fine
using:
- ---
RefPtr<Xml> xml = Xml::create("test.glade");
- ---
The window gets displayed. When I want to access the widget via
- ---
Gtk::Window* w = 0;
xml->get_widget("window", w);
- ---
I get the following messages from glibmm and libglademm:
- ---
(gaim:23186): glibmm-CRITICAL **:
Glib::ObjectBase*<unnamed>::create_new_wrapper(GObject*): assertion
`wrap_func_table != 0' failed
(gaim:23186): glibmm-WARNING **: failed to wrap type of 'GtkWindow'
(gaim:23186): libglademm-CRITICAL **: widget `window' not found in glade
file `test.glade'
- ---
Could it be that what I want to do is not possible because the gtkmm-API
is not correctly initialized? If so, how could this be achived?
Best regards
Christian
- --
Christian Nolte
key : http://public.fh-wolfenbuettel.de/~noltec/christian-nolte.asc
or : www.keyserver.net
- ----------------------------------------------------------------------
The Information Revolution will be fought on the command line.
- ----------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFD0T0kCNjA0nfhW7wRAmbnAJwJ4r/VKZATDMdjRhhJZ070mvpLzQCeKegj
0kyILw8G970YGV7jp1qgjcI=
=SQG0
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]