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

Diff of /psppire/src/callbacks.c

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

revision 1.5 by jmd, Sun Oct 30 10:12:27 2005 UTC revision 1.6 by jmd, Wed Nov 2 09:44:02 2005 UTC
# Line 46  psppire_reinitialise() Line 46  psppire_reinitialise()
46  {  {
47    GtkWidget *var_sheet;    GtkWidget *var_sheet;
48    GtkWidget *data_sheet;    GtkWidget *data_sheet;
49      GtkWidget *window1 ;
50      GtkWidget *var_type_dialog ;
51    
52    
53    if ( pspp_dictionary )    if ( pspp_dictionary )
54      g_object_unref(pspp_dictionary);      g_object_unref(pspp_dictionary);
# Line 58  psppire_reinitialise() Line 61  psppire_reinitialise()
61    
62    var_sheet = glade_xml_get_widget(xml, "variable_sheet");    var_sheet = glade_xml_get_widget(xml, "variable_sheet");
63    
   var_sheet_close_all(var_sheet);  
64    psppire_var_sheet_set_dictionary(var_sheet, pspp_dictionary);    psppire_var_sheet_set_dictionary(var_sheet, pspp_dictionary);
65    
66    data_sheet = glade_xml_get_widget(xml, "data_sheet");    data_sheet = glade_xml_get_widget(xml, "data_sheet");
67    psppire_data_sheet_clear(data_sheet);    psppire_data_sheet_clear(data_sheet);
68    psppire_data_sheet_set_dictionary(data_sheet, pspp_dictionary);    psppire_data_sheet_set_dictionary(data_sheet, pspp_dictionary);
69    
70    
71      window1 = glade_xml_get_widget(xml, "window1");
72      var_type_dialog = glade_xml_get_widget(xml, "var_type_dialog");
73    
74      gtk_window_set_transient_for    (var_type_dialog, window1);
75  }  }
76    
77  void  void
# Line 126  on_save1_activate                      ( Line 133  on_save1_activate                      (
133    if ( ! psppire_handle )    if ( ! psppire_handle )
134      recreate_file_handle(&psppire_handle);      recreate_file_handle(&psppire_handle);
135        
136      
137      GtkWidget *data_sheet = glade_xml_get_widget(xml, "data_sheet");
138    
139      psppire_create_system_file(data_sheet, pspp_dictionary, psppire_handle);
140    
141  }  }
142    
143    
# Line 137  on_save_as1_activate                   ( Line 149  on_save_as1_activate                   (
149    if ( ! psppire_handle )    if ( ! psppire_handle )
150      return ;      return ;
151    
152      GtkWidget *data_sheet = glade_xml_get_widget(xml, "data_sheet");
153    
154      psppire_create_system_file(data_sheet, pspp_dictionary, psppire_handle);
155  }  }
156    
157    

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

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