# HG changeset patch # User Pascal Bellard # Date 1427014343 -3600 # Node ID ca4434937abf2914131d48794190951d30c9ccef # Parent 0df6a2200daea757bf867b3efc82988324a26dfa marlin: fix tests-pathbar.vala diff -r 0df6a2200dae -r ca4434937abf marlin/receipt --- a/marlin/receipt Sun Mar 22 08:45:09 2015 +0000 +++ b/marlin/receipt Sun Mar 22 09:52:23 2015 +0100 @@ -25,7 +25,9 @@ patch -p1 < $stuff/marlin-0.5.patch patch -p1 < $stuff/marlin-icons.patch - patch -p1 < $stuff/marlin-fix-tests.patch + sed -i 's/Gdk.EventKey event = Gdk.EventKey(/Gdk.Event event = new Gdk.Event(Gdk.EventType.KEY_PRESS/' libwidgets/tests/tests-pathbar.vala + sed -i 's/event\./&key./' libwidgets/tests/tests-pathbar.vala + sed -i 's/event)/event.key)/' libwidgets/tests/tests-pathbar.vala mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr && diff -r 0df6a2200dae -r ca4434937abf marlin/stuff/marlin-fix-tests.patch --- a/marlin/stuff/marlin-fix-tests.patch Sun Mar 22 08:45:09 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -# Opened ticket at https://bugs.launchpad.net/marlin/+bug/1404153 -# Reference: http://valadoc.org/#!api=gdk-3.0/Gdk.EventKey -diff -rupN marlin-0.5/libwidgets/tests/tests-pathbar.vala marlin-0.5-new/libwidgets/tests/tests-pathbar.vala ---- marlin-0.5/libwidgets/tests/tests-pathbar.vala 2015-02-26 22:56:43.937906000 -0300 -+++ marlin-0.5/libwidgets/tests/tests-pathbar.vala 2015-03-02 11:28:47.254657420 -0300 -@@ -35,7 +35,7 @@ void add_pathbar_tests() - var bread_entry = new BreadcrumbsEntry(); - assert(bread_entry is BreadcrumbsEntry); - assert(bread_entry.text == ""); -- Gdk.EventKey event = Gdk.EventKey(); -+ Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS); - event.window = breads.get_window(); - event.keyval = 0x061; /* a */ - bread_entry.key_press_event(event); -@@ -122,7 +122,7 @@ void add_pathbar_tests() - assert(bread_entry.text == ""); - bread_entry.text = "abdcefghij/"; - bread_entry.cursor = ("abdcefghij/").length; -- Gdk.EventKey event = Gdk.EventKey(); -+ Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS); - event.state = Gdk.ModifierType.SHIFT_MASK; - event.window = breads.get_window(); - event.keyval = 0xff51; /* left */ -@@ -136,7 +136,7 @@ void add_pathbar_tests() - var bread_entry = new BreadcrumbsEntry(); - assert(bread_entry is BreadcrumbsEntry); - assert(bread_entry.text == ""); -- Gdk.EventKey event = Gdk.EventKey(); -+ Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS); - event.window = breads.get_window(); - event.keyval = 0xff08; /* backspace */ - bread_entry.key_press_event(event); -@@ -149,7 +149,7 @@ void add_pathbar_tests() - BreadcrumbsEntry bread_entry = breads.entry; - assert(bread_entry is BreadcrumbsEntry); - assert(bread_entry.text == ""); -- Gdk.EventKey event = Gdk.EventKey(); -+ Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS); - event.window = breads.get_window(); - event.keyval = 0xff08; /* backspace */ - breads.key_press_event(event); diff -r 0df6a2200dae -r ca4434937abf plm2c/receipt --- a/plm2c/receipt Sun Mar 22 08:45:09 2015 +0000 +++ b/plm2c/receipt Sun Mar 22 09:52:23 2015 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="plm2c" -VERSION="unknown" +VERSION="1.02" CATEGORY="development" SHORT_DESC="Convert PLM sources files to C language." MAINTAINER="pascal.bellard@slitaz.org"