[gjs] object: When verbose debugging properties, print out GIName



commit d605a3aa40f5394ee1cad5ad621ad655d4e9e7f9
Author: Colin Walters <walters verbum org>
Date:   Tue Oct 12 13:25:19 2010 -0400

    object: When verbose debugging properties, print out GIName
    
    For prototypes we don't have a GObject, but the GIName (Clutter.Actor)
    is useful.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=632551

 gi/object.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/gi/object.c b/gi/object.c
index a2284fd..882cfe9 100644
--- a/gi/object.c
+++ b/gi/object.c
@@ -254,10 +254,14 @@ object_instance_new_resolve(JSContext *context,
     priv = priv_from_js(context, obj);
 
     gjs_debug_jsprop(GJS_DEBUG_GOBJECT,
-                     "Resolve prop '%s' hook obj %p priv %p gobj %p %s",
-                     name, obj, priv, priv ? priv->gobj : NULL,
-                     (priv && priv->gobj) ?
-                     g_type_name_from_instance((GTypeInstance*) priv->gobj) : "(type unknown)");
+                     "Resolve prop '%s' hook obj %p priv %p (%s.%s) gobj %p %s",
+                     name,
+                     obj,
+                     priv,
+                     priv ? g_base_info_get_namespace (priv->info) : "",
+                     priv ? g_base_info_get_name (priv->info) : "",
+                     priv ? priv->gobj : NULL,
+                     (priv && priv->gobj) ? g_type_name_from_instance((GTypeInstance*) priv->gobj) : "(type unknown)");
 
     if (priv == NULL)
         return JS_FALSE; /* we are the wrong class */



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