/[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.8 by jmd, Thu Nov 3 05:42:48 2005 UTC revision 1.9 by jmd, Sat Nov 12 07:52:06 2005 UTC
# Line 1  Line 1 
1  /*  /*
2      PSPPIRE --- A Graphical User Interface for PSPP      PSPPIRE --- A Graphical User Interface for PSPP
3      Copyright (C) 2004  Free Software Foundation      Copyright (C) 2004, 2005  Free Software Foundation
4      Written by John Darrington      Written by John Darrington
5    
6      This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
# Line 29  Line 29 
29  #include <gtk/gtk.h>  #include <gtk/gtk.h>
30  #include <glade/glade.h>  #include <glade/glade.h>
31  #include "callbacks.h"  #include "callbacks.h"
32    #include "pspp-dict.h"
33    
34    
35    #include "data_sheet.h"
36    #include "var_sheet.h"
37    
38  GladeXML *xml;  GladeXML *xml;
39    
# Line 37  main(int argc, char *argv[]) Line 42  main(int argc, char *argv[])
42  {  {
43    
44    gtk_init(&argc, &argv);    gtk_init(&argc, &argv);
45    
46    glade_init();    glade_init();
47    
48    /* load the interface */    /* load the interface */
# Line 51  main(int argc, char *argv[]) Line 57  main(int argc, char *argv[])
57    /* connect the signals in the interface */    /* connect the signals in the interface */
58    glade_xml_signal_autoconnect(xml);    glade_xml_signal_autoconnect(xml);
59    
60    psppire_reinitialise();    GtkWidget *var_sheet  = glade_xml_get_widget(xml, "variable_sheet");
61      GtkWidget *data_sheet = glade_xml_get_widget(xml, "data_sheet");
62    
63      PSPP_Dict *d = psppire_var_sheet_get_dictionary(var_sheet);
64      
65      psppire_data_sheet_set_dictionary(data_sheet, d);
66    
67    
68    /* start the event loop */    /* start the event loop */
69    gtk_main();    gtk_main();

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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