summaryrefslogtreecommitdiff
path: root/geneticone/gui/gtk/windows.py
diff options
context:
space:
mode:
authornecoro <>2006-11-12 17:41:03 +0000
committernecoro <>2006-11-12 17:41:03 +0000
commitccee291737673926730f8573c22bb348b10438eb (patch)
tree3855b9ba0586576721814ab083713c840d2730d3 /geneticone/gui/gtk/windows.py
parente6080239db72c7d04b1fe81aa666b2eb379028a1 (diff)
downloadportato-ccee291737673926730f8573c22bb348b10438eb.tar.gz
portato-ccee291737673926730f8573c22bb348b10438eb.tar.bz2
portato-ccee291737673926730f8573c22bb348b10438eb.zip
added control field for specifying the sync command
Diffstat (limited to '')
-rw-r--r--geneticone/gui/gtk/windows.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/geneticone/gui/gtk/windows.py b/geneticone/gui/gtk/windows.py
index 659c35f..8c6febb 100644
--- a/geneticone/gui/gtk/windows.py
+++ b/geneticone/gui/gtk/windows.py
@@ -170,9 +170,10 @@ class PreferenceWindow (AbstractDialog):
# all edits in the window
# widget name -> option name
edits = {
- "maskFileEdit" : "maskFile_opt",
- "testFileEdit" : "testingFile_opt",
- "useFileEdit" : "useFile_opt"
+ "maskFileEdit" : "maskFile_opt",
+ "testFileEdit" : "testingFile_opt",
+ "useFileEdit" : "useFile_opt",
+ "syncCommandEdit" : "syncCmd_opt"
}
def __init__ (self, parent, cfg):
@@ -192,7 +193,6 @@ class PreferenceWindow (AbstractDialog):
hintEB = self.tree.get_widget("hintEB")
hintEB.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse("#f3f785"))
-
for box in self.checkboxes:
self.tree.get_widget(box).\
set_active(self.cfg.get_boolean(\
@@ -735,6 +735,9 @@ class MainWindow (Window):
flags.write_use_flags()
if len(flags.new_masked)>0 or len(flags.new_unmasked)>0 or len(flags.newTesting)>0:
+ debug("new masked:",flags.new_masked)
+ debug("new unmasked:", flags.new_unmasked)
+ debug("new testing:", flags.newTesting)
changed_flags_dialog("masking keywords")
flags.write_masked()
flags.write_testing()
@@ -799,7 +802,13 @@ class MainWindow (Window):
not_root_dialog()
else:
self.notebook.set_current_page(self.CONSOLE_PAGE)
- self.queue.sync()
+ cmd = self.cfg.get(self.cfg.const["syncCmd_opt"])
+
+ if cmd != "emerge --sync":
+ cmd = cmd.split()
+ self.queue.sync(cmd)
+ else:
+ self.queue.sync()
@Window.watch_cursor
def cb_reload_clicked (self, action):