[gedit] Remove version checking because depends on new API anyway
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Remove version checking because depends on new API anyway
- Date: Thu, 29 Apr 2010 22:46:07 +0000 (UTC)
commit 6e8ccd2667a4c1ac4a56b8a235b07d50ea92bc7a
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Fri Apr 30 00:43:41 2010 +0200
Remove version checking because depends on new API anyway
plugins/quickopen/quickopen/windowhelper.py | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/plugins/quickopen/quickopen/windowhelper.py b/plugins/quickopen/quickopen/windowhelper.py
index 6b62eaa..bcd8aff 100644
--- a/plugins/quickopen/quickopen/windowhelper.py
+++ b/plugins/quickopen/quickopen/windowhelper.py
@@ -88,20 +88,19 @@ class WindowHelper:
paths.append(gfile.get_parent())
# File browser root directory
- if gedit.version[0] > 2 or (gedit.version[0] == 2 and (gedit.version[1] > 26 or (gedit.version[1] == 26 and gedit.version[2] >= 2))):
- bus = self._window.get_message_bus()
+ bus = self._window.get_message_bus()
- try:
- msg = bus.send_sync('/plugins/filebrowser', 'get_root')
+ try:
+ msg = bus.send_sync('/plugins/filebrowser', 'get_root')
- if msg:
- gfile = msg.get_value('location')
+ if msg:
+ gfile = msg.get_value('location')
- if gfile and gfile.is_native():
- paths.append(gfile)
+ if gfile and gfile.is_native():
+ paths.append(gfile)
- except StandardError:
- pass
+ except StandardError:
+ pass
# Recent documents
paths.append(RecentDocumentsDirectory(screen=self._window.get_screen()))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]