diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-02-15 00:48:13 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-02-15 00:48:13 +0800 |
commit | 34ac56cc9af0eb9464f9d207c6a726d5481ec495 (patch) | |
tree | a4fbbb3d36aa8e2a360cc4e21b0efe15af01451d /embed/webkit/webkit-embed.c | |
parent | 16cc4b4c0607cceb98fe898b6393441769510402 (diff) | |
download | gsoc2013-epiphany-34ac56cc9af0eb9464f9d207c6a726d5481ec495.tar gsoc2013-epiphany-34ac56cc9af0eb9464f9d207c6a726d5481ec495.tar.gz gsoc2013-epiphany-34ac56cc9af0eb9464f9d207c6a726d5481ec495.tar.bz2 gsoc2013-epiphany-34ac56cc9af0eb9464f9d207c6a726d5481ec495.tar.lz gsoc2013-epiphany-34ac56cc9af0eb9464f9d207c6a726d5481ec495.tar.xz gsoc2013-epiphany-34ac56cc9af0eb9464f9d207c6a726d5481ec495.tar.zst gsoc2013-epiphany-34ac56cc9af0eb9464f9d207c6a726d5481ec495.zip |
Initial implementation of WebKit preferences.
svn path=/trunk/; revision=7940
Diffstat (limited to 'embed/webkit/webkit-embed.c')
-rw-r--r-- | embed/webkit/webkit-embed.c | 14 |
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 |