PROP_ETAG
};
-typedef struct _ChamplainTilePrivate ChamplainTilePrivate;
-
struct _ChamplainTilePrivate {
gint x;
gint y;
static void
champlain_tile_dispose (GObject *object)
{
- ChamplainTilePrivate *priv = GET_PRIVATE (object);
+ ChamplainTilePrivate *priv = CHAMPLAIN_TILE (object)->priv;
if (priv->actor != NULL)
{
static void
champlain_tile_finalize (GObject *object)
{
- ChamplainTilePrivate *priv = GET_PRIVATE (object);
+ ChamplainTilePrivate *priv = CHAMPLAIN_TILE (object)->priv;
g_free (priv->uri);
g_free (priv->filename);
champlain_tile_init (ChamplainTile *self)
{
ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ self->priv = priv;
priv->state = CHAMPLAIN_STATE_INIT;
priv->x = 0;
{
g_return_val_if_fail(CHAMPLAIN_TILE(self), 0);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
return priv->x;
}
{
g_return_val_if_fail(CHAMPLAIN_TILE(self), 0);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
return priv->y;
}
{
g_return_val_if_fail(CHAMPLAIN_TILE(self), 0);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
return priv->zoom_level;
}
{
g_return_val_if_fail(CHAMPLAIN_TILE(self), 0);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
return priv->size;
}
{
g_return_val_if_fail(CHAMPLAIN_TILE(self), CHAMPLAIN_STATE_NONE);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
return priv->state;
}
{
g_return_val_if_fail(CHAMPLAIN_TILE(self), NULL);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
return priv->uri;
}
{
g_return_val_if_fail(CHAMPLAIN_TILE(self), NULL);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
return priv->filename;
}
{
g_return_val_if_fail(CHAMPLAIN_TILE(self), NULL);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
-
- return priv->actor;
+ return self->priv->actor;
}
/**
{
g_return_if_fail(CHAMPLAIN_TILE(self));
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
priv->x = x;
{
g_return_if_fail(CHAMPLAIN_TILE(self));
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
priv->y = y;
if (priv->actor != NULL)
{
g_return_if_fail(CHAMPLAIN_TILE(self));
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
priv->zoom_level = zoom_level;
g_object_notify (G_OBJECT (self), "zoom-level");
{
g_return_if_fail(CHAMPLAIN_TILE(self));
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
priv->size = size;
{
g_return_if_fail(CHAMPLAIN_TILE(self));
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
priv->state = state;
g_object_notify (G_OBJECT (self), "state");
g_return_if_fail(CHAMPLAIN_TILE(self));
g_return_if_fail(uri != NULL);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
g_free (priv->uri);
priv->uri = g_strdup (uri);
g_return_if_fail(CHAMPLAIN_TILE(self));
g_return_if_fail(filename != NULL);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
g_free (priv->filename);
priv->filename = g_strdup (filename);
{
g_return_val_if_fail (CHAMPLAIN_TILE(self), NULL);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
return priv->modified_time;
}
g_return_if_fail (CHAMPLAIN_TILE(self));
g_return_if_fail (time != NULL);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
g_free (priv->modified_time);
priv->modified_time = g_memdup(time_, sizeof (GTimeVal));
champlain_tile_get_modified_time_string (ChamplainTile *self)
{
g_return_val_if_fail(CHAMPLAIN_TILE(self), NULL);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
if (priv->modified_time == NULL)
return NULL;
champlain_tile_get_etag (ChamplainTile *self)
{
g_return_val_if_fail(CHAMPLAIN_TILE(self), "");
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
- return priv->etag;
+ return self->priv->etag;
}
/**
{
g_return_if_fail(CHAMPLAIN_TILE(self));
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
g_free (priv->etag);
priv->etag = g_strdup (etag);
gpointer data)
{
AnimationContext* ctx = (AnimationContext*) data;
- ChamplainTilePrivate *priv = GET_PRIVATE (ctx->tile);
+ ChamplainTilePrivate *priv = ctx->tile->priv;
if (ctx->old_actor != NULL)
{
g_return_if_fail(CHAMPLAIN_TILE(self));
g_return_if_fail(actor != NULL);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
+ ChamplainTilePrivate *priv = self->priv;
ClutterActor *old_actor = NULL;
if (priv->content_actor != NULL)
{
g_return_val_if_fail(CHAMPLAIN_TILE(self), NULL);
- ChamplainTilePrivate *priv = GET_PRIVATE (self);
-
- return priv->content_actor;
+ return self->priv->content_actor;
}