]> err.no Git - libchamplain/commitdiff
Put python binding api changes in python demos
authorVictor Poluceno <victorpoluceno@gmail.com>
Sat, 13 Jun 2009 23:09:38 +0000 (20:09 -0300)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 14 Jun 2009 15:41:38 +0000 (11:41 -0400)
bindings/python/demos/launcher-gtk.py

index 6728eed45bf367f4c369239c0c73b06406294b1e..821acbe9c590eae4cf0b80f1ff0614109b830a76 100755 (executable)
@@ -42,9 +42,9 @@ class LauncherGTK:
                bbox.add(button)
 
                combo = gtk.combo_box_new_text()
-               self.map_source_factory = champlain.map_source_factory_get_default()
+               self.map_source_factory = champlain.map_source_factory_dup_default()
                liststore = gtk.ListStore(str, str)
-               for source in self.map_source_factory.get_list():
+               for source in self.map_source_factory.dup_list():
                        liststore.append([source["id"], source["name"]])
                        combo.append_text(source["name"])
                combo.set_model(liststore)