aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/mozilla-embed-event.cpp10
2 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 96c1722ab..1778aab7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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.
+
+2004-02-29 Christian Persch <chpe@cvs.gnome.org>
+
* embed/mozilla/EphyHeaderSniffer.cpp: (PerformSave):
Decode RFC 2231 and RFC 2047 encoded filenames in content-disposition
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);
}