コード例 #1
0
 def get_actions(self):
     # Return available actions
     actions = []
     action = InfoReportAction(label=_("Upgrade to %s") % self.rel_target, callback=self.callback)
     action.set_style(Gtk.STYLE_CLASS_SUGGESTED_ACTION)
     actions.append(action)
     return actions
コード例 #2
0
 def get_actions(self):
     # Return available actions
     actions = []
     action = InfoReportAction(label="Run tool", callback=self.callback)
     action.set_style(Gtk.STYLE_CLASS_SUGGESTED_ACTION)
     actions.append(action)
     return actions
コード例 #3
0
 def get_actions(self):
     # Return available actions
     actions = []
     action = InfoReportAction(label=_("Restore ownership to yourself"),
                               callback=self.callback)
     action.set_style(Gtk.STYLE_CLASS_SUGGESTED_ACTION)
     actions.append(action)
     return actions
コード例 #4
0
 def get_actions(self):
     # Return available actions
     actions = []
     action = InfoReportAction(label=_("Launch the Driver Manager"),
                               callback=self.callback)
     action.set_style(Gtk.STYLE_CLASS_SUGGESTED_ACTION)
     actions.append(action)
     return actions
コード例 #5
0
 def get_actions(self):
     # Return available actions
     actions = []
     action = InfoReportAction(label=_("Remove the conflicting packages."),
                               callback=self.callback)
     action.set_style(Gtk.STYLE_CLASS_SUGGESTED_ACTION)
     actions.append(action)
     return actions
コード例 #6
0
 def get_actions(self):
     # Return available actions
     actions = []
     action = InfoReportAction(label=_("Install the Multimedia Codecs"),
                               callback=self.callback)
     action.set_style(Gtk.STYLE_CLASS_SUGGESTED_ACTION)
     actions.append(action)
     return actions
コード例 #7
0
 def get_actions(self):
     # Return available actions
     actions = []
     action = InfoReportAction(label=_("Launch Timeshift"),
                               callback=self.launch_timeshift)
     action.set_style(Gtk.STYLE_CLASS_SUGGESTED_ACTION)
     actions.append(action)
     return actions
コード例 #8
0
 def get_actions(self):
     # Return available actions
     actions = []
     if "cinnamon" in self.de or "xfce" in self.de:
         action = InfoReportAction(label=_("Add the XApp Status applet to the panel"), callback=self.callback)
         action.set_style(Gtk.STYLE_CLASS_SUGGESTED_ACTION)
         actions.append(action)
     return actions