This patch contains the required updates to the new autonumber code required in order to compile gschem with the new GList selection lists.
390baa1e81c3eaa9dd77f6bf61de725b80a4ad05 glist-gschem-autonumber.patch -- Fisher Society committee http://tinyurl.com/o39w2 CUSBC novices, match and league secretary http://tinyurl.com/mwrc9 CU Spaceflight http://tinyurl.com/ognu2 v3sw6YChw7$ln3pr6$ck3ma8u7+Lw3+2m0l7Ci6e4+8t4Gb8en6g6Pa2Xs5Mr4p4 hackerkey.com peter-b.co.uk
pgpwhQWRL0LPr.pgp
Description: PGP signature
diff --git a/gschem/src/x_autonumber.c b/gschem/src/x_autonumber.c
index 0c83e6d..e19bbcb 100644
--- a/gschem/src/x_autonumber.c
+++ b/gschem/src/x_autonumber.c
@@ -582,7 +582,8 @@ void autonumber_remove_number(AUTONUMBER_TEXT * autotext, OBJECT *o_current)
if (slot_str != NULL && o_slot != NULL) {
g_free(slot_str);
/* delete the slot attribute */
- o_selection_remove (autotext->toplevel->page_current->selection2_head, o_slot);
+ GList *selection = autotext->toplevel->page_current->selection_list;
+ o_selection_remove (&selection, o_slot);
o_delete_text (autotext->toplevel, o_slot);
/* redraw the slotted object. So that the pinnumbers appear as with slot=1 */
/* --> No: should be done by o_delete_text as several dialog use it. */
_______________________________________________ geda-dev mailing list [email protected] http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev
