#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>

#include "interface.h"
#include "support.h"

/*#ifdef G_OS_WIN32
gchar *package_prefix;
gchar *package_data_dir;
gchar *package_locale_dir;
#define PACKAGE NULL
#endif
*/
sat *filecontent;

int main (int argc, char *argv[]) {
  sat *prevsat;

  GtkWidget *PICTracker_Prog;

  gchar *pixmap_dir;
/*#ifdef G_OS_WIN32
  package_prefix = g_win32_get_package_installation_directory (NULL, NULL);
  package_data_dir = g_build_filename (package_prefix, "share", NULL);
  package_locale_dir =
    g_build_filename (package_prefix, "share", "locale", NULL);
#endif

#ifdef ENABLE_NLS
  bindtextdomain (GETTEXT_PACKAGE, package_locale_dir);
  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
  textdomain (GETTEXT_PACKAGE);
#endif
*/
  gtk_set_locale ();
  gtk_init (&argc, &argv);

/*  pixmap_dir = g_build_filename (package_data_dir, PACKAGE, "pixmaps", NULL);
  add_pixmap_directory (pixmap_dir);
  g_free (pixmap_dir);


  /*
   * The following code was added by Glade to create one of each component
   * (except popup menus), just so that you see something after building
   * the project. Delete any components that you don't want shown initially.
   */
  PICTracker_Prog = create_PICTracker_Prog ();
  gtk_widget_show (PICTracker_Prog);
  g_signal_connect ((gpointer) PICTracker_Prog, "destroy",G_CALLBACK (gtk_main_quit), NULL);

/*  gtk_combo_box_set_active(GTK_COMBO_BOX(SELECT_Port),0);
  gtk_combo_box_set_active(GTK_COMBO_BOX(SELECT_Speed),3);
*/
  filecontent=NULL;

  gtk_main ();

  while(filecontent!=NULL) {
      prevsat=filecontent->prev;
      free(filecontent);
      filecontent=prevsat;
  }
/*
#ifdef G_OS_WIN32
  g_free (package_prefix);
  g_free (package_data_dir);
  g_free (package_locale_dir);
#endif
*/
  return 0;
}
/*
#ifdef _MSC_VER
#include <windows.h>

int WINAPI
WinMain (HINSTANCE hInstance,
	 HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
  return main (__argc, __argv);
}
#endif
*/
