X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fabout.c;h=85185b3931f47633c7d943b3731d5db30df95f49;hb=48d85ad2926b978fe73bd754a5baf626881e1915;hp=c217833cbea5bf140f99c36cc2aa75106a8401b5;hpb=9a331fe64eb814ae5c1322e21717a04fb254bf65;p=pspp-builds.git diff --git a/src/ui/gui/about.c b/src/ui/gui/about.c index c217833c..85185b39 100644 --- a/src/ui/gui/about.c +++ b/src/ui/gui/about.c @@ -24,15 +24,17 @@ #include "about.h" #include "helper.h" +#include +#define _(msgid) gettext (msgid) +#define N_(msgid) msgid + static const gchar *artists[] = { "Patrick Brunier", "Dondi Bogusky", NULL}; void about_new (GtkMenuItem *m, GtkWindow *parent) { - GtkBuilder *xml = builder_new ("psppire.ui"); - - GtkWidget *about = get_widget_assert (xml, "aboutdialog1"); + GtkWidget *about = gtk_about_dialog_new (); GdkPixbuf *pb = gdk_pixbuf_new_from_file_at_size (relocate (PKGDATADIR "/pspplogo.png"), @@ -58,13 +60,24 @@ about_new (GtkMenuItem *m, GtkWindow *parent) gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (about), copyleft); + gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (about), + _("A program for the analysis of sampled data")); + + gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (about), + "Free Software Foundation"); + + gtk_about_dialog_set_translator_credits + ( + GTK_ABOUT_DIALOG (about), + /* TRANSLATORS: Use this string to list the people who have helped with + translation to your language. */ + _("translator-credits") + ); gtk_window_set_transient_for (GTK_WINDOW (about), parent); gtk_window_set_modal (GTK_WINDOW (about), TRUE); - gtk_window_set_keep_above (GTK_WINDOW (about), TRUE); - gtk_dialog_run (GTK_DIALOG (about)); gtk_widget_hide (about);