balsa r7996 - in trunk: . src
- From: PeterB svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r7996 - in trunk: . src
- Date: Tue, 18 Nov 2008 02:39:49 +0000 (UTC)
Author: PeterB
Date: Tue Nov 18 02:39:48 2008
New Revision: 7996
URL: http://svn.gnome.org/viewvc/balsa?rev=7996&view=rev
Log:
make "about" website clickable
Modified:
trunk/ChangeLog
trunk/src/main-window.c
Modified: trunk/src/main-window.c
==============================================================================
--- trunk/src/main-window.c (original)
+++ trunk/src/main-window.c Tue Nov 18 02:39:48 2008
@@ -2545,6 +2545,27 @@
/*
* show the about box for Balsa
*/
+#if GTK_CHECK_VERSION(2, 6, 0)
+static void
+bw_show_about_box_url_hook(GtkAboutDialog * about, const gchar * link,
+ gpointer data)
+{
+ GError *err = NULL;
+
+#if GTK_CHECK_VERSION(2, 14, 0)
+ gtk_show_uri(NULL, link, gtk_get_current_event_time(), &err);
+#else /* GTK_CHECK_VERSION(2, 14, 0) */
+ gnome_url_show(link, &err);
+#endif /* GTK_CHECK_VERSION(2, 14, 0) */
+
+ if (err) {
+ balsa_information(LIBBALSA_INFORMATION_WARNING,
+ _("Error showing %s: %s\n"), link, err->message);
+ g_error_free(err);
+ }
+}
+#endif /* GTK_CHECK_VERSION(2, 6, 0) */
+
static void
bw_show_about_box(GtkAction * action, gpointer user_data)
{
@@ -2569,25 +2590,24 @@
"/pixmaps/balsa_logo.png", NULL);
#if GTK_CHECK_VERSION(2, 6, 0)
+ gtk_about_dialog_set_url_hook(bw_show_about_box_url_hook, NULL, NULL);
gtk_show_about_dialog(GTK_WINDOW(user_data),
- "name", "Balsa",
"version", BALSA_VERSION,
"copyright",
- "Copyright \xc2\xa9 1997-2005 The Balsa Developers",
+ "Copyright \xc2\xa9 1997-2008 The Balsa Developers",
"comments",
_("The Balsa email client is part of "
- "the GNOME desktop environment. "
- "Information on Balsa can be found at "
- "http://balsa.gnome.org/\n\n"
- "If you need to report bugs, "
- "please do so at: "
- "http://bugzilla.gnome.org/"),
+ "the GNOME desktop environment."),
"authors", authors,
"documenters", documenters,
+ /* license ? */
+ "title", _("About Balsa"),
"translator-credits",
strcmp(translator_credits, "translator-credits") ?
translator_credits : NULL,
"logo", balsa_logo,
+ "website", "http://balsa.gnome.org",
+ "wrap-license", TRUE,
NULL);
g_object_unref(balsa_logo);
#else /* GTK_CHECK_VERSION(2, 6, 0) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]