mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 19:40:21 +01:00
* Added confirmation dialog for deleting elements.
This commit is contained in:
1414
glade/config.glade
1414
glade/config.glade
File diff suppressed because it is too large
Load Diff
@@ -25,6 +25,7 @@ class ConfigController(Controller):
|
|||||||
self.view['ch_xls'].set_active(self.model.confd['exportxls'])
|
self.view['ch_xls'].set_active(self.model.confd['exportxls'])
|
||||||
self.view['ch_quit'].set_active(self.model.confd['confirmquit'])
|
self.view['ch_quit'].set_active(self.model.confd['confirmquit'])
|
||||||
self.view['ch_wrnmount'].set_active(self.model.confd['mntwarn'])
|
self.view['ch_wrnmount'].set_active(self.model.confd['mntwarn'])
|
||||||
|
self.view['ch_wrndel'].set_active(self.model.confd['delwarn'])
|
||||||
self.view['ch_warnnew'].set_active(self.model.confd['confirmabandon'])
|
self.view['ch_warnnew'].set_active(self.model.confd['confirmabandon'])
|
||||||
self.view['ch_thumb'].set_active(self.model.confd['pil'])
|
self.view['ch_thumb'].set_active(self.model.confd['pil'])
|
||||||
self.view['ch_exif'].set_active(self.model.confd['exif'])
|
self.view['ch_exif'].set_active(self.model.confd['exif'])
|
||||||
@@ -66,6 +67,7 @@ class ConfigController(Controller):
|
|||||||
self.model.confd['exportxls'] = self.view['ch_xls'].get_active()
|
self.model.confd['exportxls'] = self.view['ch_xls'].get_active()
|
||||||
self.model.confd['confirmquit'] = self.view['ch_quit'].get_active()
|
self.model.confd['confirmquit'] = self.view['ch_quit'].get_active()
|
||||||
self.model.confd['mntwarn'] = self.view['ch_wrnmount'].get_active()
|
self.model.confd['mntwarn'] = self.view['ch_wrnmount'].get_active()
|
||||||
|
self.model.confd['delwarn'] = self.view['ch_wrndel'].get_active()
|
||||||
self.model.confd['confirmabandon'] = self.view['ch_warnnew'].get_active()
|
self.model.confd['confirmabandon'] = self.view['ch_warnnew'].get_active()
|
||||||
self.model.confd['pil'] = self.view['ch_thumb'].get_active()
|
self.model.confd['pil'] = self.view['ch_thumb'].get_active()
|
||||||
self.model.confd['exif'] = self.view['ch_exif'].get_active()
|
self.model.confd['exif'] = self.view['ch_exif'].get_active()
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ class ConfigModel(Model):
|
|||||||
'confirmabandon':True,
|
'confirmabandon':True,
|
||||||
'showtoolbar':True,
|
'showtoolbar':True,
|
||||||
'showstatusbar':True,
|
'showstatusbar':True,
|
||||||
|
'delwarn':True,
|
||||||
}
|
}
|
||||||
|
|
||||||
dictconf = {
|
dictconf = {
|
||||||
@@ -70,6 +71,7 @@ class ConfigModel(Model):
|
|||||||
"image support":"pil",
|
"image support":"pil",
|
||||||
'confirm quit':'confirmquit',
|
'confirm quit':'confirmquit',
|
||||||
'warn mount/umount errors':'mntwarn',
|
'warn mount/umount errors':'mntwarn',
|
||||||
|
'warn on delete':'delwarn',
|
||||||
'confirm abandon current catalog':'confirmabandon',
|
'confirm abandon current catalog':'confirmabandon',
|
||||||
'show toolbar':'showtoolbar',
|
'show toolbar':'showtoolbar',
|
||||||
'show statusbar and progress bar':'showstatusbar',
|
'show statusbar and progress bar':'showstatusbar',
|
||||||
@@ -85,6 +87,7 @@ class ConfigModel(Model):
|
|||||||
'exif',
|
'exif',
|
||||||
'confirmquit',
|
'confirmquit',
|
||||||
'mntwarn',
|
'mntwarn',
|
||||||
|
'delwarn',
|
||||||
'confirmabandon',
|
'confirmabandon',
|
||||||
'showtoolbar',
|
'showtoolbar',
|
||||||
'showstatusbar',
|
'showstatusbar',
|
||||||
|
|||||||
Reference in New Issue
Block a user