+ GSList *matches = NULL;
+
+ parse_dove (get_group_of_towers_cb,
+ &matches,
+ CONFIG_RECENT_GROUP);
+
+ show_towers_from_list (matches);
+}
+
+/**
+ * Displays a web page.
+ * (Perhaps this should be merged with show_browser().)
+ *
+ * \param url The URL.
+ */
+static void
+show_web_page (GtkButton *dummy,
+ gpointer url)
+{
+ show_browser (url);
+}
+
+/**
+ * Shows the credits.
+ *
+ * \param source If non-null, we were called from a button press,
+ * so always show the credits. If null, we were called
+ * automatically on startup, so show the credits if
+ * they haven't already been seen.
+ */
+static void
+show_credits (GtkButton *source,
+ gpointer dummy)
+{
+ gboolean from_button = (source!=NULL);
+ GtkWidget *dialog, *label, *button;
+
+ if (!from_button &&
+ g_key_file_get_boolean (config,
+ CONFIG_GENERAL_GROUP,
+ CONFIG_SEEN_CREDITS_KEY,
+ NULL))
+ {
+ return;
+ }
+
+
+ dialog = gtk_dialog_new_with_buttons ("Credits",
+ GTK_WINDOW (window),
+ GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
+ NULL
+ );
+
+ button = hildon_button_new_with_text (HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_FINGER_HEIGHT,
+ HILDON_BUTTON_ARRANGEMENT_VERTICAL,
+ "View the GNU General Public Licence",
+ "This program is provided under the GPL, with no warranty.");
+ g_signal_connect (button, "clicked", G_CALLBACK (show_web_page),
+ "www.gnu.org/copyleft/gpl.html");
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
+ button,
+ TRUE, TRUE, 0);
+
+ button = hildon_button_new_with_text (HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_FINGER_HEIGHT,
+ HILDON_BUTTON_ARRANGEMENT_VERTICAL,
+ "View Dove's Guide for Church Bell Ringers",
+ "The source of this program's data.");
+ g_signal_connect (button, "clicked", G_CALLBACK (show_web_page),
+ "http://dove.cccbr.org.uk");
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
+ button,
+ TRUE, TRUE, 0);
+
+ button = hildon_button_new_with_text (HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_FINGER_HEIGHT,
+ HILDON_BUTTON_ARRANGEMENT_VERTICAL,
+ "View belfry photograph",
+ "Image \xc2\xa9 Amanda Slater, cc-by-sa.");
+ g_signal_connect (button, "clicked", G_CALLBACK (show_web_page),
+ "http://www.flickr.com/photos/pikerslanefarm/3398769335/");
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
+ button,
+ TRUE, TRUE, 0);
+
+ gtk_widget_show_all (GTK_WIDGET (dialog));