[glade--]Problem with Gnome-mm-Apps generated by glademm



Hi,

I wanted to create a Gnome-UI for one of my programs. So I decided to
try glade (glade-mm) together with gtkmm, gnomemm etc. But there are
some problems... (I use the newest versions of these programs/libs)

I created a new gnome project, set the type to C++ and added a
Gnome-Window. To this window I added only a button.

Everything works fine till now. When I try to compile this little
test-program there are some errors. These errors can be removed by
adding libbonobomm and libbonobouimm to the pkg-config line in
configure.in and recreating the Makefiles. 

But the next problem is the following:

--- snip ---
app1_glade.cc: In constructor `app1_glade::app1_glade()':
app1_glade.cc:136: no matching function for call to `_BonoboDock::
   allow_floating_items(bool)'
app1_glade.cc:137: no matching function for call to
`_BonoboDock::add_item(
   Gnome::Bonobo::DockItem&, Gnome::Bonobo::DockPlacement, int, int,
int, bool)
   '
app1_glade.cc:138: no matching function for call to
`_BonoboDock::add_item(
   Gnome::Bonobo::DockItem&, Gnome::Bonobo::DockPlacement, int, int,
int, bool)
   '
app1_glade.cc:139: no matching function for call to
`_BonoboDock::add_item(
   Gtk::Button&, Gnome::Bonobo::DockPlacement, int, int, int, bool)'
--- snip ---

The generated code is:

app1->get_dock()->allow_floating_items(true);
   app1->get_dock()->add_item(*bonobodockitem1, Gnome::Bonobo::DOCK_TOP,
0, 0, 0, false);
   app1->get_dock()->add_item(*bonobodockitem2, Gnome::Bonobo::DOCK_TOP,
0, 0, 0, false);
   app1->get_dock()->add_item(*button4, Gnome::Bonobo::DOCK_TOP, 0, 0,
0, false);

app1 is of type Gnome::UI::App* and has the function get_dock(). But as
I can see the returned BonoboDock is a structure and not a class. I
think that's why these errors occur.

I don not really know if this is a glademm problem? Perhaps anyone has
tried to create a gnome-app using the gnome-widgets and had/solved this
problem. I'm really new to gnome development so I could not solve it
yet...

Any ideas?

Greetz,

RSp




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