Example #1
0
int main(int argc, char *argv[])
{

  app_init(argc, argv);

  if (!app_is_interactive())
    return 0;

  toolbox_show();

  app_splash_done();
  gtk_main ();

  return 0;
}
Example #2
0
int _stdcall
WinMain (struct HINSTANCE__ *hInstance,
	 struct HINSTANCE__ *hPrevInstance,
	 char               *lpszCmdLine,
	 int                 nCmdShow)
{
  dia_redirect_console ();
  
  app_init (__argc, __argv);

  if (!app_is_interactive())
    return 0;

  toolbox_show();

  app_splash_done();
  
  gtk_main ();

  return 0;
}