gedit-plugins r397 - in trunk: . plugins/terminal
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit-plugins r397 - in trunk: . plugins/terminal
- Date: Sun, 23 Nov 2008 11:06:42 +0000 (UTC)
Author: icq
Date: Sun Nov 23 11:06:42 2008
New Revision: 397
URL: http://svn.gnome.org/viewvc/gedit-plugins?rev=397&view=rev
Log:
2008-11-23 Ignacio Casal Quinteiro <nacho resa gmail com>
* plugins/terminal/terminal.py:
* configure.ac:
Ported to gio. Bump pygtk and pygobject.
Modified:
trunk/ChangeLog
trunk/configure.ac
trunk/plugins/terminal/terminal.py
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Sun Nov 23 11:06:42 2008
@@ -60,7 +60,7 @@
gtk+-2.0 >= 2.13.0
gtksourceview-2.0 >= 2.4.0
gedit-2.20 >= 2.24.0
- gnome-vfs-2.0 >= 2.13.4
+ gio-2.0 >= 2.16.0
])
GEDIT_LIBS="${GEDIT_LIBS}"
AC_SUBST(GEDIT_LIBS)
@@ -224,9 +224,9 @@
if test "x$have_python" != "xno"
then
- PYGOBJECT_REQUIRED=2.11.5
- PYGTK_REQUIRED=2.9.7
- PYGTKSOURCEVIEW_REQUIRED=1.90.4
+ PYGOBJECT_REQUIRED=2.15.4
+ PYGTK_REQUIRED=2.12.0
+ PYGTKSOURCEVIEW_REQUIRED=2.2.0
PKG_CHECK_MODULES([PYGTK], [
pygobject-2.0 >= $PYGOBJECT_REQUIRED
Modified: trunk/plugins/terminal/terminal.py
==============================================================================
--- trunk/plugins/terminal/terminal.py (original)
+++ trunk/plugins/terminal/terminal.py Sun Nov 23 11:06:42 2008
@@ -28,8 +28,8 @@
import vte
import gconf
import gettext
-import gnomevfs
import os
+import gio
from gpdefs import *
try:
@@ -238,7 +238,9 @@
return None
uri = doc.get_uri()
if uri is not None and gedit.utils.uri_has_file_scheme(uri):
- return os.path.dirname(gnomevfs.get_local_path_from_uri(uri))
+ gfile = gio.File(uri)
+ directory = gfile.get_parent()
+ return os.path.dirname(directory.get_path())
return None
def on_panel_populate_popup(self, panel, menu):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]