[gedit-latex/fixes-for-master: 2/2] use Gtk.show_uri instead of system
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex/fixes-for-master: 2/2] use Gtk.show_uri instead of system
- Date: Thu, 17 Jan 2013 20:19:00 +0000 (UTC)
commit 14e6eea229c7a0cc3f63bbeebe8bd9f5800442c8
Author: John Stowers <john stowers gmail com>
Date: Thu Jan 17 18:52:08 2013 +0100
use Gtk.show_uri instead of system
latex/latex/views.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/latex/latex/views.py b/latex/latex/views.py
index 19a37d0..2b9abcd 100644
--- a/latex/latex/views.py
+++ b/latex/latex/views.py
@@ -28,7 +28,6 @@ import logging
import xml.etree.ElementTree as ElementTree
from gi.repository import Gtk, GdkPixbuf
-from os import system
from os.path import basename
from ..preferences import Preferences
@@ -261,7 +260,7 @@ class LaTeXOutlineView(BaseOutlineView):
LOG.error("LatexOutline: File not found: %s" % filename)
return
- system("gvfs-open %s" % f.uri)
+ Gtk.show_uri(None, f.uri, Gtk.get_current_event_time())
else:
# select/open/activate the referenced file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]