[gitg] Fix diff test compilation



commit 6cecdedfb5c33fd90afa26cf8eab667d0fee3e67
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Mar 7 10:10:28 2013 +0100

    Fix diff test compilation

 libgd                |    2 +-
 tests/diff-view.vala |   13 +++++++------
 2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/libgd b/libgd
index 42e48be..33561ee 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit 42e48be3b7cc5c4a21b684f92628c28c4445f3b7
+Subproject commit 33561eea68af66209af8426c9ff55cc3143f0ab5
diff --git a/tests/diff-view.vala b/tests/diff-view.vala
index 8ccc18a..ac77dcf 100644
--- a/tests/diff-view.vala
+++ b/tests/diff-view.vala
@@ -3,6 +3,7 @@ class TestDiffView
        public static int main(string[] args)
        {
                Gtk.init(ref args);
+               Ggit.init();
 
                if (Environment.get_variable("GITG_GTK_DIFF_VIEW_DEBUG") != "local" && args.length > 1 && 
args[1] == "--local")
                {
@@ -102,12 +103,12 @@ class TestDiffView
                var v = new GitgGtk.DiffView(null);
                sw.add(v);
 
-               v.options = new Ggit.DiffOptions(Ggit.DiffFlags.NORMAL,
-                                               3,
-                                               0,
-                                               null,
-                                               null,
-                                               null);
+               v.options = new Ggit.DiffOptions(Ggit.DiffOption.NORMAL,
+                                                3,
+                                                0,
+                                                null,
+                                                null,
+                                                null);
 
                v.commit = commit;
 


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