Re: begginer with C++



Hi.

Thanks, C++ is easy in anyone explain it :)
But my code don't work

mpGlade->get_widget("boxAbout", mpEventBox);
mpEventBox->set_events (Gdk::BUTTON_PRESS_MASK);
mpEventBox->signal_button_press_event().connect(sigc::mem_fun(*this,
&MainWindow::onAbout));

Fails on slot.h
error: return-statement with a value, in function returning 'void'

Un saludo
Carlos Garcés

> Welcome Carlos,
>
> Try this:
> mpEventBox->set_events(Gdk::BUTTON_PRESS_MASK);
>
> gtkmm wrapps the GDK enums inside the Gdk namespace.  You're trying to
> pass in the base GTK+ enum instead of the gtkmm one.
>
> Jonner
>



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