[gnome-dvb-daemon] Fix deprecation warning of GLib.Sequence.remove_range



commit 3a8b74ddb5e1290ec26ea1ff608aa9990682d545
Author: Sebastian Pölsterl <sebp k-d-w org>
Date:   Sun Jun 19 19:05:17 2016 +0100

    Fix deprecation warning of GLib.Sequence.remove_range
    
    Requires vala 0.26 or later

 configure.ac          |    2 +-
 src/EventStorage.vala |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 919fe6d..d3e6371 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@ AM_PROG_CC_C_O
 LT_PREREQ([2.2.6])
 LT_INIT([disable-static])
 
-AM_PROG_VALAC([0.25.1])
+AM_PROG_VALAC([0.26])
 
 AC_SUBST(CFLAGS)
 AC_SUBST(CPPFLAGS)
diff --git a/src/EventStorage.vala b/src/EventStorage.vala
index 475a01c..5632ccd 100644
--- a/src/EventStorage.vala
+++ b/src/EventStorage.vala
@@ -102,7 +102,7 @@ namespace DVB {
                 iter = iter.next ();
             }
 
-            Sequence.remove_range (begin_iter, end_iter);
+            begin_iter.remove_range (end_iter);
 
             _stamp++;
 
@@ -113,7 +113,7 @@ namespace DVB {
             foreach (Event event in events) {
                 SequenceIter<EventElement> iter = this.event_id_map.get (event.id);
                 if (iter != null) {
-                    Sequence.remove (iter);
+                    iter.remove ();
                     this.event_id_map.unset (event.id);
                 }
             }


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