def unsubscribe_button_clicked(self, widget): selection = widgets.SelectionWrapper(self.top_view.get_selection(), self.store) # nothing selected if not selection.is_valid(): return # remove all markup, see rh bz#982286 subscription_text = ga_GObject.markup_escape_text(selection['subscription']) prompt = messageWindow.YesNoDialog(_("Are you sure you want to remove %s?") % subscription_text, self.content.get_toplevel()) prompt.connect('response', self._on_unsubscribe_prompt_response, selection)
def unsubscribe_button_clicked(self, widget): selection = widgets.SelectionWrapper(self.top_view.get_selection(), self.store) # nothing selected if not selection.is_valid(): return prompt = messageWindow.YesNoDialog( _("Are you sure you want to unsubscribe from %s?") % selection['subscription'], self.content.get_toplevel()) prompt.connect('response', self._on_unsubscribe_prompt_response, selection)
def _unregister_item_clicked(self, widget): log.info("Unregister button pressed, asking for confirmation.") prompt = messageWindow.YesNoDialog( _("<b>Are you sure you want to unregister?</b>"), self._get_window()) prompt.connect('response', self._on_unregister_prompt_response)