/** @file sample for a graphical application closing its console in
 * MS Windows
 *
 * Last CVS checkin:
 * $Date: $
 * $Author: scheff $
 */

/**************************************************************************/

// Gnome header:
#include <gtkmm/main.h>
#include <gtkmm/window.h>

#ifdef WIN32
// Win32 header:
#include <windows.h>
#endif // WIN32

/**************************************************************************/

/** provides the main function of application.
 *
 * @param argc number of command line arguments
 * @param argv pointer to array of pointers to strings with command line
 *        arguments
 * @return 0 ... application exited regularly\n
 *         else ... execution of application aborted
 */
int main(int argc, char *argv[])
{
#ifdef WIN32
  FreeConsole();
#endif // WIN32
  Gtk::Main(argc, argv).run(Gtk::Window());
  // done
  return 0;
}

