Go to the documentation of this file.00001
00025 #ifdef HAVE_CONFIG_H
00026 # include <config.h>
00027 #endif
00028
00029 #include <sys/types.h>
00030 #include <sys/stat.h>
00031 #include <unistd.h>
00032 #include <string.h>
00033 #include <stdio.h>
00034 #include <gdk/gdkkeysyms.h>
00035 #include <gtk/gtk.h>
00036 #include "about_dialog.h"
00037 #include "../globals.h"
00038
00039
00049 void
00050 on_about_dialog_close (GtkDialog *dialog,
00051 gpointer user_data)
00052 {
00053 GtkWidget *about_dialog = lookup_widget (GTK_WIDGET (dialog),
00054 "about_dialog");
00055 gtk_widget_destroy (about_dialog);
00056 }
00057
00058
00068 void
00069 on_about_dialog_destroy (GtkDialog *dialog,
00070 gpointer user_data)
00071 {
00072 GtkWidget *about_dialog = lookup_widget (GTK_WIDGET (dialog),
00073 "about_dialog");
00074 gtk_widget_destroy (about_dialog);
00075 }
00076
00077
00085 GtkWidget*
00086 create_about_dialog (void)
00087 {
00088 GtkWidget *about_dialog;
00089 const gchar *authors[] =
00090 {
00091 "Bert Timmerman <bert.timmerman@xs4all.nl>",
00092 NULL
00093 };
00094
00095 gchar *translators = "Bert Timmerman (nl)";
00096 GdkPixbuf *about_dialog_logo_pixbuf;
00097
00098 about_dialog = gtk_about_dialog_new ();
00099 gtk_widget_set_name (about_dialog, "about_dialog");
00100 gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (about_dialog), VERSION);
00101 gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (about_dialog), _("pcb-gfpw"));
00102 gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (about_dialog), _("(C) 2007, 2008, 2009, 2010 Bert Timmerman."));
00103 gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (about_dialog), _("The pcb FootPrintWizard generates footprint files for the pcb layout editor.\n(see http://pcb.gpleda.org)\n"));
00104 gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (about_dialog), _("This program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\nSee the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to:\nthe Free Software Foundation, Inc.,\n51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n"));
00105 gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (about_dialog), "http://www.xs4all.nl/~ljh4timm/pcb-fpw/pcb-fpw.html");
00106 gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about_dialog), authors);
00107 gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (about_dialog), translators);
00108 about_dialog_logo_pixbuf = create_pixbuf ("splash_wiz.xpm");
00109 gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (about_dialog), about_dialog_logo_pixbuf);
00110 g_signal_connect
00111 (
00112 (gpointer) about_dialog,
00113 "close",
00114 G_CALLBACK (on_about_dialog_close),
00115 NULL
00116 );
00117 g_signal_connect
00118 (
00119 (gpointer) about_dialog,
00120 "destroy",
00121 G_CALLBACK (on_about_dialog_destroy),
00122 NULL
00123 );
00124
00125 GLADE_HOOKUP_OBJECT_NO_REF (about_dialog, about_dialog, "about_dialog");
00126 return about_dialog;
00127 }
00128
00129
00130