Update the interface to o_selection_print_all() to match other
o_selection*() functions.

 gschem/src/o_copy.c         |    3 ---
 gschem/src/o_find.c         |    3 ---
 gschem/src/x_event.c        |    2 +-
 libgeda/include/prototype.h |    2 +-
 libgeda/src/o_selection.c   |    6 +++---
 5 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/gschem/src/o_copy.c b/gschem/src/o_copy.c
index 2aaa7a4..64bc0de 100644
--- a/gschem/src/o_copy.c
+++ b/gschem/src/o_copy.c
@@ -517,9 +517,6 @@ void o_copy_end(TOPLEVEL *w_current)
                            &(w_current->page_current->selection_list));
   w_current->page_current->selection_list = NULL;
   w_current->page_current->selection_list = temp_list;
-#if DEBUG
-  o_selection_print_all(w_current->page_current->selection_list);
-#endif
 
   w_current->page_current->CHANGED = 1;
 
diff --git a/gschem/src/o_find.c b/gschem/src/o_find.c
index 59f3fde..c88c134 100644
--- a/gschem/src/o_find.c
+++ b/gschem/src/o_find.c
@@ -111,9 +111,6 @@ gboolean o_find_object(TOPLEVEL *w_current, int screen_x, 
int screen_y,
      the caller allows it */   
   if (change_selection && (!w_current->SHIFTKEY)) {
 
-#if DEBUG
-    o_selection_print_all( w_current->page_current->selection_list);
-#endif
     o_select_run_hooks(w_current, NULL, 2); 
     o_selection_unselect_list (w_current,
                               &(w_current->page_current->selection_list));
diff --git a/gschem/src/x_event.c b/gschem/src/x_event.c
index 2da3c9f..0bb32f4 100644
--- a/gschem/src/x_event.c
+++ b/gschem/src/x_event.c
@@ -160,7 +160,7 @@ gint x_event_button_pressed(GtkWidget *widget, 
GdkEventButton *event,
   printf("event state: %d \n", event->state);
   printf("w_current state: %d \n", w_current->event_state);
   printf("Selection is:\n");
-  o_selection_print_all( w_current->page_current->selection_list);
+  o_selection_print_all(&(w_current->page_current->selection_list));
   printf("\n");
 #endif
 
diff --git a/libgeda/include/prototype.h b/libgeda/include/prototype.h
index 5a63175..4b6a781 100644
--- a/libgeda/include/prototype.h
+++ b/libgeda/include/prototype.h
@@ -434,7 +434,7 @@ void o_pin_update_whichend(TOPLEVEL *w_current, OBJECT 
*object_list, int num_pin
 
 /* o_selection.c */
 void o_selection_add(GList **head, OBJECT *o_selected);
-void o_selection_print_all( GList *head );
+void o_selection_print_all(const GList **head);
 void o_selection_select(OBJECT *object, int color); // DEPRECATED
 void o_selection_unselect(OBJECT *object);          // DEPRECATED
 void o_selection_remove(GList **head, OBJECT *o_selected);
diff --git a/libgeda/src/o_selection.c b/libgeda/src/o_selection.c
index ece8f3b..a8cda8f 100644
--- a/libgeda/src/o_selection.c
+++ b/libgeda/src/o_selection.c
@@ -60,14 +60,14 @@ void o_selection_add(GList **head, OBJECT *o_selected)
 
 /*! \brief Prints the given selection list.
  *  \par Prints the given selection list.
- *  \param [in] head Selection list to print.
+ *  \param [in] head Pointer to selection list to print.
  *
  */
-void o_selection_print_all( GList *head )
+void o_selection_print_all(const GList **head)
 {
   GList *s_current;
 
-  s_current = head;
+  s_current = *head;
 
   printf("START printing selection ********************\n");
   while(s_current != NULL) {


_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to