/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* viking
- * Copyright (C) Guilhem Bonnefille 2009 <guilhem.bonnefille@gmail.com>
+ * Copyright (C) 2009, Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
*
* viking is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+
+ /**
+ * SECTION:vikmaptype
+ * @short_description: the adapter class to support old map source declaration
+ *
+ * The #VikMapType class handles is an adapter to allow to reuse
+ * old map source (see #VikMapsLayer_MapType).
+ */
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
VikMapTypePrivate *priv = VIK_MAP_TYPE_PRIVATE(self);
g_return_if_fail (self != NULL);
- return (priv->map_type.mapcoord_to_center_coord)(src, dest);
+ (priv->map_type.mapcoord_to_center_coord)(src, dest);
}
static int
map_type_download_handle_cleanup (VikMapSource * self, void * handle)
{
VikMapTypePrivate *priv = VIK_MAP_TYPE_PRIVATE(self);
- g_return_val_if_fail (priv != NULL, 0);
+ g_return_if_fail ( priv != NULL );
- return (priv->map_type.download_handle_cleanup)(handle);
+ (priv->map_type.download_handle_cleanup)(handle);
}