[latexila/wip/gtef: 3/3] Document: subclass GtefBuffer
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/gtef: 3/3] Document: subclass GtefBuffer
- Date: Sat, 22 Oct 2016 07:34:53 +0000 (UTC)
commit c3bdb92df1ca541708d2a6abacb343161cdc8527
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Oct 22 08:59:57 2016 +0200
Document: subclass GtefBuffer
To use the GtefBuffer::cursor-moved signal.
src/document.vala | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/src/document.vala b/src/document.vala
index 51aba3b..45b37fe 100644
--- a/src/document.vala
+++ b/src/document.vala
@@ -26,7 +26,7 @@ public enum SelectionType
MULTIPLE_LINES
}
-public class Document : Gtk.SourceBuffer
+public class Document : Gtef.Buffer
{
public File location { get; set; }
public bool readonly { get; set; default = false; }
@@ -40,8 +40,6 @@ public class Document : Gtk.SourceBuffer
private DocumentStructure _structure = null;
private FileInfo _metadata_info = new FileInfo ();
- public signal void cursor_moved ();
-
public Document ()
{
// syntax highlighting: LaTeX by default
@@ -54,16 +52,9 @@ public class Document : Gtk.SourceBuffer
update_project_id ();
});
- mark_set.connect ((location, mark) =>
- {
- if (mark == get_insert ())
- cursor_moved ();
- });
-
changed.connect (() =>
{
new_file = false;
- cursor_moved ();
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]