[passepartout] improved the about dialog



commit e6dd4b6290015cdbd50d19e31098f2cd237a3408
Author: Sven Herzberg <herzi lanedo com>
Date:   Mon Apr 13 12:26:53 2009 +0200

    improved the about dialog
    
    * src/pptout/aboutdialog.cc: added documenters; use Glib:ustring_compose;
      updated copyright; added translator-credits; added the url hook; small
      cleanups
---
 src/pptout/aboutdialog.cc |   30 +++++++++++++++++++-----------
 1 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/src/pptout/aboutdialog.cc b/src/pptout/aboutdialog.cc
index 67decc3..2c77ff7 100644
--- a/src/pptout/aboutdialog.cc
+++ b/src/pptout/aboutdialog.cc
@@ -33,25 +33,33 @@ namespace {
 
 }
 
+namespace {
+  void about_uri_cb (Gtk::AboutDialog& about,
+		     const Glib::ustring& uri)
+  {
+    Programs::open_url (uri);
+  }
+};
+
 AboutDialog::AboutDialog()
 //  : DialogWrap("About")
 {
-{
+  std::vector<Glib::ustring> documenters;
+  documenters.push_back ("Fredrik Arnerup");
+  set_authors (authors);
+  set_comments (_("A DTP application for GNOME") + std::string("\n") +
+		Glib::ustring::compose (_("GNOME support: %1"),
+					have_gnome ? _("enabled") : _("disabled")));
+  set_copyright (_("Copyright (c) 2002-2005,2007,2009"));
+  set_documenters (documenters);
   // FIXME: the size looks fishy
   set_logo (Gdk::Pixbuf::create_from_inline(69624, logo));
+  // FIXME: set_mailing_list (mail_address);
   set_name (_("Passepartout"));
+  set_translator_credits (_("translator-credits"));
   set_version (VERSION);
-  set_copyright (_("Copyright (c) 2002-2004"));
+  set_url_hook (ptr_fun(about_uri_cb));
   set_website ("http://www.stacken.kth.se/project/pptout/";);
-  gchar* str = g_strdup_printf (_("GNOME support: %s"), (have_gnome ? _("enabled") : _("disabled")));
-  set_comments (_("A DTP application for GNOME") + std::string("\n") + str);
-  g_free (str);
-  set_authors (authors);
-  // FIXME: set_mailing_list (mail_address);
-}
-  set_resizable(false);
-
-  show_all_children();
 }
 
 AboutDialog &AboutDialog::instance() {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]