Re: begginer with C++
- From: "Carlos Garces" <carlos garces gmail com>
- To: gtkmm-list gnome org
- Subject: Re: begginer with C++
- Date: Fri, 24 Feb 2006 21:37:45 +0100
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]