seed r471 - trunk/libseed



Author: racarr
Date: Mon Dec 15 08:32:13 2008
New Revision: 471
URL: http://svn.gnome.org/viewvc/seed?rev=471&view=rev

Log:
Get rid of the 3 argument form of signal connection.

Modified:
   trunk/libseed/seed-signals.c

Modified: trunk/libseed/seed-signals.c
==============================================================================
--- trunk/libseed/seed-signals.c	(original)
+++ trunk/libseed/seed-signals.c	Mon Dec 15 08:32:13 2008
@@ -354,27 +354,24 @@
 	if (argumentCount == 1)
 		seed_gobject_signal_connect(ctx, privates->signal_name,
 									privates->object,
-									(JSObjectRef) arguments[0], this_obj, NULL);
+									(JSObjectRef) arguments[0], this_obj, 
+									NULL);
 	
 	if (argumentCount == 2)
 	{
-		g_warning("Deprecated signal this usage");
 		seed_gobject_signal_connect(ctx, privates->signal_name,
 									privates->object,
 									(JSObjectRef) arguments[0],
-									this_obj, NULL);
+									this_obj,
+									(JSObjectRef) arguments[1]);
 	}
-
 	if (argumentCount == 3)
 	{
-		seed_gobject_signal_connect(ctx, privates->signal_name,
-									privates->object,
-									(JSObjectRef) arguments[0],
-									this_obj,
-									(JSObjectRef) arguments[2]);
+		seed_make_exception(ctx, exception, "ArgumentError",
+							"Deprecated exception");
 	}
-	
-	return 0;
+
+	return JSValueMakeNull(ctx);;
 }
 
 JSStaticFunction signal_static_functions[] =



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