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