[latexila/gnome-3-14] Completion: adapt get_start_iter()



commit 10e0ec889b25a738f69a90ef16c7b3dbd0b9bf05
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Jan 7 14:41:06 2015 +0100

    Completion: adapt get_start_iter()
    
    It is after an incompatible change in the Vala API of GtkSourceView (the
    C API didn't change at all).
    
    Since GTK+ >= 3.14 is already required for LaTeXila 3.14, it's fine.

 configure.ac        |    2 +-
 src/completion.vala |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2fa9c13..6a337eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,7 +27,7 @@ LT_INIT
 # Update also the --target-glib option in src/Makefile.am.
 GLIB_REQUIRED_VERSION="2.40"
 GTK_REQUIRED_VERSION="3.14"
-GTKSOURCEVIEW_REQUIRED_VERSION="3.10"
+GTKSOURCEVIEW_REQUIRED_VERSION="3.14.3"
 GTKSPELL_REQUIRED_VERSION="3.0.4"
 VALA_REQUIRED_VERSION="0.25.4"
 GEE_REQUIRED_VERSION="0.10"
diff --git a/src/completion.vala b/src/completion.vala
index 4902dbc..5e80eb4 100644
--- a/src/completion.vala
+++ b/src/completion.vala
@@ -128,8 +128,9 @@ public class CompletionProvider : GLib.Object, SourceCompletionProvider
     }
 
     public bool get_start_iter (SourceCompletionContext context,
-        SourceCompletionProposal proposal, TextIter iter)
+        SourceCompletionProposal proposal, out TextIter iter)
     {
+        iter = {};
         string? cmd = get_latex_command_at_iter (context.iter);
 
         // In a LaTeX command argument, use the default implementation.


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