diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-08-11 21:19:03 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-08-11 21:19:03 +0000 |
commit | 6265eae9d57764df656b7b3f8d45a274d50a918f (patch) | |
tree | bbc9ac1fec6793fee308d43be772ecfd1ab5d0e5 /iw/datacombo.py | |
parent | 595dad48021cacb8a3c8616bd50ec9ce4a134566 (diff) | |
download | anaconda-6265eae9d57764df656b7b3f8d45a274d50a918f.tar.gz anaconda-6265eae9d57764df656b7b3f8d45a274d50a918f.tar.xz anaconda-6265eae9d57764df656b7b3f8d45a274d50a918f.zip |
goodbye to a lot more GtkOptionMenus
Diffstat (limited to 'iw/datacombo.py')
-rw-r--r-- | iw/datacombo.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/iw/datacombo.py b/iw/datacombo.py index 9b6bc50b8..81f0c3337 100644 --- a/iw/datacombo.py +++ b/iw/datacombo.py @@ -21,8 +21,11 @@ class DataComboBox(gtk.ComboBox): """A class derived from gtk.ComboBox to allow setting a user visible string and (not-visible) data string""" - def __init__(self): - self.store = gtk.TreeStore(gobject.TYPE_STRING, gobject.TYPE_STRING) + def __init__(self, store = None): + if store is None: + self.store = gtk.TreeStore(gobject.TYPE_STRING, gobject.TYPE_STRING) + else: + self.store = store gtk.ComboBox.__init__(self, self.store) cell = gtk.CellRendererText() |