ClutterActor *stage;
ChamplainViewEmbedPrivate *priv = CHAMPLAIN_VIEW_EMBED_GET_PRIVATE (embed);
+ embed->priv = priv;
- priv->view = NULL;
priv->clutter_embed = gtk_clutter_embed_new ();
g_signal_connect (priv->clutter_embed,
priv->cursor_hand_open = gdk_cursor_new(GDK_HAND1);
priv->cursor_hand_closed = gdk_cursor_new(GDK_FLEUR);
+ priv->view = NULL;
+ champlain_view_embed_set_view (embed, champlain_view_new ());
// Setup stage
stage = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (priv->clutter_embed));
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
gtk_container_add (GTK_CONTAINER (embed), priv->clutter_embed);
- embed->priv = priv;
}
static void
vbox = gtk_vbox_new(FALSE, 10);
widget = champlain_view_embed_new ();
-
view = champlain_view_embed_get_view (CHAMPLAIN_VIEW_EMBED (widget));
+
g_object_set (G_OBJECT (view), "scroll-mode", CHAMPLAIN_SCROLL_MODE_KINETIC,
"zoom-level", 5, NULL);
layer = create_marker_layer (CHAMPLAIN_VIEW (view));