Fixed event signature in Vala sources.

parent cdd09c1a
build
autom4te.cache
config.h
config.log
config.status
stamp-h1
Makefile
libtool
gtkmusic-0.2.pc
src/.deps
src/.libs
Makefile.in
*.stamp
......@@ -117,20 +117,18 @@ public class Guitar : DrawingArea {
/**
* Signal emitted when a note has been pressed with the mouse
* @param guitar The Guitar who trigerred the event
* @param event The Gdk low level event object
* @param pos The GuitarPosition (string and fret) of the pressed note
*/
public signal void note_pressed (Guitar guitar, Gdk.EventButton event,
public signal void note_pressed (Gdk.EventButton event,
GuitarPosition pos);
/**
* Signal emitted when a note has been released (mouse button released)
* @param guitar The Guitar who trigerred the event
* @param event The Gdk low level event object
* @param pos The GuitarPosition (string and fret) of the released note
*/
public signal void note_released (Guitar guitar, Gdk.EventButton event,
public signal void note_released (Gdk.EventButton event,
GuitarPosition pos);
//=========================================================================
......@@ -471,7 +469,7 @@ public class Guitar : DrawingArea {
public override bool button_press_event (Gdk.EventButton event) {
GuitarPosition? pos = point_to_position(event.x, event.y);
if(pos != null)
note_pressed(this, event, pos);
note_pressed(event, pos);
return true;
}
......@@ -484,7 +482,7 @@ public class Guitar : DrawingArea {
public override bool button_release_event (Gdk.EventButton event) {
GuitarPosition? pos = point_to_position(event.x, event.y);
if(pos != null)
note_released(this, event, pos);
note_released(event, pos);
return true;
}
......
......@@ -51,20 +51,18 @@ public class Piano : DrawingArea {
/**
* Signal emitted when a note has been pressed with the mouse
* @param piano The Piano who trigerred the event
* @param event The Gdk low level event object
* @param midi_note The MIDI value (number) of the pressed note
*/
public signal void note_pressed (Piano piano, Gdk.EventButton event,
public signal void note_pressed (Gdk.EventButton event,
int midi_note); //ushort not supported?
/**
* Signal emitted when a note has been released (mouse button released)
* @param piano The Piano who trigerred the event
* @param event The Gdk low level event object
* @param midi_note The MIDI value (number) of the released note
*/
public signal void note_released (Piano piano, Gdk.EventButton event,
public signal void note_released (Gdk.EventButton event,
int midi_note); //ushort not supported?
//=========================================================================
......@@ -323,7 +321,7 @@ public class Piano : DrawingArea {
* emits a note_pressed signal.
*/
public override bool button_press_event (Gdk.EventButton event) {
note_pressed(this, event, point_to_midi(event.x, event.y));
note_pressed(event, point_to_midi(event.x, event.y));
return true;
}
......@@ -334,7 +332,7 @@ public class Piano : DrawingArea {
* and emits a note_released signal.
*/
public override bool button_release_event (Gdk.EventButton event) {
note_released(this, event, point_to_midi(event.x, event.y));
note_released(event, point_to_midi(event.x, event.y));
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment