Logo Search packages:      
Sourcecode: packeth version File versions  Download package

main.c

/*
 * Initial main.c file generated by Glade. Edit as required.
 * Glade will not overwrite this file.
 */

#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <gtk/gtk.h>

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

int
main (int argc, char *argv[])
{
  GtkWidget *window1;
/*  GtkWidget *fileselection1;
  GtkWidget *fileselection2;
  GtkWidget *sel1_dialog;
  GtkWidget *interface_dialog;
  GtkWidget *error_dialog;
  GtkWidget *udp_payload_dialog;
  GtkWidget *fileselection3;
  GtkWidget *about_dialog;
  GtkWidget *tos_dialod;
  GtkWidget *fragmentation_dialog; */

#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);

//  add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
  add_pixmap_directory ("pixmaps");

  /*
   * 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.
   */
  window1 = create_window1 ();
  gtk_widget_show (window1);
/*  fileselection1 = create_fileselection1 ();
  gtk_widget_show (fileselection1);
  fileselection2 = create_fileselection2 ();
  gtk_widget_show (fileselection2);
  sel1_dialog = create_sel1_dialog ();
  gtk_widget_show (sel1_dialog);
  interface_dialog = create_interface_dialog ();
  gtk_widget_show (interface_dialog);
  error_dialog = create_error_dialog ();
  gtk_widget_show (error_dialog);
  udp_payload_dialog = create_udp_payload_dialog ();
  gtk_widget_show (udp_payload_dialog);
  fileselection3 = create_fileselection3 ();
  gtk_widget_show (fileselection3);
  about_dialog = create_about_dialog ();
  gtk_widget_show (about_dialog);
  tos_dialod = create_tos_dialod ();
  gtk_widget_show (tos_dialod);
  fragmentation_dialog = create_fragmentation_dialog ();
  gtk_widget_show (fragmentation_dialog); */

  if( !g_thread_supported() ) {
            g_thread_init(NULL);
            gdk_threads_init();                   // Called to initialize internal mutex "gdk_threads_mutex".
            //printf("g_thread supported\n");
  }
  else {
            printf("g_thread NOT supported\n");
  }

  gtk_main ();
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index