seed r5 - trunk/libseed



Author: racarr
Date: Sat Oct 18 01:15:37 2008
New Revision: 5
URL: http://svn.gnome.org/viewvc/seed?rev=5&view=rev

Log:
What was going on here?


Modified:
   trunk/libseed/seed-engine.c
   trunk/libseed/seed-signals.c

Modified: trunk/libseed/seed-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c	(original)
+++ trunk/libseed/seed-engine.c	Sat Oct 18 01:15:37 2008
@@ -224,7 +224,7 @@
 				else
 				{
 						g_error("GI_DIRECTION_IN argument: %d"
-								". In function %s \n",
+								". In function %s \n",i,
 								g_base_info_get_name(
 										(GIBaseInfo *) info));
 				}
@@ -583,11 +583,12 @@
 		if (g_type_is_a(spec->value_type, G_TYPE_ENUM))
 			type = G_TYPE_INT;
 
-		if (!(seed_gvalue_from_seed_value(value, type, &gval) &&
-			  g_type_is_a(G_VALUE_TYPE(&gval), type)))
+		if (!seed_gvalue_from_seed_value(value, type, &gval))
 		{
-				gchar * mes = g_strdup_printf("Not able to set property %s on object of type %s."
-											  " Expected type: %s. \n", cproperty_name, 
+				gchar * mes = g_strdup_printf("Not able to set property %s"
+											  "on object of type %s."
+											  " Expected type: %s. \n",
+											  cproperty_name, 
 											  g_type_name(G_OBJECT_TYPE(obj)),
 											  g_type_name(spec->value_type));
 				seed_make_exception(exception, "InvalidPropertyValue", mes);

Modified: trunk/libseed/seed-signals.c
==============================================================================
--- trunk/libseed/seed-signals.c	(original)
+++ trunk/libseed/seed-signals.c	Sat Oct 18 01:15:37 2008
@@ -65,7 +65,7 @@
 	
 	modified_signal_name = 
 		g_strconcat("signal_", 
-			    my_signal_name, 0);
+			    my_signal_name, NULL);
 	
 	seed_value_set_property(object_ref, 
 				modified_signal_name,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]