747 |
return LEADR_DOC (model); |
return LEADR_DOC (model); |
748 |
} |
} |
749 |
|
|
750 |
void |
static void |
751 |
app_transcript_open_exemplar (AppTranscript *tx, GError **err) |
_tx_open_exemplar (LeadrDoc *doc, |
752 |
|
GPtrSet *documents, |
753 |
|
GError **err) |
754 |
{ |
{ |
755 |
g_return_if_fail (tx); |
AppTranscript *tx = APP_TRANSCRIPT (doc); |
756 |
g_return_if_fail (tx->edata); |
g_return_if_fail (tx->edata); |
757 |
g_return_if_fail (tx->edata->to == NULL); |
g_return_if_fail (tx->edata->to == NULL); |
758 |
|
|
759 |
gchar *to_path; |
gchar *to_path; |
760 |
g_object_get (tx, "to-path", &to_path, NULL); |
g_object_get (tx, "to-path", &to_path, NULL); |
761 |
LeadrDoc *model = |
LeadrDoc *model = |
762 |
leadr_doc_open (to_path, to_path, err); |
leadr_doc_ref_or_open (documents, to_path, err); |
763 |
if (model) { |
if (model) { |
764 |
if (IS_APP_TRANSCRIPT (model)) |
if (IS_APP_TRANSCRIPT (model)) |
765 |
g_object_set (tx, "to", model, NULL); |
g_object_set (tx, "to", model, NULL); |
2274 |
o_class->finalize = app_transcript_finalize; |
o_class->finalize = app_transcript_finalize; |
2275 |
|
|
2276 |
LeadrDocClass *doc_class = LEADR_DOC_CLASS (klass); |
LeadrDocClass *doc_class = LEADR_DOC_CLASS (klass); |
2277 |
doc_class->is_exam = _tx_is_exam; |
doc_class->is_exam = _tx_is_exam; |
2278 |
doc_class->is_scratch = _tx_is_scratch; |
doc_class->is_scratch = _tx_is_scratch; |
2279 |
doc_class->stringify = _tx_stringify; |
doc_class->stringify = _tx_stringify; |
2280 |
|
doc_class->open_exemplar = _tx_open_exemplar; |
2281 |
|
|
2282 |
klass->name_changed = real_name_changed; |
klass->name_changed = real_name_changed; |
2283 |
klass->ip_set_span = _transcript_real_set_span; |
klass->ip_set_span = _transcript_real_set_span; |