[libchamplain] Put python binding api changes in python demos
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [libchamplain] Put python binding api changes in python demos
- Date: Sun, 14 Jun 2009 11:42:55 -0400 (EDT)
commit e11a07d51e03f51cca74701663566c4e857c4762
Author: Victor Poluceno <victorpoluceno gmail com>
Date: Sat Jun 13 20:09:38 2009 -0300
Put python binding api changes in python demos
bindings/python/demos/launcher-gtk.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]