g_slist_free (list);
}
+/**
+ * Displays a list of towers for the user to choose from.
+ * When one is chosen, we go to the display page for that tower.
+ * If there are none, this will tell the user there were none.
+ * If there is only one, we go straight to its display page.
+ *
+ * \param list a GSList of FoundTower objects.
+ * \param list_name the title for the dialogue.
+ */
static void
-show_towers_from_list (GSList *list)
+show_towers_from_list (GSList *list,
+ gchar *list_name)
{
GtkWidget *dialog;
GtkWidget *selector;
dialog = hildon_picker_dialog_new (GTK_WINDOW (window));
selector = hildon_touch_selector_new_text ();
+ gtk_window_set_title (GTK_WINDOW (dialog), list_name);
for (cursor=list; cursor; cursor=cursor->next)
{
#define COUNTRIES_WITH_MANY "Countries with many belltowers"
#define COUNTRIES_WITH_FEW "Countries with few belltowers"
+/**
+ * Displays a list of areas of the world with many (or few)
+ * belltowers. If you ask for the areas with many, it include
+ * a link to the areas with few.
+ *
+ * \param countries_with_many True to list countries with many;
+ * false to list countries with few.
+ */
static void
towers_by_area_with_many (gboolean countries_with_many)
{