def __init__(self, addons_manager):
StatusBar.__init__(self, addons_manager.view)
self.addons_manager = addons_manager
self.cache = self.addons_manager.view.cache
self.applying = False
# TRANSLATORS: Free here means Gratis
self.label_price = Gtk.Label(_("Free"))
self.hbox.pack_start(self.label_price, False, False, 0)
self.hbuttonbox = Gtk.HButtonBox()
self.hbuttonbox.set_layout(Gtk.ButtonBoxStyle.END)
self.button_apply = Gtk.Button(_("Apply Changes"))
self.button_apply.connect("clicked", self._on_button_apply_clicked)
self.button_cancel = Gtk.Button(_("Cancel"))
self.button_cancel.connect("clicked", self.addons_manager.restore)
self.hbox.pack_end(self.button_apply, False, False, 0)
self.hbox.pack_end(self.button_cancel, False, False, 0)
#self.hbox.pack_start(self.hbuttonbox, False, False, 0)
评论列表
文章目录