~ubuntu-branches/ubuntu/intrepid/packeth/intrepid

« back to all changes in this revision

Viewing changes to main.c

  • Committer: Bazaar Package Importer
  • Author(s): David Paleino
  • Date: 2008-02-21 10:42:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080221104200-xsp0zp1ujbsqsj7a
Tags: 1.6-1
* New upstream release
* debian/control:
  - "Ethernet" not capitalized in descriptions (Closes: #466497)
  - debhelper dependency bumped to 6 (also debian/compat)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Initial main.c file generated by Glade. Edit as required.
3
 
 * Glade will not overwrite this file.
4
 
 */
5
 
 
6
 
#ifdef HAVE_CONFIG_H
7
 
#  include <config.h>
8
 
#endif
9
 
 
10
 
#include <gtk/gtk.h>
11
 
 
12
 
#include "interface.h"
13
 
#include "support.h"
14
 
 
15
 
int
16
 
main (int argc, char *argv[])
17
 
{
18
 
  GtkWidget *window1;
19
 
/*  GtkWidget *fileselection1;
20
 
  GtkWidget *fileselection2;
21
 
  GtkWidget *sel1_dialog;
22
 
  GtkWidget *interface_dialog;
23
 
  GtkWidget *error_dialog;
24
 
  GtkWidget *udp_payload_dialog;
25
 
  GtkWidget *fileselection3;
26
 
  GtkWidget *about_dialog;
27
 
  GtkWidget *tos_dialod;
28
 
  GtkWidget *fragmentation_dialog; */
29
 
 
30
 
#ifdef ENABLE_NLS
31
 
  bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
32
 
  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
33
 
  textdomain (GETTEXT_PACKAGE);
34
 
#endif
35
 
 
36
 
  gtk_set_locale ();
37
 
  gtk_init (&argc, &argv);
38
 
 
39
 
//  add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
40
 
  add_pixmap_directory ("pixmaps");
41
 
 
42
 
  /*
43
 
   * The following code was added by Glade to create one of each component
44
 
   * (except popup menus), just so that you see something after building
45
 
   * the project. Delete any components that you don't want shown initially.
46
 
   */
47
 
  window1 = create_window1 ();
48
 
  gtk_widget_show (window1);
49
 
/*  fileselection1 = create_fileselection1 ();
50
 
  gtk_widget_show (fileselection1);
51
 
  fileselection2 = create_fileselection2 ();
52
 
  gtk_widget_show (fileselection2);
53
 
  sel1_dialog = create_sel1_dialog ();
54
 
  gtk_widget_show (sel1_dialog);
55
 
  interface_dialog = create_interface_dialog ();
56
 
  gtk_widget_show (interface_dialog);
57
 
  error_dialog = create_error_dialog ();
58
 
  gtk_widget_show (error_dialog);
59
 
  udp_payload_dialog = create_udp_payload_dialog ();
60
 
  gtk_widget_show (udp_payload_dialog);
61
 
  fileselection3 = create_fileselection3 ();
62
 
  gtk_widget_show (fileselection3);
63
 
  about_dialog = create_about_dialog ();
64
 
  gtk_widget_show (about_dialog);
65
 
  tos_dialod = create_tos_dialod ();
66
 
  gtk_widget_show (tos_dialod);
67
 
  fragmentation_dialog = create_fragmentation_dialog ();
68
 
  gtk_widget_show (fragmentation_dialog); */
69
 
 
70
 
  if( !g_thread_supported() ) {
71
 
            g_thread_init(NULL);
72
 
            gdk_threads_init();                   // Called to initialize internal mutex "gdk_threads_mutex".
73
 
            //printf("g_thread supported\n");
74
 
  }
75
 
  else {
76
 
            printf("g_thread NOT supported\n");
77
 
  }
78
 
 
79
 
  gtk_main ();
80
 
  return 0;
81
 
}
82