--- computer-janitor-1.12.1.orig/computerjanitorapp/ui_gtk.py 2009-07-02 22:27:34.000000000 +0200
+++ computer-janitor-1.12.1/computerjanitorapp/ui_gtk.py 2009-07-02 23:05:56.000000000 +0200
@@ -165,21 +165,26 @@
if (isinstance(cruft, computerjanitor.PackageCruft) and
self.app.state.is_enabled(cruft.get_name()))]
- msg = _("Really clean up?")
+ msg = _("Are you sure you want to remove these packages?")
dialog = self.gtk.MessageDialog(parent=self.window_main,
type=self.gtk.MESSAGE_WARNING,
- buttons=self.gtk.BUTTONS_YES_NO,
+ buttons=self.gtk.BUTTONS_NONE,
message_format=msg)
if packages:
- msg = (_("You are removing %d .deb packages. "
- "This may break your system, if you need them. "
- "Do you want to continue?") %
+ msg = (_("You have chosen to remove %d software packages. "
+ "Removing packages that are still needed can cause errors.") %
len(packages))
else:
msg = _("Do you want to continue?")
dialog.format_secondary_markup(msg)
+ dialog.add_button(self.gtk.STOCK_CANCEL, self.gtk.RESPONSE_CLOSE)
+ remove = dialog.add_button(self.gtk.STOCK_OK,self.gtk.RESPONSE_YES)
+
+ #FIXME: is there a better way to set the title AND have a stock icon?
+ remove.get_children()[0].get_children()[0].get_children()[1].set_label(_("_Remove Packages"))
+
dialog.show_all()
response = dialog.run()
dialog.hide()