[libgtkmusic] Fixed event signature in Vala sources.
- From: Leandro Resende Mattioli <lmattioli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtkmusic] Fixed event signature in Vala sources.
- Date: Sat, 7 Apr 2018 04:43:52 +0000 (UTC)
commit ef9fbd5f443aaff95d08f99431381c9dbb91a8e0
Author: Leandro Mattioli <leandro mattioli gmail com>
Date: Sat Apr 7 01:43:35 2018 -0300
Fixed event signature in Vala sources.
.gitignore | 13 -------------
src/GuitarWidget.vala | 10 ++++------
src/PianoWidget.vala | 10 ++++------
3 files changed, 8 insertions(+), 25 deletions(-)
---
diff --git a/src/GuitarWidget.vala b/src/GuitarWidget.vala
index 5a32d77..5ed1931 100644
--- a/src/GuitarWidget.vala
+++ b/src/GuitarWidget.vala
@@ -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;
}
diff --git a/src/PianoWidget.vala b/src/PianoWidget.vala
index 2c5f9b7..7626a18 100644
--- a/src/PianoWidget.vala
+++ b/src/PianoWidget.vala
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]