Author: abrander
Date: 2010-01-30 17:24:13 +0100 (Sat, 30 Jan 2010)
New Revision: 3121

Modified:
   branches/rawstudio-ng-color/librawstudio/rs-filter-param.c
   branches/rawstudio-ng-color/librawstudio/rs-filter-param.h
Log:
Added rs_filter_param_delete().

Modified: branches/rawstudio-ng-color/librawstudio/rs-filter-param.c
===================================================================
--- branches/rawstudio-ng-color/librawstudio/rs-filter-param.c  2010-01-30 
15:01:25 UTC (rev 3120)
+++ branches/rawstudio-ng-color/librawstudio/rs-filter-param.c  2010-01-30 
16:24:13 UTC (rev 3121)
@@ -144,6 +144,20 @@
 }
 
 /**
+ * Delete a property from a RSFilterParam
+ * @param filter_param A RSFilterParam
+ * @param name The name of the property
+ * @return TRUE if the property was found, FALSE otherwise
+ */
+gboolean
+rs_filter_param_delete(RSFilterParam *filter_param, const gchar *name)
+{
+       g_assert(RS_IS_FILTER_PARAM(filter_param));
+
+       return g_hash_table_remove(filter_param->properties, name);
+}
+
+/**
  * Set a string property
  * @param filter_param A RSFilterParam
  * @param name The name of the property

Modified: branches/rawstudio-ng-color/librawstudio/rs-filter-param.h
===================================================================
--- branches/rawstudio-ng-color/librawstudio/rs-filter-param.h  2010-01-30 
15:01:25 UTC (rev 3120)
+++ branches/rawstudio-ng-color/librawstudio/rs-filter-param.h  2010-01-30 
16:24:13 UTC (rev 3121)
@@ -50,6 +50,15 @@
 rs_filter_param_clone(RSFilterParam *destination, const RSFilterParam *source);
 
 /**
+ * Delete a property from a RSFilterParam
+ * @param filter_param A RSFilterParam
+ * @param name The name of the property
+ * @return TRUE if the property was found, FALSE otherwise
+ */
+gboolean
+rs_filter_param_delete(RSFilterParam *filter_param, const gchar *name);
+
+/**
  * Set a string property
  * @param filter_param A RSFilterParam
  * @param name The name of the property


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to