Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mmm_modules/i18n.py
diff options
context:
space:
mode:
Diffstat (limited to 'mmm_modules/i18n.py')
-rw-r--r--mmm_modules/i18n.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/mmm_modules/i18n.py b/mmm_modules/i18n.py
index 34b61e4..dc0e557 100644
--- a/mmm_modules/i18n.py
+++ b/mmm_modules/i18n.py
@@ -25,7 +25,7 @@ import os
import gettext
import locale
-import gtk, gobject
+from gi.repository import Gtk, GObject
_ = lambda x: x
@@ -111,13 +111,13 @@ def list_available_translations (domain):
pass
return rv
-class LanguageComboBox (gtk.ComboBox):
+class LanguageComboBox (Gtk.ComboBox):
def __init__ (self, domain):
- liststore = gtk.ListStore(gobject.TYPE_STRING)
- gtk.ComboBox.__init__(self, liststore)
+ liststore = Gtk.ListStore(GObject.TYPE_STRING)
+ Gtk.ComboBox.__init__(self, liststore)
- self.cell = gtk.CellRendererText()
- self.pack_start(self.cell, True)
+ self.cell = Gtk.CellRendererText()
+ self.pack_start(self.cell, True, True, 0)
self.add_attribute(self.cell, 'text', 0)
self.translations = list_available_translations(domain)