/* * functions.c * * Copyright 2008 warren * * 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. */ void DestroyWidget(GtkWidget *pWidget, gpointer Data) { gtk_widget_destroy(Data); } void AboutProgram() { const gchar *authors[] = { "Warren Dumortier", NULL }; gchar *license_trans; const gchar *license[] = { N_("ET Open Config Generator 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."), N_("ET Open Config Generator 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_("You should have received a copy of the GNU General Public License " "along with ET Open Config Generator; if not, write to the Free Software Foundation, Inc., " "59 Temple Place, Suite 330, Boston, MA 02111-1307 USA") }; license_trans = g_strjoin ("\n\n", _(license[0]), _(license[1]), _(license[2]), NULL); gtk_show_about_dialog(NULL, "program-name", ("ET Open Config Generator"), "version", ("0.1.2"), "comments", ("ET Open Config Generator is a program to generate config files for Enemy Territory."), "authors", authors, "license", license_trans, "wrap-license", TRUE, NULL); } void Progress10(GtkWidget *pProgressProgressBar, gpointer data) { gdouble dProgress; dProgress = gtk_progress_bar_get_fraction(GTK_PROGRESS_BAR(pProgressProgressBar)); dProgress += 0.1; if(dProgress > 1.0) { dProgress = 0.0; } gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(pProgressProgressBar), dProgress); } void NextWizard() { switch(CurrentWizard) { case 1: CurrentWizard = 2; gtk_widget_destroy(pVerticalBox); break; case 2: printf("..."); break; default: printf("..."); break; } }