[devhelp/wip/swilmet/misc-improvements] app: simplify building the about dialog
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/wip/swilmet/misc-improvements] app: simplify building the about dialog
- Date: Mon, 25 May 2015 19:41:46 +0000 (UTC)
commit edf8ca21f80815f1f5debbb2ee8aa4b586347713
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon May 25 21:31:00 2015 +0200
app: simplify building the about dialog
For translator-credits, GTK+ already does the comparison to see if the
string is translated.
src/dh-app.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index 1f7e1af..b52e304 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,11 +212,7 @@ 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"),
"logo-icon-name", PACKAGE_TARNAME,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]