815
static char *get_license_text (void)
817
const char *license[] = {
818
N_("Gnomeradio is free software; you can redistribute it and/or modify "
819
"it under the terms of the GNU General Public License as published by "
820
"the Free Software Foundation; either version 2 of the License, or "
821
"(at your option) any later version."),
822
N_("Gnomeradio is distributed in the hope that it will be useful, "
823
"but WITHOUT ANY WARRANTY; without even the implied warranty of "
824
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "
825
"GNU General Public License for more details."),
826
N_("You should have received a copy of the GNU General Public License "
827
"along with Gnomeradio; if not, write to the Free Software Foundation, "
828
"Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA")
830
return g_strjoin ("\n\n",
815
837
static void about_button_clicked_cb(GtkButton *button, gpointer data)
818
GtkIconTheme *icontheme;
819
839
static GtkWidget *about;
820
840
const char *authors[] = {"Jörgen Scheibengruber <mfcn@gmx.de>", NULL};
823
gchar *license = g_strconcat(
824
"\nGnomeradio is free software; you can redistribute it and/or modify ",
825
"it under the terms of the GNU General Public License as published by ",
826
"the Free Software Foundation; either version 2 of the License, or "
827
"(at your option) any later version.\n\r",
828
"Gnomeradio is distributed in the hope that it will be useful, ",
829
"but WITHOUT ANY WARRANTY; without even the implied warranty of ",
830
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ",
831
"GNU General Public License for more details.\n\r",
832
"You should have received a copy of the GNU General Public License ",
833
"along with Gnomeradio; if not, write to the Free Software Foundation, ",
834
"Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA",
837
842
/* Feel free to put your names here translators :-) */
838
843
char *translators = _("TRANSLATORS");
844
char *license = get_license_text ();
842
848
gtk_window_present(GTK_WINDOW(about));
845
icontheme = gtk_icon_theme_get_default();
846
app_icon = gtk_icon_theme_load_icon(icontheme, "gnomeradio", 48, 0, NULL);
849
text =_("Gnomeradio is a FM-Tuner application for the GNOME desktop. "
850
"It should work with all tuner hardware that is supported by the video4linux drivers.\n\n"
851
"This version has been compiled with LIRC support.");
853
text =_("Gnomeradio is a FM-Tuner application for the GNOME desktop. "
854
"It should work with all tuner hardware that is supported by the video4linux drivers.\n\n"
855
"This version has been compiled without LIRC support.");
858
852
gtk_show_about_dialog(NULL,
859
"program-name", "Gnomeradio",
862
"wrap-license", TRUE,
863
"copyright", "Copyright 2001 - 2006 Jörgen Scheibengruber",
865
"website", "http://www.gnome.org/projects/gnomeradio/",
866
"website-label", _("Gnomeradio Homepage"),
867
"authors", (const char **) authors,
868
"translator-credits", strcmp("TRANSLATORS", translators) ? translators : NULL,
869
"logo", app_icon, NULL);
854
"copyright", _("Copyright \xc2\xa9 2001 - 2006 Jörgen Scheibengruber"),
855
"comments", _("FM radio tuner for GNOME"),
857
"translator-credits", strcmp("TRANSLATORS", translators) ? translators : NULL,
858
"logo-icon-name", "gnomeradio",
860
"wrap-license", TRUE,
861
"website-label", _("Gnomeradio Website"),
862
"website", "http://www.gnome.org/projects/gnomeradio/",
871
865
g_free (license);