SF.net SVN: geany-plugins:[343] trunk/geanyprj/src/project.c
yurand at users.sourceforge.net
yurand at xxxxx
Sat Dec 13 10:50:58 UTC 2008
Revision: 343
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=343&view=rev
Author: yurand
Date: 2008-12-13 10:50:58 +0000 (Sat, 13 Dec 2008)
Log Message:
-----------
GeanyPrj: Make geanyprj work on GLib < 2.12
Patch from Nick Treleaven
Modified Paths:
--------------
trunk/geanyprj/src/project.c
Modified: trunk/geanyprj/src/project.c
===================================================================
--- trunk/geanyprj/src/project.c 2008-12-13 10:50:36 UTC (rev 342)
+++ trunk/geanyprj/src/project.c 2008-12-13 10:50:58 UTC (rev 343)
@@ -197,6 +197,20 @@
return ret;
}
+#if !GLIB_CHECK_VERSION(2, 12, 0)
+static gboolean
+get_true(gpointer key, gpointer value, gpointer user_data)
+{
+ return TRUE;
+}
+
+static void
+g_hash_table_remove_all(GHashTable *hash_table)
+{
+ g_hash_table_foreach_remove(hash_table, get_true, NULL);
+}
+#endif
+
void
geany_project_regenerate_file_list(struct GeanyPrj *prj)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list