1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2006, 2007, 2010 Free Software Foundation
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 #include <libpspp/copyleft.h>
23 #include <libpspp/version.h>
27 #include "gl/configmake.h"
30 #define _(msgid) gettext (msgid)
31 #define N_(msgid) msgid
34 static const gchar *artists[] = { "Patrick Brunier", "Dondi Bogusky", NULL};
37 about_new (GtkMenuItem *m, GtkWindow *parent)
39 GtkWidget *about = gtk_about_dialog_new ();
42 gdk_pixbuf_new_from_file_at_size (relocate (PKGDATADIR "/pspplogo.png"),
45 gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (about), pb);
48 gtk_window_set_icon_name (GTK_WINDOW (about), "psppicon");
50 gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (about),
51 "http://www.gnu.org/software/pspp");
53 gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (about),
56 gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about),
57 (const gchar **) authors);
59 gtk_about_dialog_set_artists (GTK_ABOUT_DIALOG (about),
62 gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (about),
65 gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (about),
66 _("A program for the analysis of sampled data"));
68 gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (about),
69 "Free Software Foundation");
71 gtk_about_dialog_set_translator_credits
73 GTK_ABOUT_DIALOG (about),
74 /* TRANSLATORS: Use this string to list the people who have helped with
75 translation to your language. */
76 _("translator-credits")
79 gtk_window_set_transient_for (GTK_WINDOW (about), parent);
81 gtk_window_set_modal (GTK_WINDOW (about), TRUE);
83 gtk_dialog_run (GTK_DIALOG (about));
85 gtk_widget_hide (about);