Commit 5f8b91f6cee047ee930d5ee8a3d2930fd46c7fad
1 parent
98e6dc86
Exists in
master
and in
3 other branches
Adding more detailed info in the about window.
Showing
1 changed file
with
44 additions
and
15 deletions
Show diff stats
src/objects/application/actions/about.c
@@ -33,18 +33,7 @@ | @@ -33,18 +33,7 @@ | ||
33 | 33 | ||
34 | static GtkWidget * factory(PW3270Action G_GNUC_UNUSED(*action), GtkApplication G_GNUC_UNUSED(*application)) { | 34 | static GtkWidget * factory(PW3270Action G_GNUC_UNUSED(*action), GtkApplication G_GNUC_UNUSED(*application)) { |
35 | 35 | ||
36 | - static const gchar *authors[] = | ||
37 | - { | ||
38 | - "Perry Werneck <perry.werneck@gmail.com>", | ||
39 | - #ifdef __APPLE__ | ||
40 | - "Andre Breves <andre.breves@gmail.com>", | ||
41 | - #endif | ||
42 | - "Paul Mattes <Paul.Mattes@usa.net>", | ||
43 | - "Georgia Tech Research Corporation (GTRC)", | ||
44 | - "and others", | ||
45 | - NULL | ||
46 | - }; | ||
47 | - | 36 | + /* |
48 | static const gchar *license = | 37 | static const gchar *license = |
49 | N_( "This program is free software; you can redistribute it and/or " | 38 | N_( "This program is free software; you can redistribute it and/or " |
50 | "modify it under the terms of the GNU General Public License as " | 39 | "modify it under the terms of the GNU General Public License as " |
@@ -58,6 +47,7 @@ | @@ -58,6 +47,7 @@ | ||
58 | "along with this program; if not, write to the Free Software " | 47 | "along with this program; if not, write to the Free Software " |
59 | "Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 " | 48 | "Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 " |
60 | "USA" ); | 49 | "USA" ); |
50 | + */ | ||
61 | 51 | ||
62 | GtkAboutDialog * dialog = GTK_ABOUT_DIALOG(gtk_about_dialog_new()); | 52 | GtkAboutDialog * dialog = GTK_ABOUT_DIALOG(gtk_about_dialog_new()); |
63 | 53 | ||
@@ -107,12 +97,51 @@ | @@ -107,12 +97,51 @@ | ||
107 | gtk_about_dialog_set_comments(dialog, comments); | 97 | gtk_about_dialog_set_comments(dialog, comments); |
108 | } | 98 | } |
109 | 99 | ||
100 | + // Set maintainers | ||
101 | + { | ||
102 | + static const gchar *maintainers[] = { | ||
103 | + "Perry Werneck <perry.werneck@gmail.com>", | ||
104 | + NULL | ||
105 | + }; | ||
106 | + | ||
107 | + static const gchar *apple[] = { | ||
108 | + "Andre Breves <andre.breves@gmail.com>", | ||
109 | + NULL | ||
110 | + }; | ||
111 | + | ||
112 | + static const gchar *references[] = | ||
113 | + { | ||
114 | + "Paul Mattes <Paul.Mattes@usa.net>", | ||
115 | + "Georgia Tech Research Corporation (GTRC)", | ||
116 | + "and others", | ||
117 | + NULL | ||
118 | + }; | ||
119 | + | ||
120 | + static const gchar *contributors[] = { | ||
121 | + "Erico Mendonça <erico.mendonca@suse.com>", | ||
122 | + NULL | ||
123 | + }; | ||
124 | + | ||
125 | + gtk_about_dialog_add_credit_section(dialog, _("Maintainers"), maintainers); | ||
126 | + gtk_about_dialog_add_credit_section(dialog, _("Apple version"), apple); | ||
127 | + gtk_about_dialog_add_credit_section (dialog, _("Contributors"), contributors); | ||
128 | + | ||
129 | + | ||
130 | + gtk_about_dialog_add_credit_section(dialog, _("Based on X3270 from"), references); | ||
131 | + | ||
132 | + } | ||
133 | + | ||
110 | gtk_about_dialog_set_copyright(dialog, "Copyright © 2008 Banco do Brasil S.A." ); | 134 | gtk_about_dialog_set_copyright(dialog, "Copyright © 2008 Banco do Brasil S.A." ); |
111 | - gtk_about_dialog_set_license(dialog, gettext( license ) ); | ||
112 | - gtk_about_dialog_set_wrap_license(dialog,TRUE); | 135 | + |
136 | +// gtk_about_dialog_set_license(dialog, gettext( license ) ); | ||
137 | +// gtk_about_dialog_set_wrap_license(dialog,TRUE); | ||
138 | + | ||
139 | + gtk_about_dialog_set_license_type(dialog,GTK_LICENSE_GPL_3_0); | ||
140 | + | ||
113 | gtk_about_dialog_set_website(dialog,"https://portal.softwarepublico.gov.br/social/pw3270/"); | 141 | gtk_about_dialog_set_website(dialog,"https://portal.softwarepublico.gov.br/social/pw3270/"); |
114 | gtk_about_dialog_set_website_label(dialog,_( "Brazilian Public Software Portal" )); | 142 | gtk_about_dialog_set_website_label(dialog,_( "Brazilian Public Software Portal" )); |
115 | - gtk_about_dialog_set_authors(dialog,authors); | 143 | + |
144 | +// gtk_about_dialog_set_authors(dialog,authors); | ||
116 | gtk_about_dialog_set_translator_credits(dialog,_("translator-credits")); | 145 | gtk_about_dialog_set_translator_credits(dialog,_("translator-credits")); |
117 | 146 | ||
118 | gtk_window_set_modal(GTK_WINDOW(dialog),TRUE); | 147 | gtk_window_set_modal(GTK_WINDOW(dialog),TRUE); |