aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpapoteur-mga <yves.brungard_git@gadz.org>2014-07-06 10:35:40 +0200
committerpapoteur-mga <yves.brungard_git@gadz.org>2014-07-06 10:35:40 +0200
commit978827abf343bc8329f2fcbd0e2e0dbe3717869f (patch)
tree0b4885ec2f49718ae604360aef045c7e088ee0a2 /lib
parente1d60806525fd4ec7c317060801593a01cbe5228 (diff)
downloadisodumper-978827abf343bc8329f2fcbd0e2e0dbe3717869f.tar
isodumper-978827abf343bc8329f2fcbd0e2e0dbe3717869f.tar.gz
isodumper-978827abf343bc8329f2fcbd0e2e0dbe3717869f.tar.bz2
isodumper-978827abf343bc8329f2fcbd0e2e0dbe3717869f.tar.xz
isodumper-978827abf343bc8329f2fcbd0e2e0dbe3717869f.zip
Supressed the closing cross in the main window
graying "format" option when writing Enabling expander when formating.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/isodumper.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index edffd71..61e8b6f 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -73,7 +73,6 @@ class IsoDumper:
# get glade tree
self.gladefile = "/usr/share/isodumper/isodumper.glade"
- #self.gladefile = "/documents/isodumper-dev/share/isodumper/isodumper.glade"
self.wTree = gtk.glade.XML(self.gladefile)
# get globally needed widgets
@@ -127,7 +126,6 @@ class IsoDumper:
"on_format_cancel_clicked" : self.format_cancel,
"on_format_go_clicked" : self.do_format,
"on_write_button_clicked" : self.do_write,
- "on_main_dialog_delete_event" : gtk.main_quit,
}
self.wTree.signal_autoconnect(dict)
@@ -201,6 +199,8 @@ class IsoDumper:
def do_format(self, widget) :
target = self.dev.split('(')[1].split(')')[0]
dialog = self.wTree.get_widget("confirm_dialog")
+ expander = self.wTree.get_widget("detail_expander")
+ expander.set_sensitive(True)
resp = dialog.run()
dev_name=self.wTree.get_widget("format_name").get_text()
if resp:
@@ -280,6 +280,8 @@ class IsoDumper:
write_button.set_sensitive(False)
combo = self.wTree.get_widget("device_combobox")
combo.set_sensitive(False)
+ format_button=self.wTree.get_widget("format_button")
+ format_button.set_sensitive(False)
source = self.chooser.get_filename()
target = self.dev.split('(')[1].split(')')[0]
dialog = self.wTree.get_widget("confirm_dialog")
@@ -425,7 +427,7 @@ class IsoDumper:
def confirm_close(self, widget):
if self.operation==False: # no writing , backup nor format running
self.close('dummy')
- else: # writing , backup nor format running
+ else: # writing , backup or format running
dialog=self.wTree.get_widget("Quit_warning")
resp = dialog.run()
if resp==-5 : # GTK_RESPONSE_OK