Re: begginer with C++
- From: Bob Caryl <bob fis-cal com>
- To: Carlos Garces <carlos garces gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: begginer with C++
- Date: Fri, 24 Feb 2006 14:48:43 -0600
Carlos Garces wrote:
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
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
Your callback slot is trying to return a value of some kind. The slot
expected by signal_button_press_event should be prototyped to have no
return value (void).
Bob
begin:vcard
fn:Robert Caryl
n:Caryl;Robert
org:Fiscal Systems, Inc.
adr:;;102 Commerce Circle;Madison;AL;35758;USA
email;internet:bob fis-cal com
title:Senior Software Design Engineer
tel;work:356-772-8920 X108
x-mozilla-html:TRUE
url:http://www.fis-cal.com
version:2.1
end:vcard
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]