src/updatemanagernotifier.py
changeset 2013 7e157252546e
parent 1948 2b0682839132
child 2041 ee746d3c19be
--- a/src/updatemanagernotifier.py	Mon Aug 09 10:38:08 2010 +0100
+++ b/src/updatemanagernotifier.py	Mon Aug 09 11:32:06 2010 +0100
@@ -37,7 +37,6 @@
         gobject.threads_init()
         import gconf
         import gtk
-        import gtk.glade
         import pygtk
         pygtk.require("2.0")
 except ImportError:
@@ -98,11 +97,10 @@
                 except KeyError:
                         self.application_dir = "/"
                 misc.setlocale(locale.LC_ALL, "")
-                for module in (gettext, gtk.glade):
-                        module.bindtextdomain("pkg", os.path.join(
-                            self.application_dir,
-                            "usr/share/locale"))
-                        module.textdomain("pkg")
+                gettext.bindtextdomain("pkg", os.path.join(
+                    self.application_dir,
+                    "usr/share/locale"))
+                gettext.textdomain("pkg")
                 self.pr = None
                 self.last_check_filename = None
                 self.time_until_next_check = 0