2007-10-18 [mones] 3.0.2cvs86
[claws.git] / src / gtk / about.c
index 853d6835d4ef20c2d172a8cd554bf9682ac731a7..d6fc6e032b7c80d060fbf5cbb2340febf9f9d590 100644 (file)
@@ -1,10 +1,10 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
@@ -13,8 +13,8 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * 
  */
 
 #ifdef HAVE_CONFIG_H
@@ -39,6 +39,7 @@
 #if HAVE_SYS_UTSNAME_H
 #  include <sys/utsname.h>
 #endif
+#include <errno.h>
 
 #include "about.h"
 #include "gtkutils.h"
@@ -86,99 +87,23 @@ void about_show(void)
 {
        if (!window)
                about_create();
-       else
+       else 
                gtk_window_present(GTK_WINDOW(window));
+       
 }
 
-static void about_create(void)
+static GtkWidget *about_create_child_page_info(void)
 {
-       GtkWidget *vbox1;
-       GtkWidget *image;       
-       GtkWidget *vbox2;
-       GtkWidget *label;
-       GtkWidget *button;
        GtkWidget *scrolledwin;
-       GtkWidget *notebook;
-       GtkWidget *table;
-       char *markup;
        GtkWidget *text;
-       GtkWidget *confirm_area;
-       GtkWidget *close_button;
        GtkTextBuffer *buffer;
        GtkTextIter iter;
-       GtkTextTag *tag;
        GdkColor uri_color;
-       GdkPixbuf *active_pixbuf;
-       GdkPixbuf *inactive_pixbuf;
-       static GdkGeometry geometry;
+       gchar buf[1024];
+       GtkTextTag *tag;
 #if HAVE_SYS_UTSNAME_H
        struct utsname utsbuf;
 #endif
-       gchar buf[1024];
-       gint i;
-
-       window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
-       gtk_window_set_title(GTK_WINDOW(window), _("About Claws Mail"));
-       gtk_container_set_border_width(GTK_CONTAINER(window), 8);
-       gtk_widget_set_size_request(window, -1, -1);
-       g_signal_connect(G_OBJECT(window), "delete_event",
-                        G_CALLBACK(gtk_widget_hide_on_delete), NULL);
-       g_signal_connect(G_OBJECT(window), "key_press_event",
-                        G_CALLBACK(key_pressed), NULL);
-       gtk_widget_realize(window);
-
-       if (!geometry.min_width) {
-               geometry.min_width = 450;
-               geometry.min_height = 500;
-       }
-
-       gtk_window_set_geometry_hints(GTK_WINDOW(window), NULL, &geometry,
-                                     GDK_HINT_MIN_SIZE);
-
-       vbox1 = gtk_vbox_new(FALSE, 8);
-       gtk_container_add(GTK_CONTAINER(window), vbox1);
-
-       table = gtk_table_new (2, 1, FALSE);
-       gtk_box_pack_start(GTK_BOX(vbox1), table,
-                       FALSE, FALSE, 0);
-       gtk_container_set_border_width (GTK_CONTAINER (table), 8);
-       gtk_table_set_row_spacings (GTK_TABLE (table), 8);
-       gtk_table_set_col_spacings (GTK_TABLE (table), 8);
-
-       image = stock_pixmap_widget(window, STOCK_PIXMAP_CLAWS_MAIL_LOGO);
-       gtk_table_attach (GTK_TABLE (table), image, 0, 1, 0, 1,
-                       (GtkAttachOptions) (GTK_EXPAND),
-                       (GtkAttachOptions) (0), 0, 0);
-
-       vbox2 = gtk_vbox_new (FALSE, 4);
-       gtk_table_attach (GTK_TABLE (table), vbox2, 1, 2, 0, 1,
-                       (GtkAttachOptions) (GTK_EXPAND),
-                       (GtkAttachOptions) (0), 0, 0);
-
-       label = gtk_label_new("");
-       gtk_label_set_selectable(GTK_LABEL(label), TRUE);
-       gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER);
-       gtk_box_pack_start(GTK_BOX(vbox2), label, FALSE, FALSE, 0);
-       markup = g_markup_printf_escaped
-               ("<span weight=\"bold\" size=\"xx-large\">Claws Mail</span>\nversion %s",
-                VERSION);
-       gtk_label_set_markup(GTK_LABEL(label), markup);
-       g_free(markup);
-
-       button = gtkut_get_link_btn(window, HOMEPAGE_URI, " "HOMEPAGE_URI" ");
-       gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
-
-       label = gtk_label_new
-               (_("Copyright (C) 1999-2006\nHiroyuki Yamamoto <hiro-y@kcn.ne.jp>\n"
-                "and the Claws Mail team"));
-       gtk_label_set_selectable(GTK_LABEL(label), TRUE);
-       gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER);
-       gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
-       gtk_box_pack_start(GTK_BOX(vbox2), label, FALSE, FALSE, 0);
-
-       notebook = gtk_notebook_new();
-       gtk_widget_set_size_request(notebook, -1, 220);
-       gtk_widget_show(notebook);
 
        scrolledwin = gtk_scrolled_window_new(NULL, NULL);
        gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledwin),
@@ -231,7 +156,11 @@ static void about_create(void)
        gtk_text_buffer_create_tag(buffer, "underlined-list-title",
                                "underline", PANGO_UNDERLINE_SINGLE,
                                NULL);
-
+#ifdef MAEMO
+       gtk_text_buffer_insert(buffer, &iter, _(
+                               "\n\nCopyright (C) 1999-2007\nHiroyuki Yamamoto <hiro-y@kcn.ne.jp>\n"
+                               "and the Claws Mail team"), -1);
+#endif
        gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("\n\nSystem Information\n")), -1,
                        "underlined-list-title", NULL);
 
@@ -276,9 +205,16 @@ static void about_create(void)
        g_signal_connect(G_OBJECT(text), "leave-notify-event",
                                G_CALLBACK(about_textview_leave_notify), text);
 
-       gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
-                               scrolledwin,
-                               gtk_label_new_with_mnemonic(_("_Info")));
+       return scrolledwin;
+}
+
+static GtkWidget *about_create_child_page_authors(void)
+{
+       GtkWidget *scrolledwin;
+       GtkWidget *text;
+       GtkTextBuffer *buffer;
+       GtkTextIter iter;
+       gint i;
 
        scrolledwin = gtk_scrolled_window_new(NULL, NULL);
        gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledwin),
@@ -306,8 +242,9 @@ static void about_create(void)
                                "underline", PANGO_UNDERLINE_SINGLE,
                                NULL);
 
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("The Claws Mail Team\n")), -1,
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("The Claws Mail Team")), -1,
                        "underlined-list-title", NULL);
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
 
        for (i = 0; TEAM_LIST[i] != NULL; i++) {
                if (g_utf8_validate(TEAM_LIST[i], -1, NULL))
@@ -323,8 +260,10 @@ static void about_create(void)
                gtk_text_buffer_insert(buffer, &iter, "\n", 1);
        }
 
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("\nPrevious team members\n")), -1,
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("Previous team members")), -1,
                        "underlined-list-title", NULL);
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
 
        for (i = 0; EX_TEAM_LIST[i] != NULL; i++) {
                if (g_utf8_validate(EX_TEAM_LIST[i], -1, NULL))
@@ -340,8 +279,10 @@ static void about_create(void)
                gtk_text_buffer_insert(buffer, &iter, "\n", 1);
        }
 
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("\nThe translation team\n")), -1,
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("The translation team")), -1,
                        "underlined-list-title", NULL);
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
 
        for (i = 0; TRANS_TEAM_LIST[i] != NULL; i++) {
                if (g_utf8_validate(TRANS_TEAM_LIST[i], -1, NULL))
@@ -357,8 +298,10 @@ static void about_create(void)
                gtk_text_buffer_insert(buffer, &iter, "\n", 1);
        }
 
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("\nDocumentation team\n")), -1,
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("Documentation team")), -1,
                        "underlined-list-title", NULL);
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
 
        for (i = 0; DOC_TEAM_LIST[i] != NULL; i++) {
                if (g_utf8_validate(DOC_TEAM_LIST[i], -1, NULL))
@@ -374,8 +317,10 @@ static void about_create(void)
                gtk_text_buffer_insert(buffer, &iter, "\n", 1);
        }
 
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("\nLogo\n")), -1,
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("Logo")), -1,
                        "underlined-list-title", NULL);
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
 
        for (i = 0; LOGO_LIST[i] != NULL; i++) {
                if (g_utf8_validate(LOGO_LIST[i], -1, NULL))
@@ -391,8 +336,10 @@ static void about_create(void)
                gtk_text_buffer_insert(buffer, &iter, "\n", 1);
        }
 
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("\nIcons\n")), -1,
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("Icons")), -1,
                        "underlined-list-title", NULL);
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
 
        for (i = 0; ICONS_LIST[i] != NULL; i++) {
                if (g_utf8_validate(ICONS_LIST[i], -1, NULL))
@@ -408,8 +355,10 @@ static void about_create(void)
                gtk_text_buffer_insert(buffer, &iter, "\n", 1);
        }
 
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("\nContributors\n")), -1,
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (_("Contributors")), -1,
                        "underlined-list-title", NULL);
+       gtk_text_buffer_insert(buffer, &iter, "\n", 1);
 
        for (i = 0; CONTRIBS_LIST[i] != NULL; i++) {
                if (g_utf8_validate(CONTRIBS_LIST[i], -1, NULL))
@@ -425,9 +374,17 @@ static void about_create(void)
                gtk_text_buffer_insert(buffer, &iter, "\n", 1);
        }
 
-       gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
-                                scrolledwin,
-                                gtk_label_new_with_mnemonic(_("_Authors")));
+       return scrolledwin;
+}
+
+static GtkWidget *about_create_child_page_features(void)
+{
+       GtkWidget *scrolledwin;
+       GtkWidget *text;
+       GtkTextBuffer *buffer;
+       GtkTextIter iter;
+       GdkPixbuf *active_pixbuf;
+       GdkPixbuf *inactive_pixbuf;
 
        scrolledwin = gtk_scrolled_window_new(NULL, NULL);
        gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledwin),
@@ -452,59 +409,69 @@ static void about_create(void)
        gtk_text_buffer_create_tag(buffer, "bold", "weight", PANGO_WEIGHT_BOLD,
                                   NULL);
 
-       stock_pixbuf_gdk(window, STOCK_PIXMAP_ACTIVE, &active_pixbuf);
-       stock_pixbuf_gdk(window, STOCK_PIXMAP_INACTIVE, &inactive_pixbuf);
+       stock_pixbuf_gdk(window, STOCK_PIXMAP_CHECKBOX_ON, &active_pixbuf);
+       stock_pixbuf_gdk(window, STOCK_PIXMAP_CHECKBOX_OFF, &inactive_pixbuf);
 
-#if INET6
+#if HAVE_LIBCOMPFACE
        gtk_text_buffer_insert_pixbuf(buffer, &iter, active_pixbuf);
 #else
        gtk_text_buffer_insert_pixbuf(buffer, &iter, inactive_pixbuf);
 #endif
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" IPv6 "), -1,
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" compface "), -1,
                                                 "bold", NULL);
        gtk_text_buffer_insert(buffer, &iter, 
-               (gchar *)Q_("IPv6|adds support for IPv6 addresses, the new internet "
-                           "addressing protocol\n"), -1);
+               (gchar *)Q_("compface|adds support for the X-Face header\n"), -1);
 
-#if HAVE_ICONV
+#if USE_ASPELL
        gtk_text_buffer_insert_pixbuf(buffer, &iter, active_pixbuf);
 #else
        gtk_text_buffer_insert_pixbuf(buffer, &iter, inactive_pixbuf);
 #endif
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" iconv "), -1,
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" GNU/aspell "), -1,
                                                 "bold", NULL);
        gtk_text_buffer_insert(buffer, &iter, 
-               (gchar *)Q_("iconv|allows converting to and from different character sets\n"), -1);
+               (gchar *)Q_("GNU/aspell|adds support for spell checking\n"), -1);
 
-#if HAVE_LIBCOMPFACE
+#if USE_GNUTLS
        gtk_text_buffer_insert_pixbuf(buffer, &iter, active_pixbuf);
 #else
        gtk_text_buffer_insert_pixbuf(buffer, &iter, inactive_pixbuf);
 #endif
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" compface "), -1,
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" GnuTLS "), -1,
                                                 "bold", NULL);
        gtk_text_buffer_insert(buffer, &iter, 
-               (gchar *)Q_("compface|adds support for the X-Face header\n"), -1);
+               (gchar *)Q_("GnuTLS|adds support for encrypted connections to servers\n"), -1);
 
-#if USE_OPENSSL
+#if GTK_CHECK_VERSION(2,10,0) && !defined(USE_GNOMEPRINT)
        gtk_text_buffer_insert_pixbuf(buffer, &iter, active_pixbuf);
 #else
        gtk_text_buffer_insert_pixbuf(buffer, &iter, inactive_pixbuf);
 #endif
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" OpenSSL "), -1,
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" GTK+ >= 2.10.0 "), -1,
                                                 "bold", NULL);
        gtk_text_buffer_insert(buffer, &iter, 
-               (gchar *)Q_("OpenSSL|adds support for encrypted connections to servers\n"), -1);
+               (gchar *)Q_("GTK+ >= 2.10.0|adds support for a complete print dialog\n"), -1);
 
-#if USE_LDAP
+#if INET6
        gtk_text_buffer_insert_pixbuf(buffer, &iter, active_pixbuf);
 #else
        gtk_text_buffer_insert_pixbuf(buffer, &iter, inactive_pixbuf);
 #endif
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" LDAP "), -1,
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" IPv6 "), -1,
                                                 "bold", NULL);
        gtk_text_buffer_insert(buffer, &iter, 
-               (gchar *)Q_("LDAP|adds support for LDAP shared addressbooks\n"), -1);
+               (gchar *)Q_("IPv6|adds support for IPv6 addresses, the new Internet "
+                           "addressing protocol\n"), -1);
+
+#if HAVE_ICONV
+       gtk_text_buffer_insert_pixbuf(buffer, &iter, active_pixbuf);
+#else
+       gtk_text_buffer_insert_pixbuf(buffer, &iter, inactive_pixbuf);
+#endif
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" iconv "), -1,
+                                                "bold", NULL);
+       gtk_text_buffer_insert(buffer, &iter, 
+               (gchar *)Q_("iconv|allows converting to and from different character sets\n"), -1);
 
 #if USE_JPILOT
        gtk_text_buffer_insert_pixbuf(buffer, &iter, active_pixbuf);
@@ -516,15 +483,15 @@ static void about_create(void)
        gtk_text_buffer_insert(buffer, &iter, 
                (gchar *)Q_("JPilot|adds support for PalmOS addressbooks\n"), -1);
 
-#if USE_ASPELL
+#if USE_LDAP
        gtk_text_buffer_insert_pixbuf(buffer, &iter, active_pixbuf);
 #else
        gtk_text_buffer_insert_pixbuf(buffer, &iter, inactive_pixbuf);
 #endif
-       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" GNU/aspell "), -1,
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" LDAP "), -1,
                                                 "bold", NULL);
        gtk_text_buffer_insert(buffer, &iter, 
-               (gchar *)Q_("GNU/aspell|adds support for spell checking\n"), -1);
+               (gchar *)Q_("LDAP|adds support for LDAP shared addressbooks\n"), -1);
 
 #if HAVE_LIBETPAN
        gtk_text_buffer_insert_pixbuf(buffer, &iter, active_pixbuf);
@@ -534,7 +501,7 @@ static void about_create(void)
        gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" libetpan "), -1,
                                                 "bold", NULL);
        gtk_text_buffer_insert(buffer, &iter, 
-               (gchar *)Q_("libetpan|adds support for IMAP servers\n"), -1);
+               (gchar *)Q_("libetpan|adds support for IMAP and NNTP servers\n"), -1);
 
 #if USE_GNOMEPRINT
        gtk_text_buffer_insert_pixbuf(buffer, &iter, active_pixbuf);
@@ -556,9 +523,27 @@ static void about_create(void)
        gtk_text_buffer_insert(buffer, &iter, 
                (gchar *)Q_("libSM|adds support for session handling\n"), -1);
 
-       gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
-                                scrolledwin,
-                                gtk_label_new_with_mnemonic(_("_Features")));
+#if USE_OPENSSL
+       gtk_text_buffer_insert_pixbuf(buffer, &iter, active_pixbuf);
+#else
+       gtk_text_buffer_insert_pixbuf(buffer, &iter, inactive_pixbuf);
+#endif
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, (" OpenSSL "), -1,
+                                                "bold", NULL);
+       gtk_text_buffer_insert(buffer, &iter, 
+               (gchar *)Q_("OpenSSL|adds support for encrypted connections to servers\n"), -1);
+
+       return scrolledwin;
+}
+
+static GtkWidget *about_create_child_page_license(void)
+{
+       GtkWidget *scrolledwin;
+       GtkWidget *text;
+       GtkTextBuffer *buffer;
+       GtkTextIter iter;
+       GdkColor uri_color;
+       GtkTextTag *tag;
 
        scrolledwin = gtk_scrolled_window_new(NULL, NULL);
        gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledwin),
@@ -580,7 +565,7 @@ static void about_create(void)
        gtk_text_buffer_insert(buffer, &iter,
                _("This program is free software; you can redistribute it and/or modify "
                  "it under the terms of the GNU General Public License as published by "
-                 "the Free Software Foundation; either version 2, or (at your option) "
+                 "the Free Software Foundation; either version 3, or (at your option) "
                  "any later version.\n\n"), -1);
 
        gtk_text_buffer_insert(buffer, &iter,
@@ -589,12 +574,10 @@ static void about_create(void)
                  "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. "
                  "See the GNU General Public License for more details.\n\n"), -1);
 
-       gtk_text_buffer_insert(buffer, &iter,
-               _("You should have received a copy of the GNU General Public License "
-                 "along with this program; if not, write to the Free Software "
-                 "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, "
-                 "MA 02110-1301, USA.\n\n"), -1);
-#ifdef USE_OPENSSL
+       /* textview link style (based upon main prefs) */
+       gtkut_convert_int_to_gdk_color(prefs_common.uri_col,
+                       (GdkColor*)&uri_color);
+
        tag = gtk_text_buffer_create_tag(buffer, "link",
                "foreground-gdk", &uri_color,
                NULL);
@@ -603,6 +586,14 @@ static void about_create(void)
                "underline", PANGO_UNDERLINE_SINGLE,
                NULL);
 
+       gtk_text_buffer_insert(buffer, &iter,
+               _("You should have received a copy of the GNU General Public License "
+                 "along with this program. If not, see <"), -1);
+       gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, 
+               "http://www.gnu.org/licenses/", -1,
+               "link", NULL);
+       gtk_text_buffer_insert(buffer, &iter, _(">. \n\n"), -1);
+#ifdef USE_OPENSSL
        gtk_text_buffer_insert(buffer, &iter,
                _("This product includes software developed by the OpenSSL Project "
                  "for use in the OpenSSL Toolkit ("), -1);
@@ -618,9 +609,183 @@ static void about_create(void)
                                G_CALLBACK(about_textview_leave_notify), text);
 #endif
 
-       gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
-                                scrolledwin,
-                                gtk_label_new_with_mnemonic(_("_License")));
+       return scrolledwin;
+}
+
+static gboolean release_notes_available(void)
+{
+       gboolean ret = FALSE;
+       gchar *path = NULL;
+
+       path = g_strconcat(DOCDIR, G_DIR_SEPARATOR_S, RELEASE_NOTES_FILE, NULL);
+       ret = (is_file_exist(path));
+       g_free(path);
+
+       return ret;
+}
+
+static GtkWidget *about_create_child_page_release_notes(void)
+{
+       GtkWidget *scrolledwin;
+       GtkWidget *text;
+       GtkTextBuffer *buffer;
+       GtkTextIter iter;
+       gchar *path, buf[1024];
+       FILE *fp;
+
+       scrolledwin = gtk_scrolled_window_new(NULL, NULL);
+       gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledwin),
+                       GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+       gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolledwin),
+                       GTK_SHADOW_IN);
+       text = gtk_text_view_new();
+       gtk_text_view_set_editable(GTK_TEXT_VIEW(text), FALSE);
+       gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text), GTK_WRAP_WORD);
+       gtk_text_view_set_left_margin(GTK_TEXT_VIEW(text), 6);
+       gtk_text_view_set_right_margin(GTK_TEXT_VIEW(text), 6);
+       gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(text), FALSE);
+       gtk_container_add(GTK_CONTAINER(scrolledwin), text);
+
+       buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
+       gtk_text_buffer_get_iter_at_offset(buffer, &iter, 0);
+
+       path = g_strconcat(DOCDIR, G_DIR_SEPARATOR_S, RELEASE_NOTES_FILE, NULL);
+       if ((fp = g_fopen(path, "rb")) == NULL) {
+               if (ENOENT != errno) FILE_OP_ERROR(path, "fopen");
+               g_free(path);
+               return scrolledwin;
+       }
+       g_free(path);
+
+       while (fgets(buf, sizeof(buf), fp) != NULL) {
+               const gchar *src_codeset = conv_get_locale_charset_str();
+               const gchar *dest_codeset = CS_UTF_8;
+               gchar *tmp;
+
+               tmp = conv_codeset_strdup(buf, src_codeset, dest_codeset);
+               if (!tmp) {
+                       g_warning("Failed to convert character set of action configuration\n");
+                       tmp = g_strdup(buf);
+               }
+
+               gtk_text_buffer_insert(buffer, &iter, tmp, -1);
+               g_free(tmp);
+       }
+       fclose(fp);
+
+       return scrolledwin;
+}
+
+static void about_create(void)
+{
+       GtkWidget *vbox1;
+       GtkWidget *image;       
+       GtkWidget *vbox2;
+       GtkWidget *label;
+       GtkWidget *button;
+       GtkWidget *scrolledwin;
+       GtkWidget *notebook;
+       GtkWidget *table;
+       char *markup;
+       GtkWidget *confirm_area;
+       GtkWidget *close_button;
+       static GdkGeometry geometry;
+
+       window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "about");
+       gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ALWAYS);
+       gtk_window_set_title(GTK_WINDOW(window), _("About Claws Mail"));
+       gtk_container_set_border_width(GTK_CONTAINER(window), 8);
+       gtk_widget_set_size_request(window, -1, -1);
+       g_signal_connect(G_OBJECT(window), "delete_event",
+                        G_CALLBACK(gtk_widget_hide_on_delete), NULL);
+       g_signal_connect(G_OBJECT(window), "key_press_event",
+                        G_CALLBACK(key_pressed), NULL);
+       gtk_widget_realize(window);
+
+       if (!geometry.min_width) {
+               geometry.min_width = 450;
+               geometry.min_height = 500;
+       }
+
+       gtk_window_set_geometry_hints(GTK_WINDOW(window), NULL, &geometry,
+                                     GDK_HINT_MIN_SIZE);
+
+       vbox1 = gtk_vbox_new(FALSE, 8);
+       gtk_container_add(GTK_CONTAINER(window), vbox1);
+
+       table = gtk_table_new (2, 1, FALSE);
+       gtk_box_pack_start(GTK_BOX(vbox1), table,
+                       FALSE, FALSE, 0);
+       gtk_container_set_border_width (GTK_CONTAINER (table), 8);
+       gtk_table_set_row_spacings (GTK_TABLE (table), 8);
+       gtk_table_set_col_spacings (GTK_TABLE (table), 8);
+
+       image = stock_pixmap_widget(window, STOCK_PIXMAP_CLAWS_MAIL_LOGO);
+       gtk_table_attach (GTK_TABLE (table), image, 0, 1, 0, 1,
+                       (GtkAttachOptions) (GTK_EXPAND),
+                       (GtkAttachOptions) (0), 0, 0);
+
+       vbox2 = gtk_vbox_new (FALSE, 4);
+       gtk_table_attach (GTK_TABLE (table), vbox2, 1, 2, 0, 1,
+                       (GtkAttachOptions) (GTK_EXPAND),
+                       (GtkAttachOptions) (0), 0, 0);
+
+       label = gtk_label_new("");
+       gtk_label_set_selectable(GTK_LABEL(label), TRUE);
+       gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER);
+       gtk_box_pack_start(GTK_BOX(vbox2), label, FALSE, FALSE, 0);
+       markup = g_markup_printf_escaped
+               ("<span weight=\"bold\" size=\"xx-large\">Claws Mail</span>\nversion %s",
+                VERSION);
+       gtk_label_set_markup(GTK_LABEL(label), markup);
+       g_free(markup);
+
+       button = gtkut_get_link_btn(window, HOMEPAGE_URI, " "HOMEPAGE_URI" ");
+       gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
+#ifndef MAEMO
+       label = gtk_label_new
+               (_("Copyright (C) 1999-2007\nHiroyuki Yamamoto <hiro-y@kcn.ne.jp>\n"
+                "and the Claws Mail team"));
+       gtk_label_set_selectable(GTK_LABEL(label), TRUE);
+       gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER);
+       gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
+       gtk_box_pack_start(GTK_BOX(vbox2), label, FALSE, FALSE, 0);
+#endif
+       notebook = gtk_notebook_new();
+       gtk_widget_set_size_request(notebook, -1, 220);
+       gtk_widget_show(notebook);
+
+       if ((scrolledwin = about_create_child_page_info()) != NULL) {
+               gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
+                               scrolledwin,
+                               gtk_label_new_with_mnemonic(_("_Info")));
+       }
+
+       if ((scrolledwin = about_create_child_page_authors()) != NULL) {
+               gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
+                               scrolledwin,
+                               gtk_label_new_with_mnemonic(_("_Authors")));
+       }
+
+       if ((scrolledwin = about_create_child_page_features()) != NULL) {
+               gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
+                               scrolledwin,
+                               gtk_label_new_with_mnemonic(_("_Features")));
+       }
+
+       if ((scrolledwin = about_create_child_page_license()) != NULL) {
+               gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
+                               scrolledwin,
+                               gtk_label_new_with_mnemonic(_("_License")));
+       }
+
+       if (release_notes_available() &&
+                       (scrolledwin = about_create_child_page_release_notes()) != NULL) {
+
+               gtk_notebook_append_page(GTK_NOTEBOOK(notebook),
+                               scrolledwin,
+                               gtk_label_new_with_mnemonic(_("_Release Notes")));
+       }
 
        gtk_box_pack_start(GTK_BOX(vbox1), notebook, TRUE, TRUE, 0);