[meld] filediff: Remove some filename-based handling in external opener
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] filediff: Remove some filename-based handling in external opener
- Date: Sat, 7 Apr 2018 23:07:07 +0000 (UTC)
commit fcdebbcc2e1593d7e86cbc66d41b7c772dd51b7e
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Apr 8 09:00:20 2018 +1000
filediff: Remove some filename-based handling in external opener
meld/filediff.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index a849d91d..b434da23 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -924,12 +924,14 @@ class FileDiff(MeldDoc, Component):
@with_focused_pane
def open_external(self, pane):
- if not self.textbuffer[pane].data.filename:
+ if not self.textbuffer[pane].data.gfile:
return
pos = self.textbuffer[pane].props.cursor_position
cursor_it = self.textbuffer[pane].get_iter_at_offset(pos)
line = cursor_it.get_line() + 1
- self._open_files([self.textbuffer[pane].data.filename], line)
+ # TODO: Support URI-based opens
+ path = self.textbuffer[pane].data.gfile.get_path()
+ self._open_files([path], line)
def update_text_actions_sensitivity(self, *args):
widget = self.focus_pane
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]