[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (5816f88a255e9a5f5e35684f4be5a45fe6adc091)
The branch, master has been updated
via 5816f88a255e9a5f5e35684f4be5a45fe6adc091 (commit)
from 38136711ec0a8cc9cd59825b32dacbf4dea704ed (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/toporouter.c | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
=================
Commit Messages
=================
commit 5816f88a255e9a5f5e35684f4be5a45fe6adc091
Author: anthonix <anthonix@anthonix-desktop.(none)>
Commit: anthonix <anthonix@anthonix-desktop.(none)>
Toporouter: Workaround for older GLib
:100644 100644 2a97d5c... 14f7b64... M src/toporouter.c
=========
Changes
=========
commit 5816f88a255e9a5f5e35684f4be5a45fe6adc091
Author: anthonix <anthonix@anthonix-desktop.(none)>
Commit: anthonix <anthonix@anthonix-desktop.(none)>
Toporouter: Workaround for older GLib
diff --git a/src/toporouter.c b/src/toporouter.c
index 2a97d5c..14f7b64 100644
--- a/src/toporouter.c
+++ b/src/toporouter.c
@@ -1037,6 +1037,28 @@ toporouter_draw_cluster(toporouter_t *r, drawing_context_t *dc, toporouter_clust
#endif
}
+#if GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION < 14
+GList *
+g_hash_table_get_keys (GHashTable *hash_table)
+{
+ gint i;
+ GList *retval;
+
+ g_return_val_if_fail (hash_table != NULL, NULL);
+
+ retval = NULL;
+ for (i = 0; i < hash_table->size; i++)
+ {
+ GHashNode *node = &hash_table->nodes [i];
+
+ if (node->key_hash > 1)
+ retval = g_list_prepend (retval, node->key);
+ }
+
+ return retval;
+}
+#endif
+
void
toporouter_draw_surface(toporouter_t *r, GtsSurface *s, char *filename, int w, int h, int mode, GSList *datas, int layer, GSList *candidatepoints)
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs