Move wx specific code inside proper ifdef and fixup wx

related menu code indentation.
This commit is contained in:
riccardom 2009-12-28 11:25:13 +00:00
parent 5e8af885e1
commit 99d2e8baa9
1 changed files with 4 additions and 2 deletions

View File

@ -292,8 +292,8 @@ static const GtkActionEntry action_entries[] = {
{ "pause", "gtk-media-pause", "_Pause", "<Ctrl>p", NULL, Pause },
{ "reset", "gtk-refresh", "Re_set", NULL, NULL, Reset },
#ifdef HAVE_WX
//for some reason the menu item doesnt show up....
{ "view3d", NULL, "View 3d", NULL, NULL, View3d },
//for some reason the menu item doesnt show up....
{ "view3d", NULL, "View 3d", NULL, NULL, View3d },
#endif
{ "FrameskipMenu", NULL, "_Frameskip" },
{ "LayersMenu", NULL, "_Layers" },
@ -974,11 +974,13 @@ static void OpenRecent(GtkRecentChooser *chooser, gpointer user_data)
}
#endif
#ifdef HAVE_WX
static void View3d()
{
driver->VIEW3D_Init();
driver->view3d->Launch();
}
#endif
static void Reset()
{