summaryrefslogtreecommitdiff
path: root/geneticone/gui/windows.py
diff options
context:
space:
mode:
authornecoro <>2006-09-29 19:12:30 +0000
committernecoro <>2006-09-29 19:12:30 +0000
commit196d7959b4a28cce680154277a764d8799238453 (patch)
tree98d9e818e2959cbc9e3d83ac04c007928c1a3afe /geneticone/gui/windows.py
parent3193cdc4a5f7db003b838d4b1785ea7da5ac679c (diff)
downloadportato-196d7959b4a28cce680154277a764d8799238453.tar.gz
portato-196d7959b4a28cce680154277a764d8799238453.tar.bz2
portato-196d7959b4a28cce680154277a764d8799238453.zip
Replaced "print" by "debug"
Diffstat (limited to '')
-rw-r--r--geneticone/gui/windows.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/geneticone/gui/windows.py b/geneticone/gui/windows.py
index 02613db..3add5da 100644
--- a/geneticone/gui/windows.py
+++ b/geneticone/gui/windows.py
@@ -23,6 +23,7 @@ import gobject
import geneticone
from geneticone import flags
+from geneticone.helper import *
from gui_helper import *
# for the terminal
@@ -229,8 +230,9 @@ class PackageWindow:
return True
def cb_cancel_clicked (self, button, data = None):
- if self.delOnClose: self.actual_package().remove_new_use_flags()
- if self.flagChanged:
+ if self.delOnClose:
+ self.actual_package().remove_new_use_flags()
+ elif self.flagChanged:
if self.queue:
self.queue.append(self.actual_package().get_cpv(), update = True)
self.window.destroy()
@@ -238,7 +240,7 @@ class PackageWindow:
def cb_emerge_clicked (self, button, data = None):
"""Adds the package to the EmergeQueue."""
- if not geneticone.am_i_root():
+ if not am_i_root():
errorMB = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, "You cannot (un)merge without being root.")
errorMB.run()
errorMB.destroy()
@@ -583,7 +585,7 @@ class MainWindow:
def cb_emerge_clicked (self, button, data = None):
"""Do emerge or unemerge."""
- print button
+ debug(button)
if button == self.emergeBtn or button == MENU_EMERGE:
if len(flags.newUseFlags) > 0:
hintMB = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_OK,
.sh?id=1edc1a7ecc74798484b690db0f88b9ac30120162&follow=1'>Check sneaky paths.Jason A. Donenfeld1-0/+15 2014-04-18Pruning: turns out rmdir does it for us with -p.Jason A. Donenfeld1-9/+3 2014-04-18Abstract remove empty directories into function.Jason A. Donenfeld1-14/+11 2014-04-18Remember to prune empty folders.Jason A. Donenfeld1-0/+8 2014-04-18init: allow deinitializationJason A. Donenfeld2-2/+18 2014-04-18bash-completion: filter dot files from resultsJason A. Donenfeld1-3/+8 2014-04-18reencrypt: remove option, do automaticallyJason A. Donenfeld5-39/+25 2014-04-18reencryption: add to completion filesJason A. Donenfeld3-1/+5 2014-04-18Specify variable gpg.Jason A. Donenfeld1-1/+1 2014-04-18style: don't escape new line on &&Jason A. Donenfeld1-2/+2 2014-04-18reencryption: remove temporary file on failureJason A. Donenfeld1-1/+1 2014-04-18reencryption: only reencrypt files when requiredJason A. Donenfeld2-16/+37 2014-04-17cp: typo as cvJason A. Donenfeld1-1/+1 2014-04-17bash: gpg_id is localJason A. Donenfeld1-0/+1 2014-04-17move/copy: always reencrypt passwords at destinationJason A. Donenfeld5-25/+56 2014-04-17makefile: allow platform files with gnu sedJason A. Donenfeld1-7/+8 2014-04-17mv: Add pass mv/rename supportJason A. Donenfeld5-3/+78 2014-04-17revelation2pass: add plain XML importJavali1-11/+15 2014-04-17platform: add cygwin supportJason A. Donenfeld2-1/+17