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

Diff of /aleader/editor/docgui.c

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

revision 1.6 by jpritikin, Wed Aug 13 13:50:48 2003 UTC revision 1.7 by jpritikin, Thu Aug 14 03:40:43 2003 UTC
# Line 343  _after_pathname_changed (LeadrDoc *tx) Line 343  _after_pathname_changed (LeadrDoc *tx)
343  { g_ptr_set_add (Whole->documents, tx); }  { g_ptr_set_add (Whole->documents, tx); }
344    
345  static void  static void
346  _doc_dispose (LeadrDoc *doc)  _doc_dispose (GPtrSet *documents, gpointer doc)
347  {  {
348    // possibly already removed    // possibly already removed
349    g_ptr_set_try_remove (Whole->documents, doc);    g_ptr_set_try_remove (documents, doc);
350  }  }
351    
352  static void  static void
# Line 357  _doc_ready (LeadrDoc *doc) Line 357  _doc_ready (LeadrDoc *doc)
357                      G_CALLBACK (_before_pathname_changed), NULL);                      G_CALLBACK (_before_pathname_changed), NULL);
358    g_signal_connect_after (doc, "set-pathname",    g_signal_connect_after (doc, "set-pathname",
359                            G_CALLBACK (_after_pathname_changed), NULL);                            G_CALLBACK (_after_pathname_changed), NULL);
360    g_signal_connect (doc, "dispose", G_CALLBACK (_doc_dispose), NULL);    g_object_weak_ref (G_OBJECT (doc), (GWeakNotify) _doc_dispose,
361                         Whole->documents);
362  }  }
363    
364  static void  static void
# Line 776  _dg_duplicate (DocGui *dg) Line 777  _dg_duplicate (DocGui *dg)
777  static void  static void
778  _transcript_revert (DocGui *dg)  _transcript_revert (DocGui *dg)
779  {  {
   LeadrDoc *old = dg->model;  
   DocGui *dg = doc_gui_find (old);  
780    g_return_if_fail (dg);    g_return_if_fail (dg);
781      LeadrDoc *old = dg->model;
782        
783    const gchar *pathname = leadr_doc_get_pathname (old);    const gchar *pathname = leadr_doc_get_pathname (old);
784    

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

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