aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-02-29 21:23:28 +0800
committerChristian Persch <chpe@src.gnome.org>2004-02-29 21:23:28 +0800
commit4d9c8b44c8d04b463dfe1e8e0ae1d79d69c8009f (patch)
treeb3a55d576b33c38754bb55df845114ee71a0e90e /embed/mozilla
parentb739c9c7b5cdf56705049b9fd5e9d745b7c3d1e6 (diff)
downloadgsoc2013-epiphany-4d9c8b44c8d04b463dfe1e8e0ae1d79d69c8009f.tar
gsoc2013-epiphany-4d9c8b44c8d04b463dfe1e8e0ae1d79d69c8009f.tar.gz
gsoc2013-epiphany-4d9c8b44c8d04b463dfe1e8e0ae1d79d69c8009f.tar.bz2
gsoc2013-epiphany-4d9c8b44c8d04b463dfe1e8e0ae1d79d69c8009f.tar.lz
gsoc2013-epiphany-4d9c8b44c8d04b463dfe1e8e0ae1d79d69c8009f.tar.xz
gsoc2013-epiphany-4d9c8b44c8d04b463dfe1e8e0ae1d79d69c8009f.tar.zst
gsoc2013-epiphany-4d9c8b44c8d04b463dfe1e8e0ae1d79d69c8009f.zip
Add debug output.
2004-02-29 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/mozilla-embed-event.cpp: (mozilla_embed_event_init), (mozilla_embed_event_finalize), (mozilla_embed_event_set_property): Add debug output.
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/mozilla-embed-event.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/embed/mozilla/mozilla-embed-event.cpp b/embed/mozilla/mozilla-embed-event.cpp
index 0454ac3f2..aae28b12a 100644
--- a/embed/mozilla/mozilla-embed-event.cpp
+++ b/embed/mozilla/mozilla-embed-event.cpp
@@ -21,6 +21,8 @@
#include "mozilla-embed-event.h"
+#include "ephy-debug.h"
+
#include <nsCOMPtr.h>
#include <nsIDOMEvent.h>
@@ -97,6 +99,10 @@ mozilla_embed_event_set_property (MozillaEmbedEvent *event,
const char *name,
GValue *value)
{
+ char *value_content = g_strdup_value_contents (value);
+ LOG ("embed event %p set property \"%s\" to %s", event, name, value_content);
+ g_free (value_content);
+
g_hash_table_insert (event->priv->props,
g_strdup (name),
value);
@@ -166,6 +172,8 @@ mozilla_embed_event_init (MozillaEmbedEvent *event)
{
event->priv = MOZILLA_EMBED_EVENT_GET_PRIVATE (event);
+ LOG ("MozillaEmbedEvent %p initialising", event)
+
event->priv->dom_event = nsnull;
event->priv->props = g_hash_table_new_full (g_str_hash, g_str_equal,
g_free, free_g_value);
@@ -180,6 +188,8 @@ mozilla_embed_event_finalize (GObject *object)
event->priv->dom_event = nsnull;
+ LOG ("MozillaEmbedEvent %p finalised", object)
+
G_OBJECT_CLASS (parent_class)->finalize (object);
}