Exemple #1
0
 def activate(self):
     kill_name = str(self.process_id) if isinstance(
         self.process_id, int) else self.process_name
     self.plugin.confirm_screen = g15theme.ConfirmationScreen(
         self.get_screen(),
         _("Kill Process"),
         _("Are you sure you want to kill\n%s") % kill_name,
         g15icontools.get_icon_path("utilities-system-monitor"),
         self.plugin._kill_process,
         self.process_id,
         cancel_callback=self.plugin._cancel_kill)
Exemple #2
0
 def activate(self):
     g15theme.ConfirmationScreen(
         self.get_screen(), _("Ban Buddy"),
         _("Are you sure you want to ban\n%s from the server") %
         self.buddy.nickname, self.backend.get_icon(), self._confirm, None)