[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: o_misc.c



  User: pcjc2   
  Date: 06/12/21 15:32:11

  Modified:    .        o_misc.c
  Log:
  o_selection_select() and o_selection_unselect() are both low-level
  
  functions that should only be used internally to libgeda.
  
  
  
  This patch removes the use of the above functions from applications
  
  which use libgeda, and marks them as 'deprecated' in libgeda's
  
  prototype.h. Patch from Peter Brett.
  
  
  
  
  
  
  Revision  Changes    Path
  1.39      +5 -3      eda/geda/gaf/gschem/src/o_misc.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_misc.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_misc.c,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -b -r1.38 -r1.39
  --- o_misc.c	21 Dec 2006 20:11:11 -0000	1.38
  +++ o_misc.c	21 Dec 2006 20:32:11 -0000	1.39
  @@ -1213,8 +1213,9 @@
     o_erase_single (w_current, o_current);
     /* delete its connections */
     s_conn_remove_complex (w_current, o_current);
  -  /* and unselect but keep it in the selection list */
  -  o_selection_unselect (o_current);
  +  /* and unselect it */
  +  o_selection_remove (&(w_current->page_current->selection_list),
  +		      o_current);
   
     /* build a temporary list and add a complex to this list */
     tmp_list = s_basic_init_object ("update component");
  @@ -1281,7 +1282,8 @@
     s_delete_list_fromstart (w_current, tmp_list);
     /* reconnect, re-select and redraw */
     s_conn_update_complex (w_current, o_current->complex->prim_objs);
  -  o_selection_select (o_current, SELECT_COLOR);
  +  o_selection_add (&(w_current->page_current->selection_list),
  +		   o_current);
     o_redraw_single (w_current, o_current);
   
     if (is_embedded) {
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs