From 06b7e698a1bc0d8e5ef947a075848a9c8516cb53 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 29 Nov 2005 18:23:42 +0100 Subject: * use SimpleGladeApp in UpdateManager now --- SoftwareProperties/SoftwareProperties.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'SoftwareProperties') diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index b5aa944f..1752f79f 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -29,6 +29,7 @@ import apt_pkg import gobject import shutil import gettext +from gettext import gettext as _ import os #sys.path.append("@prefix/share/update-manager/python") @@ -54,7 +55,6 @@ CONF_MAP = { class SoftwareProperties(SimpleGladeApp): def __init__(self, datadir, options): - _ = gettext.gettext self.datadir = datadir SimpleGladeApp.__init__(self, datadir+"glade/SoftwareProperties.glade", @@ -66,10 +66,6 @@ class SoftwareProperties(SimpleGladeApp): self.gnome_program = gnome.init("Software Properties", "0.41") self.gconfclient = gconf.client_get_default() - # Get some configuration options - self.show_disabled = self.gconfclient.get_bool("/apps/gnome-software-" \ - "properties/show_disabled") - self.window_main.hide() # If externally called, reparent to external application. -- cgit v1.2.3