aboutsummaryrefslogtreecommitdiffstats
path: root/embed/webkit/webkit-embed.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/webkit/webkit-embed.c')
-rw-r--r--embed/webkit/webkit-embed.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index 429f6bfa1..623d4b81d 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -32,6 +32,7 @@
#include <string.h>
#include "webkit-embed.h"
+#include "webkit-embed-prefs.h"
#include "webkit-history-item.h"
#include "ephy-embed.h"
#include "ephy-base-embed.h"
@@ -268,10 +269,21 @@ webkit_embed_finalize (GObject *object)
}
static void
+webkit_embed_dispose (GObject *object)
+{
+ WebKitEmbed *wembed = WEBKIT_EMBED (object);
+
+ webkit_embed_prefs_remove_embed (wembed);
+
+ G_OBJECT_CLASS (webkit_embed_parent_class)->dispose (object);
+}
+
+static void
webkit_embed_class_init (WebKitEmbedClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ object_class->dispose = webkit_embed_dispose;
object_class->finalize = webkit_embed_finalize;
g_type_class_add_private (object_class, sizeof(WebKitEmbedPrivate));
@@ -310,6 +322,8 @@ webkit_embed_init (WebKitEmbed *embed)
G_CALLBACK (webkit_embed_load_progress_changed_cb), embed);
g_signal_connect (G_OBJECT (web_view), "hovering-over-link",
G_CALLBACK (webkit_embed_hovering_over_link_cb), embed);
+
+ webkit_embed_prefs_add_embed (embed);
}
static void