Re: Send data on a signal_button_press_event
- From: Paul Davis <paul linuxaudiosystems com>
- To: Iker Perez de Albeniz <ialbeniz cbt es>
- Cc: gtkmm-list gnome org
- Subject: Re: Send data on a signal_button_press_event
- Date: Thu, 27 Sep 2007 07:51:15 -0400
On Thu, 2007-09-27 at 13:47 +0200, Iker Perez de Albeniz wrote:
> I'am creating DrawingAreas and i want to add an action when i clik on
> (*nDrawingArea).signal_button_press_event
> ().connect(sigc::bind<int>( sigc::mem_fun(*this,
> &colorSelectorWindow::setColor1), colour_p));
>
> void colorSelectorWindow::setColor1(int Color){
bool colorSelectorWindow::setColor1 (GdkEventButton* ev, int Color) {
....
using bind doesn't remove eliminate the existing prototype for a signal
handler, it just allows you to add extra arguments.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]