gegl r1926 - in trunk: . gegl/operation
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r1926 - in trunk: . gegl/operation
- Date: Mon, 28 Jan 2008 16:07:23 +0000 (GMT)
Author: neo
Date: Mon Jan 28 16:07:23 2008
New Revision: 1926
URL: http://svn.gnome.org/viewvc/gegl?rev=1926&view=rev
Log:
2008-01-28 Sven Neumann <sven gimp org>
* gegl/operation/gegl-extension-handler.c: use a
value_destroy_func to manage the values stored in the hash-table.
Modified:
trunk/ChangeLog
trunk/gegl/operation/gegl-extension-handler.c
Modified: trunk/gegl/operation/gegl-extension-handler.c
==============================================================================
--- trunk/gegl/operation/gegl-extension-handler.c (original)
+++ trunk/gegl/operation/gegl-extension-handler.c Mon Jan 28 16:07:23 2008
@@ -27,7 +27,8 @@
const gchar *handler)
{
if (!handlers)
- handlers = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
+ handlers = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
+
g_hash_table_insert (handlers, g_strdup (extension), g_strdup (handler));
}
@@ -38,9 +39,11 @@
if (!handlers)
return NULL;
+
handler = g_hash_table_lookup (handlers, extension);
if (handler)
return handler;
+
return "magick-load";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]