aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/webkit/webkit-embed-persist.c57
1 files changed, 21 insertions, 36 deletions
diff --git a/embed/webkit/webkit-embed-persist.c b/embed/webkit/webkit-embed-persist.c
index 254a10973..24b467d42 100644
--- a/embed/webkit/webkit-embed-persist.c
+++ b/embed/webkit/webkit-embed-persist.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright © 2007 Xan Lopez <xan@gnome.org>
*
@@ -15,48 +16,18 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $Id$
*/
#include "webkit-embed-persist.h"
-static void
-webkit_embed_persist_class_init (WebKitEmbedPersistClass *klass);
-static void
-webkit_embed_persist_init (WebKitEmbedPersist *ges);
-static void
-webkit_embed_persist_finalize (GObject *object);
+static void webkit_embed_persist_class_init (WebKitEmbedPersistClass *klass);
+static void webkit_embed_persist_init (WebKitEmbedPersist *persist);
#define WEBKIT_EMBED_PERSIST_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), WEBKIT_TYPE_EMBED_PERSIST, WebKitEmbedPersistPrivate))
G_DEFINE_TYPE (WebKitEmbedPersist, webkit_embed_persist, EPHY_TYPE_EMBED_PERSIST)
static void
-webkit_embed_persist_init (WebKitEmbedPersist *persist)
-{
-}
-
-static void
-webkit_embed_persist_finalize (GObject *object)
-{
- G_OBJECT_CLASS (webkit_embed_persist_parent_class)->finalize (object);
-}
-
-void
-webkit_embed_persist_completed (WebKitEmbedPersist *persist)
-{
- g_signal_emit_by_name (persist, "completed");
- g_object_unref (persist);
-}
-
-void
-webkit_embed_persist_cancelled (WebKitEmbedPersist *persist)
-{
- g_signal_emit_by_name (persist, "cancelled");
- g_object_unref (persist);
-}
-
-static void
impl_cancel (EphyEmbedPersist *persist)
{
g_object_unref (persist);
@@ -79,14 +50,28 @@ impl_to_string (EphyEmbedPersist *persist)
static void
webkit_embed_persist_class_init (WebKitEmbedPersistClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
EphyEmbedPersistClass *persist_class = EPHY_EMBED_PERSIST_CLASS (klass);
- object_class->finalize = webkit_embed_persist_finalize;
-
persist_class->save = impl_save;
persist_class->cancel = impl_cancel;
persist_class->to_string = impl_to_string;
+}
+
+static void
+webkit_embed_persist_init (WebKitEmbedPersist *persist)
+{
+}
+
+void
+webkit_embed_persist_completed (WebKitEmbedPersist *persist)
+{
+ g_signal_emit_by_name (persist, "completed");
+ g_object_unref (persist);
+}
- // g_type_class_add_private (object_class, sizeof(WebKitEmbedPersistPrivate));
+void
+webkit_embed_persist_cancelled (WebKitEmbedPersist *persist)
+{
+ g_signal_emit_by_name (persist, "cancelled");
+ g_object_unref (persist);
}