seed r471 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r471 - trunk/libseed
- Date: Mon, 15 Dec 2008 08:32:14 +0000 (UTC)
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]