blob: 34f6e626dcef1cfe46391d8087bbd2c60170806b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
diff --git a/gedit_plugin/meson.build b/gedit_plugin/meson.build
index 883668d..596adbb 100644
--- a/gedit_plugin/meson.build
+++ b/gedit_plugin/meson.build
@@ -3,6 +3,7 @@ project('autovala_gedit',['c','vala'])
ATHOME = (get_option('ATHOME') != '')
add_global_arguments('-DGETTEXT_PACKAGE="autovala_gedit"',language: 'c')
+add_project_arguments('--pkg=Tepl-6', language: 'vala')
add_project_arguments('--girdir=../build/src/autovalaLib', language: 'vala')
add_project_arguments('--vapidir=../build/src/autovalaLib', language: 'vala')
diff --git a/gedit_plugin/src/gedit_plugin.vala b/gedit_plugin/src/gedit_plugin.vala
index 641345e..c0edb99 100644
--- a/gedit_plugin/src/gedit_plugin.vala
+++ b/gedit_plugin/src/gedit_plugin.vala
@@ -148,10 +148,9 @@ namespace autovalagedit {
this.window.set_active_tab(tab);
}
if (tab != null) {
- var document = tab.get_document();
- document.goto_line(line);
var view = tab.get_view();
- view.scroll_to_cursor();
+ (view as Tepl.View)?.goto_line(line);
+ (view as Tepl.View)?.scroll_to_cursor();
}
}
|