2 PSPPIRE --- A Graphical User Interface for PSPP
3 Copyright (C) 2006, 2007 Free Software Foundation
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 #include <glade/glade.h>
24 #include <libpspp/version.h>
29 about_new (GtkMenuItem *m, GtkWindow *parent)
31 GladeXML *xml = glade_xml_new (PKGDATADIR "/psppire.glade", NULL, NULL);
33 GtkWidget *about = get_widget_assert (xml, "aboutdialog1");
36 gdk_pixbuf_new_from_file_at_size (PKGDATADIR "/pspplogo.png", 64, 64, 0);
38 gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (about), pb);
41 gtk_window_set_icon_from_file (GTK_WINDOW (about),
42 PKGDATADIR "/psppicon.png", 0);
44 gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (about),
45 "http://www.gnu.org/software/pspp");
47 gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (about),
50 gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about),
51 (const gchar **) authors);
53 gtk_window_set_transient_for (GTK_WINDOW (about), parent);
55 gtk_window_set_modal (GTK_WINDOW (about), TRUE);
57 gtk_window_set_keep_above (GTK_WINDOW (about), TRUE);
59 gtk_dialog_run (GTK_DIALOG (about));
61 gtk_widget_hide (about);