From: Pierre-Luc Beaudoin Date: Fri, 12 Jun 2009 02:13:33 +0000 (-0400) Subject: get_list is now champlain_map_source_factory_dup_list X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d37cf4bb9cec1c284e081e463355fad88c255b42;p=libchamplain get_list is now champlain_map_source_factory_dup_list As the list is duplicated --- diff --git a/champlain/champlain-map-source-factory.c b/champlain/champlain-map-source-factory.c index 6c58383..ce10ec4 100644 --- a/champlain/champlain-map-source-factory.c +++ b/champlain/champlain-map-source-factory.c @@ -28,7 +28,7 @@ * will return a ready to use #ChamplainMapSource. * * To get the list of registered map sources, use - * #champlain_map_source_factory_get_list. + * #champlain_map_source_factory_dup_list. * */ #include "config.h" @@ -254,7 +254,7 @@ champlain_map_source_factory_dup_default (void) } /** - * champlain_map_source_factory_get_list: + * champlain_map_source_factory_dup_list: * * Returns the list of registered map sources, the items should not be freed, * the list should be freed with #g_slist_free. @@ -262,7 +262,7 @@ champlain_map_source_factory_dup_default (void) * Since: 0.4 */ GSList * -champlain_map_source_factory_get_list (ChamplainMapSourceFactory *factory) +champlain_map_source_factory_dup_list (ChamplainMapSourceFactory *factory) { return g_slist_copy (factory->priv->registered_sources); } diff --git a/champlain/champlain-map-source-factory.h b/champlain/champlain-map-source-factory.h index c2c441e..ff2546c 100644 --- a/champlain/champlain-map-source-factory.h +++ b/champlain/champlain-map-source-factory.h @@ -57,7 +57,7 @@ GType champlain_map_source_factory_get_type (void); ChamplainMapSourceFactory * champlain_map_source_factory_dup_default (void); -GSList * champlain_map_source_factory_get_list (ChamplainMapSourceFactory *factory); +GSList * champlain_map_source_factory_dup_list (ChamplainMapSourceFactory *factory); ChamplainMapSource * champlain_map_source_factory_create (ChamplainMapSourceFactory *factory, const gchar *id); diff --git a/demos/launcher-gtk.c b/demos/launcher-gtk.c index 420b9b1..b0cc591 100644 --- a/demos/launcher-gtk.c +++ b/demos/launcher-gtk.c @@ -150,7 +150,7 @@ build_combo_box (GtkComboBox *box) -1); factory = champlain_map_source_factory_dup_default (); - sources = champlain_map_source_factory_get_list (factory); + sources = champlain_map_source_factory_dup_list (factory); iter = sources; while (iter != NULL) diff --git a/docs/reference/libchamplain-sections.txt b/docs/reference/libchamplain-sections.txt index 85507a7..0feeae7 100644 --- a/docs/reference/libchamplain-sections.txt +++ b/docs/reference/libchamplain-sections.txt @@ -364,7 +364,7 @@ ChamplainMapSourceFactory ChamplainMapSourceDesc ChamplainMapSourceConstructor champlain_map_source_factory_dup_default -champlain_map_source_factory_get_list +champlain_map_source_factory_dup_list champlain_map_source_factory_create champlain_map_source_factory_register