138 |
} |
} |
139 |
|
|
140 |
|
|
141 |
|
/** |
142 |
|
* pspp_dict_new_from_dict: |
143 |
|
* @returns: a new #PSPP_Dict object |
144 |
|
* |
145 |
|
* Creates a new #PSPP_Dict. |
146 |
|
*/ |
147 |
|
PSPP_Dict* |
148 |
|
pspp_dict_new_from_dict (struct dictionary *d) |
149 |
|
{ |
150 |
|
PSPP_Dict *new_dict = g_object_new (G_TYPE_PSPP_DICT, NULL); |
151 |
|
new_dict->dict = d; |
152 |
|
return new_dict; |
153 |
|
} |
154 |
|
|
155 |
|
|
156 |
void |
void |
157 |
pspp_dict_delete_var(PSPP_Dict *d, gint idx) |
pspp_dict_delete_var(PSPP_Dict *d, gint idx) |
158 |
{ |
{ |
235 |
{ |
{ |
236 |
g_signal_emit(d, signal[VARIABLE_CHANGED], 0, idx); |
g_signal_emit(d, signal[VARIABLE_CHANGED], 0, idx); |
237 |
} |
} |
238 |
|
|
239 |
|
|
240 |
|
|
241 |
|
/* Clears the contents of D */ |
242 |
|
void |
243 |
|
pspp_dict_clear(PSPP_Dict *d) |
244 |
|
{ |
245 |
|
dict_clear(d->dict); |
246 |
|
} |