[devhelp/wip/swilmet/misc-improvements: 9/10] app: improve about dialog
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/wip/swilmet/misc-improvements: 9/10] app: improve about dialog
- Date: Sat, 30 May 2015 12:35:40 +0000 (UTC)
commit 171ec5213da3f61e8f8d361fd5646e185db4e639
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon May 25 21:31:00 2015 +0200
app: improve about dialog
- For translator-credits, GTK+ already does the comparison to see if the
string is translated.
- Add license and copyright.
https://bugzilla.gnome.org/show_bug.cgi?id=749797
src/dh-app.c | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index 5f2821d..ca1fb37 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -191,7 +191,9 @@ about_cb (GSimpleAction *action,
gpointer user_data)
{
DhApp *app = DH_APP (user_data);
- const gchar *authors[] = {
+ GtkWindow *parent;
+
+ const gchar *authors[] = {
"Mikael Hallendal <micke imendio com>",
"Richard Hult <richard imendio com>",
"Johan Dahlin <johan gnome org>",
@@ -200,9 +202,6 @@ about_cb (GSimpleAction *action,
"Thomas Bechtold <toabctl gnome org>",
NULL
};
- const gchar **documenters = NULL;
- const gchar *translator_credits = _("translator-credits");
- GtkWindow *parent;
parent = dh_app_peek_first_window (app);
@@ -213,14 +212,12 @@ about_cb (GSimpleAction *action,
"version", PACKAGE_VERSION,
"comments", _("A developers' help browser for GNOME"),
"authors", authors,
- "documenters", documenters,
- "translator-credits",
- (strcmp (translator_credits, "translator-credits") != 0 ?
- translator_credits :
- NULL),
+ "translator-credits", _("translator-credits"),
"website", PACKAGE_URL,
- "website-label", _("DevHelp Website"),
+ "website-label", _("Devhelp Website"),
"logo-icon-name", PACKAGE_TARNAME,
+ "license-type", GTK_LICENSE_GPL_2_0,
+ "copyright", "Copyright 2001-2015 – the Devhelp team",
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]