[Rawstudio-commit] r2191 - trunk/plugins/crop

Anders Brander anders at brander.dk
Sun Feb 1 01:21:32 CET 2009


Author: abrander
Date: 2009-02-01 01:21:31 +0100 (Sun, 01 Feb 2009)
New Revision: 2191

Modified:
   trunk/plugins/crop/crop.c
Log:
Fixed get() in RSCrop.

Modified: trunk/plugins/crop/crop.c
===================================================================
--- trunk/plugins/crop/crop.c	2009-01-31 23:52:08 UTC (rev 2190)
+++ trunk/plugins/crop/crop.c	2009-02-01 00:21:31 UTC (rev 2191)
@@ -115,11 +115,12 @@
 static void
 get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
 {
+	RSCrop *crop = RS_CROP(object);
+
 	switch (property_id)
 	{
-		/* FIXME: This is broken */
 		case PROP_RECTANGLE:
-			g_value_get_string (value);
+			g_value_set_pointer(value, &crop->rectangle);
 			break;
 		default:
 			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);




More information about the Rawstudio-commit mailing list