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

gEDA-cvs: CVS update: o_net_basic.c



  User: pcjc2   
  Date: 06/12/21 15:09:47

  Modified:    .        o_net_basic.c o_selection.c
  Log:
  * src/o_attrib.c, src/o_buffer.c, src/o_complex.c, src/o_copy.c,
  
  src/o_misc.c, src/o_select.c, src/o_text.c: Update interface of
  
  o_selection_add() to match o_selection_remove(). Pass the GList by
  
  reference so head can be updated.
  
  
  
  
  Revision  Changes    Path
  1.34      +2 -4      eda/geda/gaf/libgeda/src/o_net_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_net_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_net_basic.c,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -b -r1.33 -r1.34
  --- o_net_basic.c	17 Dec 2006 04:14:07 -0000	1.33
  +++ o_net_basic.c	21 Dec 2006 20:09:47 -0000	1.34
  @@ -925,9 +925,7 @@
             if (reselect_new == TRUE) {
               o_selection_remove(&(w_current->page_current->selection_list), 
                                  object);
  -
  -            w_current->page_current->selection_list = 
  -	      o_selection_add(w_current->page_current->selection_list, 
  +	    o_selection_add(&(w_current->page_current->selection_list), 
   			      object);
             }
   				
  
  
  
  1.9       +3 -4      eda/geda/gaf/libgeda/src/o_selection.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_selection.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_selection.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- o_selection.c	17 Dec 2006 04:14:07 -0000	1.8
  +++ o_selection.c	21 Dec 2006 20:09:47 -0000	1.9
  @@ -49,14 +49,13 @@
   /*! \brief Selects the given object and adds it to the selection list
    *  \par Selects the given object and does the needed work to make the
    *  object visually selected.
  - *  \param [in] head Selection list
  + *  \param [in] head Pointer to the selection list
    *  \param [in] o_selected Object to select.
  - *  \returns a pointer to the selection list, with the object added.
    */
  -GList *o_selection_add(GList *head, OBJECT *o_selected)
  +void o_selection_add(GList **head, OBJECT *o_selected)
   {
     o_selection_select(o_selected, SELECT_COLOR);
  -  return (g_list_append(head, o_selected));
  +  *head = g_list_append(*head, o_selected);
   }
   
   /*! \brief Prints the given selection list.
  
  
  


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