Exemplo n.º 1
0
    def on_refresh_button_clicked(self, widget):
        dialog = UpdateCacheDialog(widget.get_toplevel())
        res = dialog.run()

        proxy.set_list_state('normal')

        InfoDialog(_('You can install new applications through Add/Remove.'),
            title = _('The software information is up-to-date now')).launch()
        self.emit('update', 'installer', 'deep_update')
        self.emit('update', 'thirdsoft', 'update_thirdparty')
Exemplo n.º 2
0
    def destroy(self, widget, data = None):
        from common.policykit import proxy
        if proxy.get_proxy():
            state = proxy.get_list_state()
            if state == "expire":
                from thirdsoft import UpdateCacheDialog
                dialog = UpdateCacheDialog(self)
                res = dialog.run()

            proxy.exit()

        self.save_gui_state()
        gtk.main_quit()