PYDEFS=`pkg-config --variable=defsdir pygtk-2.0`
+PYCLUTTERDEFS=`pkg-config --variable=defsdir pyclutter-1.0`
AM_CPPFLAGS = \
-I. \
--prefix champlain \
--register $(PYDEFS)/gdk-types.defs \
--register $(PYDEFS)/gtk-types.defs \
+ --register $(PYCLUTTERDEFS)/cluttergtk-types.defs \
--register $(top_srcdir)/bindings/python/champlain/pychamplain.defs \
--override pychamplaingtk.override \
pychamplaingtk.defs > $@
#define __PYCHAMPLAIN_H__
void champlain_register_classes (PyObject *d);
-void champlain_add_constants(PyObject *module, const gchar *strip_prefix);
+void champlain_add_constants (PyObject *module, const gchar *strip_prefix);
#endif
self.window.connect("destroy", gtk.main_quit)
vbox = gtk.VBox(False, 12)
-
+
self.view = champlain.View()
self.view.set_property("scroll-mode", champlain.SCROLL_MODE_KINETIC)
-
+
self.layer = create_marker_layer(self.view)
self.view.add_layer(self.layer)
self.window.show_all()
self.view.center_on(45.466, -73.75)
-
+
def zoom_in(self, widget):
self.view.zoom_in()
def zoom_out(self, widget):
self.view.zoom_out()
-
+
def toggle_layer(self, widget):
if widget.get_active():
self.layer.animate_in_all_markers()
else:
self.layer.animate_out_all_markers()
-
+
def zoom_changed(self, widget):
self.view.set_property("zoom-level", self.spinbutton.get_value_as_int())