Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArtActivity.py
diff options
context:
space:
mode:
authorAlan Jhonn Aguiar Schwyn <alanjas@hotmail.com>2013-11-24 20:57:12 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-11-24 20:57:12 (GMT)
commit93785a6ee16f7a0e75dee794b5e54e306d6e9e65 (patch)
tree43cb6080619bd0064b2752721aae56114afb07d4 /TurtleArtActivity.py
parent12f54026858bbe5f90ca25fef39b601311f71295 (diff)
Add empty trash alert to GNOME version
Diffstat (limited to 'TurtleArtActivity.py')
-rw-r--r--TurtleArtActivity.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py
index a33a611..f15650e 100644
--- a/TurtleArtActivity.py
+++ b/TurtleArtActivity.py
@@ -1634,17 +1634,17 @@ in order to use the plugin.'))
self._old_cursor = self.get_window().get_cursor()
self.get_window().set_cursor(gtk.gdk.Cursor(gtk.gdk.HAND1))
- def empty_trash_alert(self):
+ def empty_trash_alert(self, title, msg):
''' We get confirmation from the user before emptying the trash '''
alert = ConfirmationAlert()
- alert.props.title = _('empty trash')
- alert.props.msg = _('Do you really want to empty the trash?')
+ alert.props.title = title
+ alert.props.msg = msg
def _empty_trash_alert_response_cb(alert, response_id, self):
if response_id is gtk.RESPONSE_OK:
_logger.debug('emptying the trash')
self.remove_alert(alert)
- self.tw.empty_trash()
+ self.tw._empty_trash()
elif response_id is gtk.RESPONSE_CANCEL:
_logger.debug('cancel emptying the trash')
self.remove_alert(alert)