summaryrefslogtreecommitdiff
path: root/geneticone/gui
diff options
context:
space:
mode:
authornecoro <>2006-10-28 09:11:59 +0000
committernecoro <>2006-10-28 09:11:59 +0000
commit0e5d5476cf83af44597d20da1889f429e622c0ca (patch)
treee13f93b87bcbaf8cb2559d4c48206fc2b78dbd21 /geneticone/gui
parent58c9683aa2e9daf7e6d214b6c70564446a76cd49 (diff)
downloadportato-0e5d5476cf83af44597d20da1889f429e622c0ca.tar.gz
portato-0e5d5476cf83af44597d20da1889f429e622c0ca.tar.bz2
portato-0e5d5476cf83af44597d20da1889f429e622c0ca.zip
Made newuse working
Diffstat (limited to 'geneticone/gui')
-rw-r--r--geneticone/gui/gtk/windows.py4
-rw-r--r--geneticone/gui/gtk/wrapper.py2
-rw-r--r--geneticone/gui/gui_helper.py10
3 files changed, 8 insertions, 8 deletions
diff --git a/geneticone/gui/gtk/windows.py b/geneticone/gui/gtk/windows.py
index 7b9dd94..efc4cce 100644
--- a/geneticone/gui/gtk/windows.py
+++ b/geneticone/gui/gtk/windows.py
@@ -195,7 +195,7 @@ class PreferenceWindow (AbstractDialog):
self.deepCb = self.draw_cb(box, "--deep", "deep_opt")
# --newuse
- #self.newuseCb = self.draw_cb(box, "--newuse", "newuse_opt")
+ self.newuseCb = self.draw_cb(box, "--newuse", "newuse_opt")
pHolderLabel = gtk.Label("""<u>For the following options, you might use these placeholders:</u>
<b>$(cat)</b> = category
@@ -282,7 +282,7 @@ class PreferenceWindow (AbstractDialog):
self.cfg.set(self.cfg.const["testingFile_opt"], self.testFileEdit.get_text())
self.cfg.set(self.cfg.const["debug_opt"], str(self.debugCb.get_active()))
self.cfg.set(self.cfg.const["deep_opt"], str(self.deepCb.get_active()))
- #self.cfg.set(self.cfg.const["newuse_opt"], str(self.newuseCb.get_active()))
+ self.cfg.set(self.cfg.const["newuse_opt"], str(self.newuseCb.get_active()))
def cb_ok_clicked(self, button):
"""Saves, writes to config-file and closes the window."""
diff --git a/geneticone/gui/gtk/wrapper.py b/geneticone/gui/gtk/wrapper.py
index 4407816..6f3cdd8 100644
--- a/geneticone/gui/gtk/wrapper.py
+++ b/geneticone/gui/gtk/wrapper.py
@@ -36,7 +36,7 @@ class GtkTree (Tree):
return self.tree.iter_children(it)
def iter_has_children (self, it):
- return self.tree.iter_has_children(it)
+ return self.tree.iter_has_child(it)
def next_iter (self, it):
return self.tree.iter_next(it)
diff --git a/geneticone/gui/gui_helper.py b/geneticone/gui/gui_helper.py
index 8afc137..81e26ef 100644
--- a/geneticone/gui/gui_helper.py
+++ b/geneticone/gui/gui_helper.py
@@ -291,7 +291,7 @@ class EmergeQueue:
"""This updates the tree recursivly, or? Isn't it? Bjorn!
@param it: iterator where to append
- @type it: gtk.TreeIter
+ @type it: Iterator
@param cpv: The package to append.
@type cpv: string (cat/pkg-ver)
@param unmask: True if we are allowed to look for masked packages
@@ -434,7 +434,7 @@ class EmergeQueue:
@param packages: packages to emerge
@type packages: list
@param it: Iterators which point to these entries whose children will be removed after completion.
- @type it: list of gtk.TreeIter"""
+ @type it: Iterator[]"""
# open tty
(master, slave) = pty.openpty()
@@ -524,7 +524,7 @@ class EmergeQueue:
"""Convenience function which removes all children of an iterator and than the iterator itself.
@param it: The iter which to remove.
- @type it: gtk.TreeIter
+ @type it: Iterator
@param removeNewFlags: True if new flags should be removed; False otherwise. Default: True.
@type removeNewFlags: boolean"""
@@ -535,7 +535,7 @@ class EmergeQueue:
"""Removes all children of a given parent TreeIter recursivly.
@param parentIt: The iter from which to remove all children.
- @type parentIt: gtk.TreeIter
+ @type parentIt: Iterator
@param removeNewFlags: True if new flags should be removed; False otherwise. Default: True.
@type removeNewFlags: boolean"""
@@ -552,7 +552,7 @@ class EmergeQueue:
"""Removes a specific item in the tree. This does not remove the top-entries.
@param it: Iterator which points to the entry we are going to remove.
- @type it: gtk.TreeIter
+ @type it: Iterator
@param removeNewFlags: True if new flags should be removed; False otherwise. Default: True.
@type removeNewFlags: boolean"""