|
Here you are the source code extracted from interface.c
I did not make any callbacks so the other source code is useless here.The interesting thing is that all other buttons work fine but only this "close" button does not work.
GtkWidget*
create_aboutdialog (void)
{
GtkWidget *aboutdialog;
const gchar *authors[] = {
"Marcel M. Weber",
"Svetoslav P. Chukov",
"Testing: Gunter Ohmert",
NULL
};
/* TRANSLATORS: Replace this string with your names, one name per line. */
gchar *translators = _("translator-credits");
aboutdialog = gtk_about_dialog_new ();
gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (aboutdialog), VERSION);
gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (aboutdialog), _("GliBench"));
gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (aboutdialog), _("Copyright (C) 2007\nMarcel M. Weber <apw@rossby.metr.ou.edu>\n"));
gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (aboutdialog), _("GliBench is benchmark program to meassure your computer performance.\n"));
gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (aboutdialog), _("This program is free software; you can redistribute it and/or modify it\nunder the terms of the GNU General Public License as published by the Free\nSoftware Foundation; either version 2 of the License, or (at your option)\nany later version.\nThis program is distributed in the hope that it will be useful, but WITHOUT\nANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\nFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\nmore details.\nYou should have received a copy of the GNU General\n Public License along\nwith this program; if not, write to the Free Software Foundation, Inc., 59\nTemple Place, Suite 330, Boston, MA 02111-1307 USA\n"));
gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (aboutdialog), "http://www.glibench.sourceforge.net/");
gtk_about_dialog_set_website_label (GTK_ABOUT_DIALOG (aboutdialog), _("GliBench Developer's Site"));
gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (aboutdialog), authors);
gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (aboutdialog), translators);
g_signal_connect ((gpointer) aboutdialog, "destroy",
G_CALLBACK (on_aboutdialog_destroy),
NULL);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (aboutdialog, aboutdialog, "aboutdialog");
return aboutdialog;
}
|