paperbox r183 - in trunk: . src
- From: markoa svn gnome org
- To: svn-commits-list gnome org
- Subject: paperbox r183 - in trunk: . src
- Date: Sun, 24 Aug 2008 14:14:22 +0000 (UTC)
Author: markoa
Date: Sun Aug 24 14:14:22 2008
New Revision: 183
URL: http://svn.gnome.org/viewvc/paperbox?rev=183&view=rev
Log:
Show about dialog
Modified:
trunk/ChangeLog
trunk/src/main-window.cc
Modified: trunk/src/main-window.cc
==============================================================================
--- trunk/src/main-window.cc (original)
+++ trunk/src/main-window.cc Sun Aug 24 14:14:22 2008
@@ -27,6 +27,7 @@
#include <vector>
#include <glib/gi18n.h>
#include <glibmm/markup.h>
+#include <gtkmm/aboutdialog.h>
#include <glibmm-utils/ustring.h>
#include <gtkmm-utils/tile.h>
#include "browser.hh"
@@ -280,7 +281,51 @@
void
MainWindow::on_menu_about()
{
- g_debug("about...");
+ Gtk::AboutDialog dialog;
+
+ dialog.set_program_name(PACKAGE_NAME);
+ dialog.set_version(PACKAGE_VERSION);
+ dialog.set_comments(_("A document browser for GNOME"));
+
+ list<Glib::ustring> authors;
+ authors.push_back("Marko Anastasov <marko anastasov gmail com>");
+ dialog.set_authors(authors);
+ dialog.set_copyright("Copyright \xc2\xa9 2007-2008 Marko Anastasov");
+
+ dialog.set_website("http://live.gnome.org/PaperBox");
+
+ Glib::ustring license =
+ "This program is free software; you can redistribute it and/or modify\n"
+ "it under the terms of the GNU General Public License as published by\n"
+ "the Free Software Foundation; either version 2 of the License, or\n"
+ "(at your option) any later version.\n\n"
+
+ "This program is distributed in the hope that it will be useful,\n"
+ "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
+ "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
+ "GNU General Public License for more details.\n\n"
+
+ "You should have received a copy of the GNU General Public License\n"
+ "along with this program; if not, write to the \n"
+ "Free Software Foundation, Inc., 59 Temple Place, Suite 330, \n"
+ "Boston, MA 02111-1307 USA\n";
+ dialog.set_license(license);
+
+ // Translators: change this to your name, separate multiple names with \n
+ dialog.set_translator_credits(_("translator-credits"));
+
+ Glib::RefPtr<Gtk::IconTheme> theme = Gtk::IconTheme::get_default();
+ if (theme->has_icon("paperbox")) {
+ Glib::RefPtr<Gdk::Pixbuf> icon =
+ theme->load_icon("paperbox", 128, Gtk::ICON_LOOKUP_USE_BUILTIN);
+ dialog.set_logo(icon);
+ }
+
+ vector<Glib::ustring> artists;
+ artists.push_back("Jakub Szypulka <cube szypulka com>");
+ dialog.set_artists(artists);
+
+ dialog.run();
}
bool
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]