[latexila] Remove hack in completion show_no_proposals()
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Remove hack in completion show_no_proposals()
- Date: Wed, 13 Feb 2013 19:06:26 +0000 (UTC)
commit 16f02d7d64efc7121b0731da78df9c8cb0e308b0
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Wed Feb 13 20:03:31 2013 +0100
Remove hack in completion show_no_proposals()
This requires the new vapi of GtkSourceView, available in the master
branch of vala.
Attention, the 0.18 vala branch has a more recent version than the
master branchâ
configure.ac | 2 +-
src/completion.vala | 5 +----
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6682a29..f1788ef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,7 +27,7 @@ LT_INIT
GLIB_REQUIRED_VERSION="2.32"
GTK_REQUIRED_VERSION="3.6.0"
GTKSOURCEVIEW_REQUIRED_VERSION="3.7.3"
-VALA_REQUIRED_VERSION="0.18.0.82"
+VALA_REQUIRED_VERSION="0.18.0.109" # master branch
AC_SUBST([GLIB_REQUIRED_VERSION])
AC_SUBST([GTK_REQUIRED_VERSION])
diff --git a/src/completion.vala b/src/completion.vala
index e21069c..08b428e 100644
--- a/src/completion.vala
+++ b/src/completion.vala
@@ -252,10 +252,7 @@ public class CompletionProvider : GLib.Object, SourceCompletionProvider
// It has the same effect as returning false in match().
private void show_no_proposals (SourceCompletionContext context)
{
- // The second argument can not be null so we use a variable...
- // The vapi should be fixed.
- List<SourceCompletionItem> empty_proposals = null;
- context.add_proposals ((SourceCompletionProvider) this, empty_proposals, true);
+ context.add_proposals ((SourceCompletionProvider) this, null, true);
}
private void show_all_proposals (SourceCompletionContext context)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]