[valencia/wip/724173-gedit] Use vte-2.91, replace do_save with Gedit.commands_save_document and Vte.Terminal.fork_command_full w
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valencia/wip/724173-gedit] Use vte-2.91, replace do_save with Gedit.commands_save_document and Vte.Terminal.fork_command_full w
- Date: Wed, 18 Feb 2015 01:09:49 +0000 (UTC)
commit 045dc997b4edd6e384f4dd0795a3950dba6148c8
Author: Kyrylo Polezhaiev <polezhaiev ukr net>
Date: Sat Feb 14 14:23:52 2015 +0200
Use vte-2.91, replace do_save with Gedit.commands_save_document and Vte.Terminal.fork_command_full with
spawn_sync
Makefile | 4 ++--
valencia.vala | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/Makefile b/Makefile
index d725891..f778f5d 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ VALAC = valac
endif
ifndef LIBVALA
-LIBVALA=libvala-0.24
+LIBVALA=libvala-0.26
endif
VALAC_VERSION := `$(VALAC) --version | awk '{print $$2}'`
@@ -18,7 +18,7 @@ SOURCES = autocomplete.vala browser.vala expression.vala gtk_util.vala parser.va
scanner.vala settings.vala util.vala valencia.vala
PACKAGES = --pkg gedit --pkg gee-0.8 --pkg gtk+-3.0 --pkg gtksourceview-3.0 \
- --pkg libpeas-1.0 --pkg $(LIBVALA) --pkg vte-2.90
+ --pkg libpeas-1.0 --pkg $(LIBVALA) --pkg vte-2.91
PACKAGE_VERSIONS = \
gedit >= 3.12.0 \
diff --git a/valencia.vala b/valencia.vala
index 8fbd4aa..7b378fc 100644
--- a/valencia.vala
+++ b/valencia.vala
@@ -834,7 +834,7 @@ public class Instance : Peas.ExtensionBase, Gedit.WindowActivatable {
if (!d.is_untitled() && d.get_modified()) {
++saving;
Signal.connect(d, "saved", (Callback) saved_callback, this);
- d.do_save(0);
+ Gedit.commands_save_document(window, d);
}
if (saving == 0)
build();
@@ -1349,7 +1349,7 @@ public class Instance : Peas.ExtensionBase, Gedit.WindowActivatable {
int pid;
bool ok;
try {
- ok = run_terminal.fork_command_full(
+ ok = run_terminal.spawn_sync(
0, Path.get_dirname(binary_path), args, null, 0, null, out pid);
} catch (Error e) { ok = false; }
if (!ok) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]