[latexila] Completion: don't show headers



commit e226a68e8c983132caf738b5f19b6c98b427ef43
Author: SÃbastien Wilmet <swilmet src gnome org>
Date:   Mon Apr 9 01:50:44 2012 +0200

    Completion: don't show headers
    
    With a GtkSourceView version older than 3.4.1, it will compile fine (if
    the restriction is removed from CMake), but in this case there will be a
    bug for the completion (lots of critical messages and sometimes a
    segfault).

 CMakeLists.txt         |    2 +-
 INSTALL                |    2 +-
 src/document_view.vala |    4 +---
 3 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3487489..f3dabbf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,7 +48,7 @@ endif ()
 
 find_package (PkgConfig)
 pkg_check_modules (GTK REQUIRED "gtk+-3.0 >= 3.4")
-pkg_check_modules (GTKSOURCEVIEW REQUIRED "gtksourceview-3.0")
+pkg_check_modules (GTKSOURCEVIEW REQUIRED "gtksourceview-3.0 >= 3.4.1")
 pkg_check_modules (GEE REQUIRED "gee-1.0")
 pkg_check_modules (GIO REQUIRED "gio-2.0 >= 2.32")
 pkg_check_modules (GTKSPELL REQUIRED "gtkspell-3.0")
diff --git a/INSTALL b/INSTALL
index 107709f..bdd822a 100644
--- a/INSTALL
+++ b/INSTALL
@@ -3,7 +3,7 @@ Requirements
 
 GLib >= 2.32
 GTK+ >= 3.4
-GtkSourceView >= 3.0
+GtkSourceView >= 3.4.1
 GtkSpell >= 3.0 (not yet released)
 libgee
 gettext
diff --git a/src/document_view.vala b/src/document_view.vala
index 46fc866..a316d28 100644
--- a/src/document_view.vala
+++ b/src/document_view.vala
@@ -63,9 +63,7 @@ public class DocumentView : Gtk.SourceView
             CompletionProvider provider = CompletionProvider.get_default ();
             completion.add_provider (provider);
             completion.remember_info_visibility = true;
-
-            // Gtk-CRITICAL with that, see bug #629055
-            //completion.show_headers = false;
+            completion.show_headers = false;
 
             buffer.notify["cursor-position"].connect (() =>
             {



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