[baobab] Adjust to Vala 0.18 bindings for GtkTreeStore



commit 81a2b087cd716cbfcb5c07d1b5addf013ba92c12
Author: Ryan Lortie <desrt desrt ca>
Date:   Sat Jun 23 09:12:19 2012 -0400

    Adjust to Vala 0.18 bindings for GtkTreeStore
    
    The 'remove' method now takes its argument by reference (because it
    modifies it to point at the next row after the removed one).
    
    This was changed in https://bugzilla.gnome.org/show_bug.cgi?id=675402
    
    Bump Vala dependency to 0.17.1.15, which is the commit that introduced
    the change.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678665

 configure.ac           |    2 +-
 src/baobab-window.vala |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index bd64836..95eb842 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,7 +29,7 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext d
 AC_PROG_CC
 AC_PROG_INSTALL
 AC_PROG_MAKE_SET
-AM_PROG_VALAC
+AM_PROG_VALAC([0.17.1.15])
 PKG_PROG_PKG_CONFIG([0.22])
 
 ## don't rerun to this point if we abort
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index dae5689..9510a29 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -420,7 +420,7 @@ namespace Baobab {
                     var file = File.parse_name (parse_name);
                     try {
                         file.trash ();
-                        scanner.remove (iter);
+                        scanner.remove (ref iter);
                     } catch (Error e) {
                         warning ("Failed to move file to the trash: %s", e.message);
                     }



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