int Tetris::gameAbout(GtkAction *action, void *d) { Tetris *t = (Tetris*) d; const gchar * const authors[] = { "Gnome Games Team", NULL }; const gchar * const documenters[] = { "Angela Boyle", NULL }; gchar *license = games_get_license (_("Gnometris")); gtk_show_about_dialog (GTK_WINDOW (t->getWidget()), #if GTK_CHECK_VERSION (2, 11, 0) "program-name", _("Gnometris"), #else "name", _("Gnometris"), #endif "version", VERSION, "comments", _("A classic game of fitting falling blocks together.\n\nGnometris is a part of GNOME Games."), "copyright", "Copyright \xc2\xa9 1999 J. Marcin Gorycki, 2000-2008 Others", "license", license, "website-label", _("GNOME Games web site"), "authors", authors, "documenters", documenters, "translator-credits", _("translator-credits"), "logo-icon-name", "gnome-gnometris", "website", "http://www.gnome.org/projects/gnome-games/", "wrap-license", TRUE, NULL); g_free (license); return TRUE; }
int Tetris::gameHelp(GtkAction *action, void *data) { Tetris *t = (Tetris*) data; GError *error = NULL; gtk_show_uri (gtk_widget_get_screen (t->getWidget ()), "help:gnometris", gtk_get_current_event_time (), &error); if (error) g_warning ("Failed to show help: %s", error->message); g_clear_error (&error); return TRUE; }