aboutsummaryrefslogtreecommitdiffstats
path: root/embed/webkit
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-02-16 19:39:15 +0800
committerXan Lopez <xan@src.gnome.org>2008-02-16 19:39:15 +0800
commitd319184747703c98c026039aa4752bb37812328c (patch)
treeb58218b9c1715cc91be61f7ab1c001fde8975383 /embed/webkit
parent5adf13540f457c0a0a945705399636da72753ba8 (diff)
downloadgsoc2013-epiphany-d319184747703c98c026039aa4752bb37812328c.tar
gsoc2013-epiphany-d319184747703c98c026039aa4752bb37812328c.tar.gz
gsoc2013-epiphany-d319184747703c98c026039aa4752bb37812328c.tar.bz2
gsoc2013-epiphany-d319184747703c98c026039aa4752bb37812328c.tar.lz
gsoc2013-epiphany-d319184747703c98c026039aa4752bb37812328c.tar.xz
gsoc2013-epiphany-d319184747703c98c026039aa4752bb37812328c.tar.zst
gsoc2013-epiphany-d319184747703c98c026039aa4752bb37812328c.zip
Remove unneeded embed list for prefs.
svn path=/trunk/; revision=7951
Diffstat (limited to 'embed/webkit')
-rw-r--r--embed/webkit/webkit-embed-prefs.c10
-rw-r--r--embed/webkit/webkit-embed-prefs.h1
-rw-r--r--embed/webkit/webkit-embed.c11
3 files changed, 0 insertions, 22 deletions
diff --git a/embed/webkit/webkit-embed-prefs.c b/embed/webkit/webkit-embed-prefs.c
index e801e6e5b..c3fbb3e83 100644
--- a/embed/webkit/webkit-embed-prefs.c
+++ b/embed/webkit/webkit-embed-prefs.c
@@ -24,7 +24,6 @@
#include "eel-gconf-extensions.h"
#include "ephy-embed-prefs.h"
-static GSList *embeds = NULL;
static WebKitWebSettings *settings = NULL;
static void
@@ -77,20 +76,11 @@ webkit_embed_prefs_shutdown (void)
eel_gconf_notification_remove (min_font_size_cnxn_id);
g_object_unref (settings);
-
- g_slist_free (embeds);
}
void
webkit_embed_prefs_add_embed (WebKitEmbed *embed)
{
- embeds = g_slist_prepend (embeds, embed);
-
webkit_embed_prefs_apply (embed, settings);
}
-void
-webkit_embed_prefs_remove_embed (WebKitEmbed *embed)
-{
- embeds = g_slist_remove (embeds, embed);
-}
diff --git a/embed/webkit/webkit-embed-prefs.h b/embed/webkit/webkit-embed-prefs.h
index 21f2bc40e..e8cf0c198 100644
--- a/embed/webkit/webkit-embed-prefs.h
+++ b/embed/webkit/webkit-embed-prefs.h
@@ -27,7 +27,6 @@ G_BEGIN_DECLS
void webkit_embed_prefs_init (void);
void webkit_embed_prefs_shutdown (void);
void webkit_embed_prefs_add_embed (WebKitEmbed *embed);
-void webkit_embed_prefs_remove_embed (WebKitEmbed *embed);
G_END_DECLS
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index 623d4b81d..6447f91b9 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -269,21 +269,10 @@ 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));