[meld] Simplify custom edit handling
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Simplify custom edit handling
- Date: Sun, 10 Jun 2012 22:06:05 +0000 (UTC)
commit 2be7b9047297556e2c903b460e89f81983f84ebe
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Jun 2 07:58:09 2012 +1000
Simplify custom edit handling
meld/preferences.py | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/meld/preferences.py b/meld/preferences.py
index 9734cf4..8ba1af4 100644
--- a/meld/preferences.py
+++ b/meld/preferences.py
@@ -130,8 +130,7 @@ class PreferencesDialog(gnomeglade.Component):
self.prefs.edit_command_type == "gnome"
self.system_editor_checkbutton.set_active(use_default)
self.custom_edit_command_entry.set_sensitive(not use_default)
- custom_command = " ".join(self.prefs.get_editor_command([], "custom"))
- self.custom_edit_command_entry.set_text(custom_command)
+ self.custom_edit_command_entry.set_text(self.prefs.edit_command_custom)
# file filters
self.filefilter = FilterList(self.prefs, "filters",
@@ -286,11 +285,8 @@ class MeldPreferences(prefs.Preferences):
}
return toolbar_styles[style]
- def get_editor_command(self, files, command_type=None):
- if command_type is None:
- command_type = self.edit_command_type
-
- if command_type == "custom":
+ def get_editor_command(self, files):
+ if self.edit_command_type == "custom":
return self.edit_command_custom.split() + files
else:
if not hasattr(self, "_gconf"):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]