[libgtkmusic.wiki] Update home



commit 222097755f123bbee213329e69504d36f9a83336
Author: Leandro Resende Mattioli <leandro mattioli gmail com>
Date:   Mon Dec 10 02:33:54 2018 +0000

    Update home

 home.md | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/home.md b/home.md
index ccdd458..851ca85 100644
--- a/home.md
+++ b/home.md
@@ -73,7 +73,13 @@ LD\_EXPORT\_PATH:
 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/x86_64-linux-gnu"
 ```
 
-Append this line to your `~/.profile` to make it permanent.
+You might will also need to tell `GObject Introspection` where to find the library typelib:
+
+```
+export GI_TYPELIB_PATH=/usr/local/lib/x86_64-linux-gnu/girepository-1.0
+```
+
+Append these lines to your `~/.profile` to make it permanent.
 
 Usage
 -----
@@ -90,7 +96,7 @@ gi.require_version('GtkMusic', '0.4')
 
 from gi.repository import Gtk, Gdk, GtkMusic
 
-def note_pressed(sender, widget, event, midi_code):
+def note_pressed(widget, event, midi_code):
         print('You pressed the note with MIDI code %d!' % midi_code)
 
 win = Gtk.Window()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]