/[pspp]/psppire/src/main.c
ViewVC logotype

Diff of /psppire/src/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by jmd, Sun Oct 30 03:29:13 2005 UTC revision 1.5 by jmd, Sun Oct 30 10:12:27 2005 UTC
# Line 28  Line 28 
28  #endif  #endif
29    
30  #include <gtk/gtk.h>  #include <gtk/gtk.h>
31    #include <gtk/gtk.h>
32    #include <glade/glade.h>
33    #include "callbacks.h"
34    
 #include "interface.h"  
 #include "support.h"  
35    
36    GladeXML *xml;
37    
38  GtkWindow *window1;  int main(int argc, char *argv[]) {
39    
40    
41  int    gtk_init(&argc, &argv);
42  main (int argc, char *argv[])    glade_init();
 {  
43    
44    gtk_set_locale ();    /* load the interface */
45    gtk_init (&argc, &argv);    xml = glade_xml_new("psppire.glade", NULL, NULL);
46    
47    add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");    if ( !xml )
48        {
49          g_print("Is psppire.glade in current directory\n");
50          return 1;
51        }
52    
53    window1 = create_window1 ();    /* connect the signals in the interface */
54      glade_xml_signal_autoconnect(xml);
55    
56    psppire_reinitialise();    psppire_reinitialise();
57    
58    gtk_widget_show (window1);    /* start the event loop */
59      gtk_main();
   gtk_main ();  
60    return 0;    return 0;
61  }  }
62    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26