priv->name = g_strdup (name);
}
+const gchar *
+champlain_map_source_get_license (ChamplainMapSource *map_source)
+{
+ ChamplainMapSourcePrivate *priv = GET_PRIVATE (map_source);
+ return priv->license;
+}
+
+void
+champlain_map_source_set_license (ChamplainMapSource *map_source,
+ const char *license)
+{
+ ChamplainMapSourcePrivate *priv = GET_PRIVATE (map_source);
+
+ priv->license = g_strdup (license);
+}
+
GType champlain_map_source_get_type (void);
-const gchar * champlain_map_source_get_name (ChamplainMapSource *map_source);
-
gint champlain_map_source_get_min_zoom_level (ChamplainMapSource *map_source);
gint champlain_map_source_get_max_zoom_level (ChamplainMapSource *map_source);
void champlain_map_source_set_name (ChamplainMapSource *map_source,
const char *name);
+const gchar * champlain_map_source_get_name (ChamplainMapSource *map_source);
+
+void champlain_map_source_set_license (ChamplainMapSource *map_source,
+ const char *license);
+const gchar * champlain_map_source_get_license (ChamplainMapSource *map_source);
+
#endif
if (priv->show_license)
{
priv->license_actor = clutter_label_new_with_text ( "sans 8",
- ""); //XXX: champlain_map_source_get_license (priv->map_source));
+ champlain_map_source_get_license (priv->map_source));
clutter_actor_set_opacity (priv->license_actor, 128);
clutter_actor_show (priv->license_actor);