本文整理汇总了C++中Tetris::getWidget方法的典型用法代码示例。如果您正苦于以下问题:C++ Tetris::getWidget方法的具体用法?C++ Tetris::getWidget怎么用?C++ Tetris::getWidget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tetris
的用法示例。
在下文中一共展示了Tetris::getWidget方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
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;
}