diff options
| author | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-04-23 21:06:07 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-04-23 21:06:07 +0200 |
| commit | 7d692f2512f73e7cf8f439350ff09e283746635e (patch) | |
| tree | 18e647466a9d2d3e768e4539b58c0bad06cc7f21 | |
| parent | c694583903af0139d3e73ddf2eee34eb5a506d80 (diff) | |
| download | python-apt-7d692f2512f73e7cf8f439350ff09e283746635e.tar.gz | |
* Remove the oboslete Preferences method in UpdateManager, since it only
adds strings for the translators
| -rw-r--r-- | UpdateManager/UpdateManager.py | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index b4090589..0958564f 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -581,51 +581,6 @@ class UpdateManager(SimpleGladeApp): if x > 0 and y > 0: self.window_main.resize(x,y) - def on_button_preferences_clicked(self, widget): - """ start gnome-software preferences """ - # args: "-n" means we take care of the reloading of the - # package list ourself - #apt_pkg.PkgSystemUnLock() - #args = ['/usr/bin/gnome-software-properties', '-n'] - #child = subprocess.Popen(args) - #self.window_main.set_sensitive(False) - #res = None - #while res == None: - # res = child.poll() - # time.sleep(0.05) - ## while gtk.events_pending(): - # gtk.main_iteration() - # repository information changed, call "reload" - #try: - # apt_pkg.PkgSystemLock() - #except SystemError: - # print "Error geting the cache" - # apt_pkg.PkgSystemLock() - # if res > 0: - # self.on_button_reload_clicked(None) - # self.window_main.set_sensitive(True) - self.window_main.set_sensitive(False) - from SoftwareProperties import SoftwareProperties - prop = SoftwareProperties.SoftwareProperties(self.datadir, None) - prop.window_main.set_transient_for(self.window_main) - prop.run() - prop.window_main.hide() - if prop.modified: - primary = "<span weight=\"bold\" size=\"larger\">%s</span>" % \ - _("Repositories changed") - secondary = _("You need to reload the package list from the servers " - "for your changes to take effect. Do you want to do " - "this now?") - dialog = gtk.MessageDialog(self.window_main, 0, - gtk.MESSAGE_INFO,gtk.BUTTONS_YES_NO,"") - dialog.set_markup(primary); - dialog.format_secondary_text(secondary); - res = dialog.run() - dialog.destroy() - if res == gtk.RESPONSE_YES: - self.on_button_reload_clicked(None) - self.window_main.set_sensitive(True) - def fillstore(self): # use the watch cursor self.window_main.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) |
