/[aleader]/aleader/editor/editor_transcript.c
ViewVC logotype

Diff of /aleader/editor/editor_transcript.c

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

revision 1.13 by jpritikin, Wed Aug 6 16:55:51 2003 UTC revision 1.14 by jpritikin, Wed Aug 13 13:50:48 2003 UTC
# Line 932  _t_calc_text_tags (GtkAdjustment *adj, A Line 932  _t_calc_text_tags (GtkAdjustment *adj, A
932  { app_ip_calc_text_tags (tx->tagtable, adj->value); }  { app_ip_calc_text_tags (tx->tagtable, adj->value); }
933    
934  static void  static void
 _exam_replace_transcript (AppTranscript *tx, gpointer from, AppTranscript *to)  
 {  
   AppTranscript *orig_to;  
   g_object_get (tx, "to", &orig_to, NULL);  
     
   if (orig_to == from)  
     g_object_set (tx, "to", to, NULL);  
 }  
   
 static void  
935  exam_exemplar_changed (AppTranscript *tx)  exam_exemplar_changed (AppTranscript *tx)
936  {  {
937    AppTranscript *to;    AppTranscript *to;
# Line 974  editor_transcript_ready (AppTranscript * Line 964  editor_transcript_ready (AppTranscript *
964    if (tx->edata) {    if (tx->edata) {
965      app_exam_new (tx);      app_exam_new (tx);
966    
     // release-transcript can't work because we hold a ref-count  
     //  
     g_signal_connect_object  
       (Whole, "replace-transcript",  
        G_CALLBACK (_exam_replace_transcript), tx, G_CONNECT_SWAPPED);  
   
967      g_signal_connect (tx, "notify::to",      g_signal_connect (tx, "notify::to",
968                        G_CALLBACK (exam_exemplar_changed), NULL);                        G_CALLBACK (exam_exemplar_changed), NULL);
969    }    }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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