wok rev 17820

marlin: fix tests-pathbar.vala
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 22 09:52:23 2015 +0100 (2015-03-22)
parents 0df6a2200dae
children 445f4c66dcb8
files marlin/receipt marlin/stuff/marlin-fix-tests.patch plm2c/receipt
line diff
     1.1 --- a/marlin/receipt	Sun Mar 22 08:45:09 2015 +0000
     1.2 +++ b/marlin/receipt	Sun Mar 22 09:52:23 2015 +0100
     1.3 @@ -25,7 +25,9 @@
     1.4  
     1.5  	patch -p1 < $stuff/marlin-0.5.patch
     1.6  	patch -p1 < $stuff/marlin-icons.patch
     1.7 -	patch -p1 < $stuff/marlin-fix-tests.patch
     1.8 +	sed -i 's/Gdk.EventKey event = Gdk.EventKey(/Gdk.Event event = new Gdk.Event(Gdk.EventType.KEY_PRESS/' libwidgets/tests/tests-pathbar.vala
     1.9 +	sed -i 's/event\./&key./' libwidgets/tests/tests-pathbar.vala
    1.10 +	sed -i 's/event)/event.key)/' libwidgets/tests/tests-pathbar.vala
    1.11  
    1.12  	mkdir build && cd build &&
    1.13  	cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
     2.1 --- a/marlin/stuff/marlin-fix-tests.patch	Sun Mar 22 08:45:09 2015 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,41 +0,0 @@
     2.4 -# Opened ticket at https://bugs.launchpad.net/marlin/+bug/1404153
     2.5 -# Reference: http://valadoc.org/#!api=gdk-3.0/Gdk.EventKey
     2.6 -diff -rupN marlin-0.5/libwidgets/tests/tests-pathbar.vala marlin-0.5-new/libwidgets/tests/tests-pathbar.vala
     2.7 ---- marlin-0.5/libwidgets/tests/tests-pathbar.vala	2015-02-26 22:56:43.937906000 -0300
     2.8 -+++ marlin-0.5/libwidgets/tests/tests-pathbar.vala	2015-03-02 11:28:47.254657420 -0300
     2.9 -@@ -35,7 +35,7 @@ void add_pathbar_tests()
    2.10 -         var bread_entry = new BreadcrumbsEntry();
    2.11 -         assert(bread_entry is BreadcrumbsEntry);
    2.12 -         assert(bread_entry.text == "");
    2.13 --        Gdk.EventKey event = Gdk.EventKey();
    2.14 -+        Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS);
    2.15 -         event.window = breads.get_window();
    2.16 -         event.keyval = 0x061; /* a */
    2.17 -         bread_entry.key_press_event(event);
    2.18 -@@ -122,7 +122,7 @@ void add_pathbar_tests()
    2.19 -         assert(bread_entry.text == "");
    2.20 -         bread_entry.text = "abdcefghij/";
    2.21 -         bread_entry.cursor = ("abdcefghij/").length;
    2.22 --        Gdk.EventKey event = Gdk.EventKey();
    2.23 -+        Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS);
    2.24 -         event.state = Gdk.ModifierType.SHIFT_MASK;
    2.25 -         event.window = breads.get_window();
    2.26 -         event.keyval = 0xff51; /* left */
    2.27 -@@ -136,7 +136,7 @@ void add_pathbar_tests()
    2.28 -         var bread_entry = new BreadcrumbsEntry();
    2.29 -         assert(bread_entry is BreadcrumbsEntry);
    2.30 -         assert(bread_entry.text == "");
    2.31 --        Gdk.EventKey event = Gdk.EventKey();
    2.32 -+        Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS);
    2.33 -         event.window = breads.get_window();
    2.34 -         event.keyval = 0xff08; /* backspace */
    2.35 -         bread_entry.key_press_event(event);
    2.36 -@@ -149,7 +149,7 @@ void add_pathbar_tests()
    2.37 -         BreadcrumbsEntry bread_entry = breads.entry;
    2.38 -         assert(bread_entry is BreadcrumbsEntry);
    2.39 -         assert(bread_entry.text == "");
    2.40 --        Gdk.EventKey event = Gdk.EventKey();
    2.41 -+        Gdk.EventKey event = new Gdk.EventKey(Gdk.EventType.KEY_PRESS);
    2.42 -         event.window = breads.get_window();
    2.43 -         event.keyval = 0xff08; /* backspace */
    2.44 -         breads.key_press_event(event);
     3.1 --- a/plm2c/receipt	Sun Mar 22 08:45:09 2015 +0000
     3.2 +++ b/plm2c/receipt	Sun Mar 22 09:52:23 2015 +0100
     3.3 @@ -1,7 +1,7 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="plm2c"
     3.7 -VERSION="unknown"
     3.8 +VERSION="1.02"
     3.9  CATEGORY="development"
    3.10  SHORT_DESC="Convert PLM sources files to C language."
    3.11  MAINTAINER="pascal.bellard@slitaz.org"