[seed] Add some more SEED_NOTE's



commit 2a0a481dd0be0d7e61a740f79252183b25ad1811
Author: Robert Carr <racarr mireia (none)>
Date:   Sun Apr 12 11:16:55 2009 -0400

    Add some more SEED_NOTE's
---
 extensions/Gtk.js      |   45 +++++++++++++++++++++++----------------------
 libseed/seed-engine.c  |    1 +
 libseed/seed-signals.c |   19 -------------------
 3 files changed, 24 insertions(+), 41 deletions(-)

diff --git a/extensions/Gtk.js b/extensions/Gtk.js
index a34bb8d..305e90e 100755
--- a/extensions/Gtk.js
+++ b/extensions/Gtk.js
@@ -2,27 +2,28 @@ Gtk = imports.gi.Gtk;
 
 (function()
  {
-	 var pack = function(packing)
-		 {
-			 for ( var i in packing )
-			 {
-				 var entry = packing[i];
-				 var expand = entry["expand"];
-				 var padding = entry["padding"];
-				 var fill = entry["fill"];
-				 var child = entry["child"];
-				 var position = entry["position"];
+   var pack = function(packing)
+   {
+     for ( var i in packing )
+     {
+       var entry = packing[i];
+       var expand = entry["expand"];
+       var padding = entry["padding"];
+       var fill = entry["fill"];
+       var child = entry["child"];
+       var position = entry["position"];
 
-				 if (position == null)
-					 position = Gtk.PackType.START;
-				 
-				 this.pack_start(child);
-				 this.set_child_packing(child, 
-						       expand,
-						       fill, 
-						       padding, position);
-			 }
-		 }
-	 Gtk.VBox.prototype.pack = pack;
-	 Gtk.HBox.prototype.pack = pack;
+       if (position == null)
+	 position = Gtk.PackType.START;
+
+       this.pack_start(child);
+       this.set_child_packing(child,
+			      expand,
+			      fill,
+			      padding,
+			      position);
+     }
+   }
+   Gtk.VBox.prototype.pack = pack;
+   Gtk.HBox.prototype.pack = pack;
  }).apply();
diff --git a/libseed/seed-engine.c b/libseed/seed-engine.c
index 102c699..e749ada 100644
--- a/libseed/seed-engine.c
+++ b/libseed/seed-engine.c
@@ -301,6 +301,7 @@ seed_gobject_method_invoked (JSContextRef ctx,
 
   for (i = 0; (i < (n_args)); i++)
     {
+      SEED_NOTE (INVOCATION, "Converting arg: %d of function %s, exception is %p", i, g_base_info_get_name (info), exception);
       arg_info = g_callable_info_get_arg ((GICallableInfo *) info, i);
       dir = g_arg_info_get_direction (arg_info);
       type_info = g_arg_info_get_type (arg_info);
diff --git a/libseed/seed-signals.c b/libseed/seed-signals.c
index 6841bb1..e37e177 100644
--- a/libseed/seed-signals.c
+++ b/libseed/seed-signals.c
@@ -38,25 +38,6 @@ seed_signal_finalize (JSObjectRef object)
 
 
 static void
-seed_add_signals_for_type (JSContextRef ctx,
-			   JSObjectRef object_ref, GObject * obj, GType type)
-{
-  guint n, i;
-  guint *signal_ids;
-  GSignalQuery query;
-  signal_ids = g_signal_list_ids (type, &n);
-  for (i = 0; i < n; i++)
-    {
-      g_signal_query (signal_ids[i], &query);
-      if (query.signal_id != 0)
-	{
-	  seed_add_signal_to_object (ctx, object_ref, obj, &query);
-	}
-    }
-  g_free (signal_ids);
-}
-
-static void
 closure_invalidated (gpointer data, GClosure * c)
 {
   JSContextRef ctx = JSGlobalContextCreateInGroup (context_group,



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