[gnome-documents] books: Correct about dialogue for Books app
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] books: Correct about dialogue for Books app
- Date: Mon, 1 Dec 2014 16:21:24 +0000 (UTC)
commit 74863dca14144bf65300947c7f62ca469c5d3764
Author: Bastien Nocera <hadess hadess net>
Date: Mon Dec 1 15:49:57 2014 +0100
books: Correct about dialogue for Books app
https://bugzilla.gnome.org/show_bug.cgi?id=740984
src/application.js | 2 +-
src/mainWindow.js | 17 ++++++++++++-----
2 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 88c67ed..26a70e6 100644
--- a/src/application.js
+++ b/src/application.js
@@ -202,7 +202,7 @@ const Application = new Lang.Class({
},
_onActionAbout: function() {
- this._mainWindow.showAbout();
+ this._mainWindow.showAbout(this.isBooks);
},
_onActionHelp: function() {
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 6218134..41a7aa3 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -291,7 +291,7 @@ const MainWindow = new Lang.Class({
return false;
},
- showAbout: function() {
+ showAbout: function(isBooks) {
let aboutDialog = new Gtk.AboutDialog();
aboutDialog.artists = [ 'Jakub Steiner <jimmac gmail com>' ];
@@ -299,13 +299,20 @@ const MainWindow = new Lang.Class({
'Florian M' + String.fromCharCode(0x00FC) + 'llner <fmuellner gnome org>',
'William Jon McCann <william jon mccann gmail com>' ];
aboutDialog.translator_credits = _("translator-credits");
- aboutDialog.program_name = _("Documents");
- aboutDialog.comments = _("A document manager application");
+ if (!isBooks) {
+ aboutDialog.program_name = _("Documents");
+ aboutDialog.comments = _("A document manager application");
+ aboutDialog.logo_icon_name = 'gnome-documents';
+ aboutDialog.website = 'https://wiki.gnome.org/Apps/Documents';
+ } else {
+ aboutDialog.program_name = _("Books");
+ aboutDialog.comments = _("An e-books manager application");
+ aboutDialog.logo_icon_name = 'gnome-books';
+ aboutDialog.website = 'https://wiki.gnome.org/Apps/Books';
+ }
aboutDialog.copyright = 'Copyright ' + String.fromCharCode(0x00A9) + ' 2011' +
String.fromCharCode(0x2013) + '2012 Red Hat, Inc.';
aboutDialog.license_type = Gtk.License.GPL_2_0;
- aboutDialog.logo_icon_name = 'gnome-documents';
aboutDialog.version = Config.PACKAGE_VERSION;
- aboutDialog.website = 'https://wiki.gnome.org/Apps/Documents';
aboutDialog.wrap_license = true;
aboutDialog.modal = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]