/* Pcsx - Pc Psx Emulator * Copyright (C) 1999-2002 Pcsx Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "Linux.h" #include #define ABOUT_VERSION "git" void RunAboutDialog(void) { GtkBuilder *builder; GtkWidget *AboutDlg; GdkPixbuf *logo; const gchar *authors[] = { "PCSX-Reloaded Team:", "edgbla ", "shalma", "Wei Mingzhi ", "", "Contributors:", "BenoƮt Gschwind", "Dario", "Firnis", "Gabriele Gorla", "Hopkat", "Peter Collingbourne", "Tristin Celestin", "(See the included AUTHORS file for more details.)", "", "PCSX-df Team:", "Ryan Schultz ", "Andrew Burton ", "Stephen Chao ", "Stefan Sikora ", "", "PCSX Team:", "Linuzappz ", "Shadow", "Pete Bernert", "NoComp", "Nik3d", NULL }; const gchar *artists[] = { "Ryan Schultz ", "Romain Lafourcade", "perchibald", NULL }; const gchar *documenters[] = { "Ryan Schultz ", NULL }; const gchar *copyright = N_( "(C) 1999-2003 PCSX Team\n" "(C) 2005-2009 PCSX-df Team\n" "(C) 2009-2014 PCSX-Reloaded Team"); const gchar *license = N_( "This program is free software: you can redistribute it and/or modify " "it under the terms of the GNU General Public License as published by " "the Free Software Foundation, either version 3 of the License, or " "(at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful, " "but WITHOUT ANY WARRANTY; without even the implied warranty of " "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the " "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License " "along with this program. If not, see ."); logo = gdk_pixbuf_new_from_resource("/org/pcsxr/gui/pixmaps/pcsxr-icon.png", NULL); builder = gtk_builder_new(); if (!gtk_builder_add_from_resource(builder, "/org/pcsxr/gui/pcsxr.ui", NULL)) { g_warning("Error: interface could not be loaded!"); return; } AboutDlg = GTK_WIDGET(gtk_builder_get_object(builder, "AboutDlg")); gtk_window_set_title(GTK_WINDOW(AboutDlg), _("About")); gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(AboutDlg), "PCSX-Reloaded"); gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(AboutDlg), ABOUT_VERSION); gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(AboutDlg), "http://pcsxr.codeplex.com/"); gtk_about_dialog_set_website_label(GTK_ABOUT_DIALOG(AboutDlg), "http://pcsxr.codeplex.com/"); gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(AboutDlg), authors); gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(AboutDlg), _(copyright)); gtk_about_dialog_set_documenters(GTK_ABOUT_DIALOG(AboutDlg), documenters); gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(AboutDlg), artists); gtk_about_dialog_set_translator_credits(GTK_ABOUT_DIALOG(AboutDlg), _("translator-credits")); gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG (AboutDlg), _("A PlayStation emulator.")); gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(AboutDlg), _(license)); gtk_about_dialog_set_wrap_license(GTK_ABOUT_DIALOG(AboutDlg), TRUE); gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(AboutDlg), logo); g_object_unref(G_OBJECT(logo)); gtk_dialog_run(GTK_DIALOG(AboutDlg)); gtk_widget_destroy(AboutDlg); g_object_unref(builder); }