From: Victor Poluceno Date: Sat, 13 Jun 2009 23:09:38 +0000 (-0300) Subject: Put python binding api changes in python demos X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e11a07d51e03f51cca74701663566c4e857c4762;p=libchamplain Put python binding api changes in python demos --- diff --git a/bindings/python/demos/launcher-gtk.py b/bindings/python/demos/launcher-gtk.py index 6728eed..821acbe 100755 --- a/bindings/python/demos/launcher-gtk.py +++ b/bindings/python/demos/launcher-gtk.py @@ -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)