[Vala] Gdk.Cursor needs to be unref'ed properly



Hi,

I was running into a problem with using Gdk.Cursor, example program
attached. Compiling this leads to the following:
$ valac -o test --pkg gtk+-2.0 test-window.vala 
/tmp/cczEcr4t.o: In function `test_window_do_test':
test.c:(.text+0x152): undefined reference to `gdk_cursor_free'
collect2: ld returned 1 exit status
error: cc exited with status 256

Applying the attached patch to gdk-2.0.vala fixes this.

-- 
Arwed v. Merkatz                              Source Mage GNU/Linux developer
                                                    http://www.sourcemage.org

Attachment: test.vala
Description: Text document

Attachment: vala-vapi.patch
Description: Text document



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