#include "champlain-zoom-level.h"
#include <clutter/clutter.h>
-#include <clutter-cairo/clutter-cairo.h>
#include <glib.h>
#include <glib-object.h>
#include <math.h>
if (polygon->priv->visible == FALSE)
return;
- cr = clutter_cairo_create (CLUTTER_CAIRO (polygon->priv->actor));
+ cr = clutter_cairo_texture_create (CLUTTER_CAIRO_TEXTURE (polygon->priv->actor));
/* Clear the drawing area */
cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
y = champlain_map_source_get_y (priv->map_source, priv->zoom_level,
point->lat);
- x -= priv->viewport_size.x + priv->anchor.x;
- y -= priv->viewport_size.y + priv->anchor.y;
+ x -= priv->viewport_size.x;
+ y -= priv->viewport_size.y;
cairo_line_to (cr, x, y);
list = list->next;
polygon->priv->actor);
}
- polygon->priv->actor = g_object_ref (clutter_cairo_new (
+ polygon->priv->actor = g_object_ref (clutter_cairo_texture_new (
view->priv->viewport_size.width,
view->priv->viewport_size.height));
g_object_set (G_OBJECT (polygon->priv->actor), "visible",
return;
}
- polygon->priv->actor = g_object_ref (clutter_cairo_new (
+ polygon->priv->actor = g_object_ref (clutter_cairo_texture_new (
view->priv->viewport_size.width,
view->priv->viewport_size.height));
g_object_set (G_OBJECT (polygon->priv->actor), "visible",
clutter_container_add_actor (CLUTTER_CONTAINER (button), button_bg);
clutter_actor_set_opacity (button_bg, 0xcc);
- button_text = clutter_label_new_full ("Sans 10", text, &black);
+ button_text = clutter_text_new_full ("Sans 10", text, &black);
clutter_container_add_actor (CLUTTER_CONTAINER (button), button_text);
clutter_actor_get_size (button_text, &width, &height);