[Glade-devel] using glade.h from C++ (for gtkmm binding)

hi gladies :-)

i'm now (slowly) starting a gtkmm-binding for glade and the first thing
would probably be to create "glade-gtkmm.cc" with just glade_binding_init().

Please note the extension ".cc": we need to call e.g.
Gtk::Main::init_gtkmm_internals() from the init function.
So we'll just have to add AC_PROG_CXX to configure.in (or so i thought ;-).

However, the following happens when #including glade.h:

glade.h:35: error: use of enum '_GladeItemAppearance' without previous
glade-property-class.h:58: error: declaration does not declare anything
glade-property-class.h:179: error: expected ',' or '...' before 'class'
glade-widget-adaptor.h:247: error: expected ',' or '...' before 'new'
[ ... more errors of the same kind ...]

I'm not sure i understand the first one, the others have to do with e.g.
 function arguments or variables called "class", "virtual" or "new".

my question:

should i send a parch to make the current glade code c++ - compatible
(with respect to the above errors) or is c++ definitely a no-no in glade?

thanks for your answers.

  -- o

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