Index: embed/webkit/webkit-embed-single.cpp
===================================================================
--- embed/webkit/webkit-embed-single.cpp	(revisione 7325)
+++ embed/webkit/webkit-embed-single.cpp	(copia locale)
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*  Copyright © 2007 Xan Lopez <xan@gnome.org>
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -41,8 +42,8 @@ struct WebKitEmbedSinglePrivate
 
 enum
 {
-  PROP_0,
-  PROP_NETWORK_STATUS
+	PROP_0,
+	PROP_NETWORK_STATUS
 };
 
 static void webkit_embed_single_class_init	(WebKitEmbedSingleClass *klass);
@@ -61,45 +62,44 @@ static void ephy_certificate_manager_ifa
 
 #ifdef ENABLE_CERTIFICATE_MANAGER
 G_DEFINE_TYPE_WITH_CODE (WebKitEmbedSingle, webkit_embed_single, G_TYPE_OBJECT,
-                         G_IMPLEMENT_INTERFACE (EPHY_TYPE_EMBED_SINGLE,
-                                                ephy_embed_single_iface_init)
-                         G_IMPLEMENT_INTERFACE (EPHY_TYPE_COOKIE_MANAGER,
-                                                ephy_cookie_manager_iface_init)
-                         G_IMPLEMENT_INTERFACE (EPHY_TYPE_PASSWORD_MANAGER,
-                                                ephy_password_manager_iface_init)
-                         G_IMPLEMENT_INTERFACE (EPHY_TYPE_CERTIFICATE_MANAGER,
-                                                ephy_certificate_manager_iface_init)
-                         G_IMPLEMENT_INTERFACE (EPHY_TYPE_PERMISSION_MANAGER,
-                                                ephy_permission_manager_iface_init))
+			 G_IMPLEMENT_INTERFACE (EPHY_TYPE_EMBED_SINGLE,
+						ephy_embed_single_iface_init)
+			 G_IMPLEMENT_INTERFACE (EPHY_TYPE_COOKIE_MANAGER,
+						ephy_cookie_manager_iface_init)
+			 G_IMPLEMENT_INTERFACE (EPHY_TYPE_PASSWORD_MANAGER,
+						ephy_password_manager_iface_init)
+			 G_IMPLEMENT_INTERFACE (EPHY_TYPE_CERTIFICATE_MANAGER,
+						ephy_certificate_manager_iface_init)
+			 G_IMPLEMENT_INTERFACE (EPHY_TYPE_PERMISSION_MANAGER,
+						ephy_permission_manager_iface_init))
 #else
 G_DEFINE_TYPE_WITH_CODE (WebKitEmbedSingle, webkit_embed_single, G_TYPE_OBJECT,
-                         G_IMPLEMENT_INTERFACE (EPHY_TYPE_EMBED_SINGLE,
-                                                ephy_embed_single_iface_init)
-                         G_IMPLEMENT_INTERFACE (EPHY_TYPE_COOKIE_MANAGER,
-                                                ephy_cookie_manager_iface_init)
-                         G_IMPLEMENT_INTERFACE (EPHY_TYPE_PASSWORD_MANAGER,
-                                                ephy_password_manager_iface_init)
-                         G_IMPLEMENT_INTERFACE (EPHY_TYPE_PERMISSION_MANAGER,
-                                                ephy_permission_manager_iface_init))
+			 G_IMPLEMENT_INTERFACE (EPHY_TYPE_EMBED_SINGLE,
+						ephy_embed_single_iface_init)
+			 G_IMPLEMENT_INTERFACE (EPHY_TYPE_COOKIE_MANAGER,
+						ephy_cookie_manager_iface_init)
+			 G_IMPLEMENT_INTERFACE (EPHY_TYPE_PASSWORD_MANAGER,
+						ephy_password_manager_iface_init)
+			 G_IMPLEMENT_INTERFACE (EPHY_TYPE_PERMISSION_MANAGER,
+						ephy_permission_manager_iface_init))
 #endif
 
-
 static void
 webkit_embed_single_init (WebKitEmbedSingle *mes)
 {
- 	mes->priv = WEBKIT_EMBED_SINGLE_GET_PRIVATE (mes);
+	mes->priv = WEBKIT_EMBED_SINGLE_GET_PRIVATE (mes);
 }
 
 static void
 webkit_embed_single_dispose (GObject *object)
 {
-  G_OBJECT_CLASS (webkit_embed_single_parent_class)->dispose (object);
+	G_OBJECT_CLASS (webkit_embed_single_parent_class)->dispose (object);
 }
 
 static void
 webkit_embed_single_finalize (GObject *object)
 {
-  G_OBJECT_CLASS (webkit_embed_single_parent_class)->finalize (object);
+	G_OBJECT_CLASS (webkit_embed_single_parent_class)->finalize (object);
 }
 
 static void
@@ -121,28 +121,28 @@ impl_set_network_status (EphyEmbedSingle
 static gboolean
 impl_get_network_status (EphyEmbedSingle *esingle)
 {
-  return FALSE;
+	return FALSE;
 }
 
 static const char*
 impl_get_backend_name (EphyEmbedSingle *esingle)
 {
-  /* If you alter the return values here, remember to update
-   * the docs in ephy-embed-single.c */
-  return "webkit"; 
+	/* If you alter the return values here, remember to update
+	* the docs in ephy-embed-single.c */
+	return "webkit"; 
 }
 
 static GList *
 impl_get_font_list (EphyEmbedSingle *shell,
 		    const char *langGroup)
 {
-  return NULL;
+	return NULL;
 }
 
 static GList *
 impl_list_cookies (EphyCookieManager *manager)
 {
-  return NULL;
+	return NULL;
 }
 
 static void
@@ -159,7 +159,7 @@ impl_clear_cookies (EphyCookieManager *m
 static GList *
 impl_list_passwords (EphyPasswordManager *manager)
 {
-  return NULL;
+	return NULL;
 }
 
 static void
@@ -199,23 +199,23 @@ impl_permission_manager_test (EphyPermis
 			      const char *host,
 			      const char *type)
 {
-  g_return_val_if_fail (type != NULL && type[0] != '\0', EPHY_PERMISSION_DEFAULT);
+	g_return_val_if_fail (type != NULL && type[0] != '\0', EPHY_PERMISSION_DEFAULT);
 
-  return (EphyPermission)0;
+	return (EphyPermission)0;
 }
 
 static gboolean
 impl_init (EphyEmbedSingle *esingle)
 {
-  return TRUE;
+	return TRUE;
 }
 
 GList *
 impl_permission_manager_list (EphyPermissionManager *manager,
 			      const char *type)
 {
-  GList *list = NULL;
-  return list;
+	GList *list = NULL;
+	return list;
 }
 
 static GtkWidget * 
@@ -225,7 +225,7 @@ impl_open_window (EphyEmbedSingle *singl
 		  const char *name,
 		  const char *features)
 {
-  return NULL;
+	return NULL;
 }
 
 #ifdef ENABLE_CERTIFICATE_MANAGER
@@ -234,7 +234,7 @@ static gboolean
 impl_remove_certificate (EphyCertificateManager *manager,
 			 EphyX509Cert *cert)
 {
-  return TRUE;
+	return TRUE;
 }
 
 #define NICK_DELIMITER PRUnichar('\001')
@@ -242,14 +242,14 @@ static GList *
 impl_get_certificates (EphyCertificateManager *manager,
 		       EphyX509CertType type)
 {
-  return NULL;
+	return NULL;
 }
 
 static gboolean
 impl_import (EphyCertificateManager *manager,
 	     const gchar *file)
 {
-  return TRUE;
+	return TRUE;
 }
 
 #endif /* ENABLE_CERTIFICATE_MANAGER */
Index: embed/webkit/webkit-embed.cpp
===================================================================
--- embed/webkit/webkit-embed.cpp	(revisione 7325)
+++ embed/webkit/webkit-embed.cpp	(copia locale)
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  *  Copyright © 2007 Xan Lopez
  *
@@ -24,64 +25,52 @@
 #include "ephy-debug.h"
 #include "ephy-embed-shell.h"
 #include "ephy-embed-single.h"
+#include "ephy-embed-persist.h"
 #include "ephy-string.h"
 #include "ephy-embed-event.h"
 
 #include <webkitgtkpage.h>
+#include <webkitgtkframe.h>
 #include <webkitgtkglobal.h>
 #include <string.h>
 
 #include "webkit-embed.h"
 #include "ephy-embed.h"
 
-static void	webkit_embed_class_init	(WebKitEmbedClass *klass);
-static void	webkit_embed_init		(WebKitEmbed *gs);
-static void	webkit_embed_destroy		(GtkObject *object);
-static void	webkit_embed_finalize		(GObject *object);
-static void	ephy_embed_iface_init		(EphyEmbedIface *iface);
-
-#if 0
-static void    load_started_cb                 (WebKitGtkPage *page,
-                                               WebKitGtkFrame *frame,
-                                               WebKitEmbed *wembed);
-
-static void webkit_embed_location_changed_cb	(GtkMozEmbed *embed,
-						 WebKitEmbed *membed);
-static void webkit_embed_net_state_all_cb	(GtkMozEmbed *embed,
-						 const char *aURI,
-						 gint state,
-						 guint status,
-						 WebKitEmbed *membed);
-static gboolean webkit_embed_dom_mouse_click_cb(GtkMozEmbed *embed,
-                                                gpointer dom_event,
-                                                WebKitEmbed *membed);
-static gboolean webkit_embed_dom_mouse_down_cb	(GtkMozEmbed *embed,
-
-						 
-						 WebKitEmbed *membed);
-static gboolean webkit_embed_dom_key_press_cb	(GtkMozEmbed *embed,
-						 gpointer dom_event, 
-						 WebKitEmbed *membed);
-static void webkit_embed_new_window_cb		(GtkMozEmbed *embed, 
-						 GtkMozEmbed **newEmbed,
-						 guint chrome_mask,
-						 WebKitEmbed *membed);
-#endif
+static void webkit_embed_class_init		  (WebKitEmbedClass *klass);
+static void webkit_embed_init			  (WebKitEmbed *gs);
+static void webkit_embed_destroy		  (GtkObject *object);
+static void webkit_embed_finalize		  (GObject *object);
+static void ephy_embed_iface_init		  (EphyEmbedIface *iface);
+static void webkit_embed_title_changed_cb 	  (WebKitGtkFrame *frame,  
+						   gchar *title,
+						   gchar *location,
+						   EphyEmbed *embed);
+static void webkit_embed_load_started_cb	  (WebKitGtkPage *page,
+						   WebKitGtkFrame *frame,
+						   EphyEmbed *embed);
+static void webkit_embed_load_progress_changed_cb (WebKitGtkPage *page,
+						   int progress,
+						   EphyEmbed *embed);
+static void webkit_embed_load_finished_cb	  (WebKitGtkPage *page,
+						   WebKitGtkFrame *frame,
+						   EphyEmbed *embed);
 
 #define WEBKIT_EMBED_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), WEBKIT_TYPE_EMBED, WebKitEmbedPrivate))
 
 typedef enum
-  {
-    WEBKIT_EMBED_LOAD_STARTED,
-    WEBKIT_EMBED_LOAD_REDIRECTING,
-    WEBKIT_EMBED_LOAD_LOADING,
-    WEBKIT_EMBED_LOAD_STOPPED
-  } WebKitEmbedLoadState;
+{
+	WEBKIT_EMBED_LOAD_STARTED,
+	WEBKIT_EMBED_LOAD_REDIRECTING,
+	WEBKIT_EMBED_LOAD_LOADING,
+	WEBKIT_EMBED_LOAD_STOPPED
+} WebKitEmbedLoadState;
 
 struct WebKitEmbedPrivate
 {
-  WebKitGtkPage *page;
-  WebKitEmbedLoadState load_state;
+	WebKitGtkPage *page;
+	WebKitEmbedLoadState load_state;
+	char *loading_uri;
 };
 
 static void
@@ -94,14 +83,14 @@ static gboolean
 impl_manager_can_do_command (EphyCommandManager *manager,
 			     const char *command) 
 {
-  return FALSE;
+	return FALSE;
 }
 
 static void
 ephy_command_manager_iface_init (EphyCommandManagerIface *iface)
 {
-  iface->do_command = impl_manager_do_command;
-  iface->can_do_command = impl_manager_can_do_command;
+	iface->do_command = impl_manager_do_command;
+	iface->can_do_command = impl_manager_can_do_command;
 }
 
 G_DEFINE_TYPE_WITH_CODE (WebKitEmbed, webkit_embed, GTK_TYPE_SCROLLED_WINDOW,
@@ -123,137 +112,279 @@ impl_close (EphyEmbed *embed) 
 static void
 webkit_embed_class_init (WebKitEmbedClass *klass)
 {
-  GObjectClass *object_class = G_OBJECT_CLASS (klass);
-  GtkObjectClass *gtk_object_class = GTK_OBJECT_CLASS (klass); 
-  GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); 
+	GObjectClass *object_class = G_OBJECT_CLASS (klass);
+	GtkObjectClass *gtk_object_class = GTK_OBJECT_CLASS (klass); 
+	GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); 
+
+	webkit_embed_parent_class = (GObjectClass *) g_type_class_peek_parent (klass);
+
+	object_class->finalize = webkit_embed_finalize;
+
+	gtk_object_class->destroy = webkit_embed_destroy;
+
+	widget_class->grab_focus = webkit_embed_grab_focus;
+
+	g_type_class_add_private (object_class, sizeof(WebKitEmbedPrivate));
+
+	g_signal_new ("title",
+		      WEBKIT_TYPE_EMBED,
+		      (GSignalFlags) (G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST),
+		      0,
+		      NULL, NULL,
+		      g_cclosure_marshal_VOID__VOID,
+		      G_TYPE_NONE,
+		      0);
+	g_signal_new ("visibility",
+		      WEBKIT_TYPE_EMBED,
+		      (GSignalFlags) (G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST),
+		      0,
+		      NULL, NULL,
+		      g_cclosure_marshal_VOID__BOOLEAN,
+		      G_TYPE_NONE,
+		      1,
+		      G_TYPE_BOOLEAN);
+	g_signal_new ("open_uri",
+		      WEBKIT_TYPE_EMBED,
+		      (GSignalFlags) (G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST),
+		      0,
+		      NULL, NULL,
+		      g_cclosure_marshal_VOID__STRING,
+		      G_TYPE_NONE,
+		      1,
+		      G_TYPE_STRING);
+	g_signal_new ("link_message",
+		      WEBKIT_TYPE_EMBED,
+		      (GSignalFlags) (G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST),
+		      0,
+		      NULL, NULL,
+		      g_cclosure_marshal_VOID__VOID,
+		      G_TYPE_NONE,
+		      0);
+	g_signal_new ("net_stop",
+		      WEBKIT_TYPE_EMBED,
+		      (GSignalFlags) (G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST),
+		      0,
+		      NULL, NULL,
+		      g_cclosure_marshal_VOID__VOID,
+		      G_TYPE_NONE,
+		      0);	
+}
 
-  webkit_embed_parent_class = (GObjectClass *) g_type_class_peek_parent (klass);
+static void
+webkit_embed_init (WebKitEmbed *embed)
+{
+	WebKitGtkPage *page;
 
-  object_class->finalize = webkit_embed_finalize;
+	embed->priv = WEBKIT_EMBED_GET_PRIVATE (embed);
 
-  gtk_object_class->destroy = webkit_embed_destroy;
+	gtk_scrolled_window_set_vadjustment (GTK_SCROLLED_WINDOW (embed), NULL);
+	gtk_scrolled_window_set_hadjustment (GTK_SCROLLED_WINDOW (embed), NULL);
 
-  widget_class->grab_focus = webkit_embed_grab_focus;
+	gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (embed),
+					GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+	webkit_gtk_init ();
+	page = WEBKIT_GTK_PAGE (webkit_gtk_page_new ());
+	embed->priv->page = page;
+	gtk_container_add (GTK_CONTAINER (embed), GTK_WIDGET (page));
+	gtk_widget_show (GTK_WIDGET (page));
 
-  g_type_class_add_private (object_class, sizeof(WebKitEmbedPrivate));
+	g_signal_connect (G_OBJECT (page), "title-changed",
+			  G_CALLBACK (webkit_embed_title_changed_cb), embed);
+
+	g_signal_connect (G_OBJECT (page), "load_started",
+			  G_CALLBACK (webkit_embed_load_started_cb), embed);
+
+	g_signal_connect (G_OBJECT (page), "load_progress_changed",
+			  G_CALLBACK (webkit_embed_load_progress_changed_cb), embed);
+
+	g_signal_connect (G_OBJECT (page), "load_finished",
+			  G_CALLBACK (webkit_embed_load_finished_cb), embed);
 }
 
 static void
-webkit_embed_init (WebKitEmbed *embed)
+webkit_embed_title_changed_cb (WebKitGtkFrame *frame,
+			       gchar *title,
+			       gchar *location,
+			       EphyEmbed *embed)
 {
-  WebKitGtkPage *page;
+	/* FIXME: We emit ge-location signal here, but it should really belong
+	 * to a "location_changed" signal by WebKit, as we can change title
+	 * without changing location or change location without changing title
+	 */
 
-  embed->priv = WEBKIT_EMBED_GET_PRIVATE (embed);
+	g_signal_emit_by_name (embed, "ge-location", location, NULL);
+	g_signal_emit_by_name (embed, "title", NULL);
+}
+
+static void
+update_load_state (WebKitEmbed *embed, WebKitGtkPage *page)
+{
+	EphyEmbedNetState estate = EPHY_EMBED_STATE_UNKNOWN;
+
+	if (embed->priv->load_state == WEBKIT_EMBED_LOAD_STARTED)
+	{
+		estate = (EphyEmbedNetState) (estate | 
+					      EPHY_EMBED_STATE_START |
+					      EPHY_EMBED_STATE_NEGOTIATING |
+					      EPHY_EMBED_STATE_IS_REQUEST | 
+					      EPHY_EMBED_STATE_IS_NETWORK);
+	}
+	if (embed->priv->load_state == WEBKIT_EMBED_LOAD_LOADING)
+	{
+		estate = (EphyEmbedNetState) (estate |
+					      EPHY_EMBED_STATE_TRANSFERRING |
+					      EPHY_EMBED_STATE_IS_REQUEST |
+					      EPHY_EMBED_STATE_IS_NETWORK);
+	}
+	if (embed->priv->load_state == WEBKIT_EMBED_LOAD_STOPPED)
+	{
+		estate = (EphyEmbedNetState) (estate |
+	      				      EPHY_EMBED_STATE_STOP |
+					      EPHY_EMBED_STATE_IS_DOCUMENT |
+					      EPHY_EMBED_STATE_IS_NETWORK);
+	}
 
-  gtk_scrolled_window_set_vadjustment (GTK_SCROLLED_WINDOW (embed), NULL);
-  gtk_scrolled_window_set_hadjustment (GTK_SCROLLED_WINDOW (embed), NULL);
+	WebKitGtkFrame *frame = webkit_gtk_page_get_main_frame (page);
 
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (embed),
-                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-  webkit_gtk_init ();
-  page = WEBKIT_GTK_PAGE (webkit_gtk_page_new ());
-  embed->priv->page = page;
-  gtk_container_add (GTK_CONTAINER (embed), GTK_WIDGET (page));
-  gtk_widget_show (GTK_WIDGET (page));
-
-#if 0
-  g_signal_connect (G_OBJECT (page), "load-started",
-		  G_CALLBACK (load_started_cb), embed);
-  g_signal_connect (G_OBJECT (page), "title-changed",
-                    G_CALLBACK (title_changed_cb), page);
-  g_signal_connect (G_OBJECT (page), "load-progress-changed",
-                    G_CALLBACK (load_progress_changed), page);
-#endif
+	g_signal_emit_by_name (EPHY_EMBED (embed), "ge_net_state",
+			       embed->priv->loading_uri, estate);
 }
 
 static void
-webkit_embed_destroy (GtkObject *object)
+webkit_embed_load_started_cb (WebKitGtkPage *page,
+			      WebKitGtkFrame *frame,
+			      EphyEmbed *embed)
 {
-  GTK_OBJECT_CLASS (webkit_embed_parent_class)->destroy (object);
+	WebKitEmbed *wembed = WEBKIT_EMBED (embed);
+	wembed->priv->load_state = WEBKIT_EMBED_LOAD_STARTED;
+
+	update_load_state (wembed, page);
 }
 
 static void
-webkit_embed_finalize (GObject *object)
+webkit_embed_load_progress_changed_cb (WebKitGtkPage *page,
+				       int progress,
+				       EphyEmbed *embed)
 {
-  G_OBJECT_CLASS (webkit_embed_parent_class)->finalize (object);
+	WebKitEmbed *wembed = WEBKIT_EMBED (embed);
+	if (wembed->priv->load_state == WEBKIT_EMBED_LOAD_STARTED)
+	{
+		wembed->priv->load_state = WEBKIT_EMBED_LOAD_LOADING;
+	}
+
+	/* FIXME: EphyTab seems to have a strange way of calculating progress,
+	 * and it's not compatible with the simple integer value WebKit emits.
+	 * EphyTab IMHO should use "progress" signal from GtkMozEmbed. That way,
+	 * we could use the same functions for WebKit too.
+	 */    
+
+	update_load_state (wembed, page);
 }
 
-#if 0
 static void
-load_started_cb (WebKitGtkPage *page,
-                 WebKitGtkFrame *frame,
-                 WebKitEmbed *wembed)
+webkit_embed_load_finished_cb (WebKitGtkPage *page,
+			       WebKitGtkFrame *frame,
+			       EphyEmbed *embed)
 {
-  g_debug("load-started, emitting ge_location with www.google.com as location");
-  g_signal_emit_by_name (wembed, "ge_location", "www.google.com");
+	WebKitEmbed *wembed = WEBKIT_EMBED (embed);
+	wembed->priv->load_state = WEBKIT_EMBED_LOAD_STOPPED;
+
+	update_load_state (wembed, page);
+	
+	g_signal_emit_by_name (embed, "net-stop", NULL);
 }
-#endif
 
 static void
-impl_load_url (EphyEmbed *embed,
-               const char *url)
+webkit_embed_destroy (GtkObject *object)
 {
-  WebKitEmbed *wembed = WEBKIT_EMBED (embed);
+	GTK_OBJECT_CLASS (webkit_embed_parent_class)->destroy (object);
+}
 
-  g_debug ("a url %s", url);
-  
-  webkit_gtk_page_open (wembed->priv->page, url);
+static void
+webkit_embed_finalize (GObject *object)
+{
+	G_OBJECT_CLASS (webkit_embed_parent_class)->finalize (object);
 }
 
-static char * impl_get_location (EphyEmbed *embed, gboolean toplevel);
+static void
+impl_load_url (EphyEmbed *embed,
+	       const char *url)
+{
+	WebKitEmbed *wembed = WEBKIT_EMBED (embed);
+
+	webkit_gtk_page_open (wembed->priv->page, url);
+}
 
 static void
-impl_load (EphyEmbed *embed, 
-           const char *url,
+impl_load (EphyEmbed *embed,
+	   const char *url,
 	   EphyEmbedLoadFlags flags,
 	   EphyEmbed *preview_embed)
 {
-  WebKitEmbed *wembed = WEBKIT_EMBED (embed);
+	/* FIXME: WebKit has some strange bug for which there must be protocol prefix
+	 * into the parsed URL, or it will not show images and lock badly.
+	 * I copied this function from WebKit's GdkLauncher.
+	 */
+
+	if (strncmp("http://", url, 7) != 0 &&
+	    strncmp("https://", url, 8) != 0 &&
+	    strncmp("file://", url, 7) != 0 &&
+	    strncmp("ftp://", url, 6) != 0)
+	{
+	  GString *parsed_url = g_string_new ("http://");
+	  g_string_append (parsed_url, url);
+	  url = g_string_free (parsed_url, FALSE);
+	}
+
+	WebKitEmbed *wembed = WEBKIT_EMBED (embed);
+
+	wembed->priv->loading_uri = g_strdup (url);
+
+    	webkit_gtk_page_open (wembed->priv->page, url);
 
-  g_debug ("url %s", url);
-  webkit_gtk_page_open (wembed->priv->page, url);
+	g_signal_emit_by_name (EPHY_EMBED (embed), "visibility", TRUE);
 }
 
 static void
 impl_stop_load (EphyEmbed *embed)
 {
-  webkit_gtk_page_stop_loading (WEBKIT_EMBED (embed)->priv->page);
+	webkit_gtk_page_stop_loading (WEBKIT_EMBED (embed)->priv->page);
 }
 
 static gboolean
 impl_can_go_back (EphyEmbed *embed)
 {
-  return webkit_gtk_page_can_go_backward (WEBKIT_EMBED (embed)->priv->page);
+	return webkit_gtk_page_can_go_backward (WEBKIT_EMBED (embed)->priv->page);
 }
 
 static gboolean
 impl_can_go_forward (EphyEmbed *embed)
 {
-  return webkit_gtk_page_can_go_forward (WEBKIT_EMBED (embed)->priv->page);
+	return webkit_gtk_page_can_go_forward (WEBKIT_EMBED (embed)->priv->page);
 }
 
 static gboolean
 impl_can_go_up (EphyEmbed *embed)
 {
-  return FALSE;
+	return FALSE;
 }
 
 static GSList *
 impl_get_go_up_list (EphyEmbed *embed)
 {
-  return NULL;
+	return NULL;
 }
 
 static void
 impl_go_back (EphyEmbed *embed)
 {
-  webkit_gtk_page_go_backward (WEBKIT_EMBED (embed)->priv->page);
+	webkit_gtk_page_go_backward (WEBKIT_EMBED (embed)->priv->page);
 }
 		
 static void
 impl_go_forward (EphyEmbed *embed)
 {
-  webkit_gtk_page_go_forward (WEBKIT_EMBED (embed)->priv->page);
+	webkit_gtk_page_go_forward (WEBKIT_EMBED (embed)->priv->page);
 }
 
 static void
@@ -264,45 +395,49 @@ impl_go_up (EphyEmbed *embed)
 static char *
 impl_get_title (EphyEmbed *embed)
 {
-  return NULL;
+	WebKitGtkFrame *frame = webkit_gtk_page_get_main_frame (WEBKIT_EMBED (embed)->priv->page);
+	gchar *title = webkit_gtk_frame_get_title (frame);
+	return g_strdup (title);
 }
 
 static char *
 impl_get_link_message (EphyEmbed *embed)
 {
-  return NULL;
+	return NULL;
 }
 
 static char *
 impl_get_js_status (EphyEmbed *embed)
 {
-  return NULL;
+	return NULL;
 }
 
 static char *
-impl_get_location (EphyEmbed *embed, 
-                   gboolean toplevel)
+impl_get_location (EphyEmbed *embed,
+		   gboolean toplevel)
 {
-  return NULL;
+	WebKitGtkFrame *frame = webkit_gtk_page_get_main_frame (WEBKIT_EMBED (embed)->priv->page);
+	gchar *location = webkit_gtk_frame_get_location (frame);
+	return g_strdup (location);
 }
 
 static void
 impl_reload (EphyEmbed *embed, 
-             gboolean force)
+	     gboolean force)
 {
-  webkit_gtk_page_reload (WEBKIT_EMBED (embed)->priv->page);  
+	webkit_gtk_page_reload (WEBKIT_EMBED (embed)->priv->page);  
 }
 
 static void
 impl_set_zoom (EphyEmbed *embed, 
-               float zoom) 
+	       float zoom) 
 {
 }
 
 static float
 impl_get_zoom (EphyEmbed *embed)
 {
-  return 0.0;
+ 	return 0.0;
 }
 
 static void
@@ -327,29 +462,29 @@ impl_scroll_pixels (EphyEmbed *embed,
 static int
 impl_shistory_n_items (EphyEmbed *embed)
 {
-  return 0;
+	return 0;
 }
 
 static void
 impl_shistory_get_nth (EphyEmbed *embed, 
-                       int nth,
-                       gboolean is_relative,
-                       char **aUrl,
-                       char **aTitle)
+		       int nth,
+		       gboolean is_relative,
+		       char **aUrl,
+		       char **aTitle)
 {
-  *aUrl = NULL;
-  *aTitle = NULL;
+	*aUrl = NULL;
+	*aTitle = NULL;
 }
 
 static int
 impl_shistory_get_pos (EphyEmbed *embed)
 {
-  return 0;
+	return 0;
 }
 
 static void
 impl_shistory_go_nth (EphyEmbed *embed, 
-                      int nth)
+		      int nth)
 {
 }
 
@@ -364,10 +499,10 @@ impl_shistory_copy (EphyEmbed *source,
 
 static void
 impl_get_security_level (EphyEmbed *embed,
-                         EphyEmbedSecurityLevel *level,
-                         char **description)
+			 EphyEmbedSecurityLevel *level,
+			 char **description)
 {
-  if (level) *level = EPHY_EMBED_STATE_IS_UNKNOWN;
+	if (level) *level = EPHY_EMBED_STATE_IS_UNKNOWN;
 }
 
 static void
@@ -388,7 +523,7 @@ impl_set_print_preview_mode (EphyEmbed *
 static int
 impl_print_preview_n_pages (EphyEmbed *embed)
 {
-  return 0;
+	return 0;
 }
 
 static void
@@ -407,58 +542,58 @@ impl_set_encoding (EphyEmbed *embed,
 static char *
 impl_get_encoding (EphyEmbed *embed)
 {
-  return NULL;
+	return NULL;
 }
 
 static gboolean
 impl_has_automatic_encoding (EphyEmbed *embed)
 {
-  return FALSE;
+	return FALSE;
 }
 
 static gboolean
 impl_has_modified_forms (EphyEmbed *embed)
 {
-  return FALSE;
+	return FALSE;
 }
 
 static void
 ephy_embed_iface_init (EphyEmbedIface *iface)
 {
-  iface->load_url = impl_load_url; 
-  iface->load = impl_load; 
-  iface->stop_load = impl_stop_load;
-  iface->can_go_back = impl_can_go_back;
-  iface->can_go_forward = impl_can_go_forward;
-  iface->can_go_up = impl_can_go_up;
-  iface->get_go_up_list = impl_get_go_up_list;
-  iface->go_back = impl_go_back;
-  iface->go_forward = impl_go_forward;
-  iface->go_up = impl_go_up;
-  iface->get_title = impl_get_title;
-  iface->get_location = impl_get_location;
-  iface->get_link_message = impl_get_link_message;
-  iface->get_js_status = impl_get_js_status;
-  iface->reload = impl_reload;
-  iface->set_zoom = impl_set_zoom;
-  iface->get_zoom = impl_get_zoom;
-  iface->scroll_lines = impl_scroll_lines;
-  iface->scroll_pages = impl_scroll_pages;
-  iface->scroll_pixels = impl_scroll_pixels;
-  iface->shistory_n_items = impl_shistory_n_items;
-  iface->shistory_get_nth = impl_shistory_get_nth;
-  iface->shistory_get_pos = impl_shistory_get_pos;
-  iface->shistory_go_nth = impl_shistory_go_nth;
-  iface->shistory_copy = impl_shistory_copy;
-  iface->get_security_level = impl_get_security_level;
-  iface->show_page_certificate = impl_show_page_certificate;
-  iface->close = impl_close;
-  iface->set_encoding = impl_set_encoding;
-  iface->get_encoding = impl_get_encoding;
-  iface->has_automatic_encoding = impl_has_automatic_encoding;
-  iface->print = impl_print;
-  iface->set_print_preview_mode = impl_set_print_preview_mode;
-  iface->print_preview_n_pages = impl_print_preview_n_pages;
-  iface->print_preview_navigate = impl_print_preview_navigate;
-  iface->has_modified_forms = impl_has_modified_forms;
+	iface->load_url = impl_load_url; 
+	iface->load = impl_load; 
+	iface->stop_load = impl_stop_load;
+	iface->can_go_back = impl_can_go_back;
+	iface->can_go_forward = impl_can_go_forward;
+	iface->can_go_up = impl_can_go_up;
+	iface->get_go_up_list = impl_get_go_up_list;
+	iface->go_back = impl_go_back;
+	iface->go_forward = impl_go_forward;
+	iface->go_up = impl_go_up;
+	iface->get_title = impl_get_title;
+	iface->get_location = impl_get_location;
+	iface->get_link_message = impl_get_link_message;
+	iface->get_js_status = impl_get_js_status;
+	iface->reload = impl_reload;
+	iface->set_zoom = impl_set_zoom;
+	iface->get_zoom = impl_get_zoom;
+	iface->scroll_lines = impl_scroll_lines;
+	iface->scroll_pages = impl_scroll_pages;
+	iface->scroll_pixels = impl_scroll_pixels;
+	iface->shistory_n_items = impl_shistory_n_items;
+	iface->shistory_get_nth = impl_shistory_get_nth;
+	iface->shistory_get_pos = impl_shistory_get_pos;
+	iface->shistory_go_nth = impl_shistory_go_nth;
+	iface->shistory_copy = impl_shistory_copy;
+	iface->get_security_level = impl_get_security_level;
+	iface->show_page_certificate = impl_show_page_certificate;
+	iface->close = impl_close;
+	iface->set_encoding = impl_set_encoding;
+	iface->get_encoding = impl_get_encoding;
+	iface->has_automatic_encoding = impl_has_automatic_encoding;
+	iface->print = impl_print;
+	iface->set_print_preview_mode = impl_set_print_preview_mode;
+	iface->print_preview_n_pages = impl_print_preview_n_pages;
+	iface->print_preview_navigate = impl_print_preview_navigate;
+	iface->has_modified_forms = impl_has_modified_forms;
 }
Index: embed/webkit/webkit-embed-find.h
===================================================================
--- embed/webkit/webkit-embed-find.h	(revisione 7325)
+++ embed/webkit/webkit-embed-find.h	(copia locale)
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  *  Copyright © 2000-2004 Marco Pesenti Gritti
  *
@@ -29,12 +30,12 @@ G_BEGIN_DECLS
 #define WEBKIT_TYPE_EMBED_FIND		(webkit_embed_find_get_type ())
 #define WEBKIT_EMBED_FIND(o)		(G_TYPE_CHECK_INSTANCE_CAST ((o), WEBKIT_TYPE_EMBED_FIND, WebKitEmbedFind))
 #define WEBKIT_EMBED_FIND_CLASS(k)	(G_TYPE_CHECK_CLASS_CAST((k), WEBKIT_TYPE_EMBED_FIND, WebKitEmbedFindClass))
-#define WEBKIT_IS_EMBED_FIND(o)	(G_TYPE_CHECK_INSTANCE_TYPE ((o), WEBKIT_TYPE_EMBED_FIND))
+#define WEBKIT_IS_EMBED_FIND(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), WEBKIT_TYPE_EMBED_FIND))
 #define WEBKIT_IS_EMBED_FIND_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), WEBKIT_TYPE_EMBED_FIND))
 #define WEBKIT_EMBED_FIND_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), WEBKIT_TYPE_EMBED_FIND, WebKitEmbedFindClass))
 
 typedef struct _WebKitEmbedFindClass	WebKitEmbedFindClass;
-typedef struct _WebKitEmbedFind	WebKitEmbedFind;
+typedef struct _WebKitEmbedFind		WebKitEmbedFind;
 typedef struct _WebKitEmbedFindPrivate	WebKitEmbedFindPrivate;
 
 struct _WebKitEmbedFind
@@ -42,7 +43,7 @@ struct _WebKitEmbedFind
 	GObject parent_instance;
 
 	/*< private >*/
-        WebKitEmbedFindPrivate *priv;
+	WebKitEmbedFindPrivate *priv;
 };
 
 struct _WebKitEmbedFindClass
Index: embed/webkit/webkit-embed-single.h
===================================================================
--- embed/webkit/webkit-embed-single.h	(revisione 7325)
+++ embed/webkit/webkit-embed-single.h	(copia locale)
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  *  Copyright © 2000-2003 Marco Pesenti Gritti
  *  Copyright © 2003 Christian Persch
@@ -30,12 +31,12 @@ G_BEGIN_DECLS
 #define WEBKIT_EMBED_SINGLE(o)			(G_TYPE_CHECK_INSTANCE_CAST ((o), WEBKIT_TYPE_EMBED_SINGLE, WebKitEmbedSingle))
 #define WEBKIT_EMBED_SINGLE_CLASS(k)		(G_TYPE_CHECK_CLASS_CAST((k), WEBKIT_TYPE_EMBED_SINGLE, WebKitEmbedSingleClass))
 #define WEBKIT_IS_EMBED_SINGLE(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), WEBKIT_TYPE_EMBED_SINGLE))
-#define WEBKIT_IS_EMBED_SINGLE_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), WEBKIT_TYPE_EMBED_SINGLE))
+#define WEBKIT_IS_EMBED_SINGLE_CLASS(k)		(G_TYPE_CHECK_CLASS_TYPE ((k), WEBKIT_TYPE_EMBED_SINGLE))
 #define WEBKIT_EMBED_SINGLE_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), WEBKIT_TYPE_EMBED_SINGLE, WebKitEmbedSingleClass))
 
 typedef struct WebKitEmbedSingle		WebKitEmbedSingle;
 typedef struct WebKitEmbedSingleClass		WebKitEmbedSingleClass;
-typedef struct WebKitEmbedSinglePrivate	WebKitEmbedSinglePrivate;
+typedef struct WebKitEmbedSinglePrivate		WebKitEmbedSinglePrivate;
 
 struct WebKitEmbedSingle
 {
Index: embed/webkit/webkit-embed.h
===================================================================
--- embed/webkit/webkit-embed.h	(revisione 7325)
+++ embed/webkit/webkit-embed.h	(copia locale)
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  *  Copyright © 2007 Xan Lopez
  *
@@ -29,30 +30,30 @@
 G_BEGIN_DECLS
 
 #define WEBKIT_TYPE_EMBED		(webkit_embed_get_type ())
-#define WEBKIT_EMBED(o)		(G_TYPE_CHECK_INSTANCE_CAST ((o), WEBKIT_TYPE_EMBED, WebKitEmbed))
+#define WEBKIT_EMBED(o)			(G_TYPE_CHECK_INSTANCE_CAST ((o), WEBKIT_TYPE_EMBED, WebKitEmbed))
 #define WEBKIT_EMBED_CLASS(k)		(G_TYPE_CHECK_CLASS_CAST((k), WEBKIT_TYPE_EMBED, WebKitEmbedClass))
 #define WEBKIT_IS_EMBED(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), WEBKIT_TYPE_EMBED))
 #define WEBKIT_IS_EMBED_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), WEBKIT_TYPE_EMBED))
 #define WEBKIT_EMBED_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), WEBKIT_TYPE_EMBED, WebKitEmbedClass))
 
-typedef struct WebKitEmbedClass	WebKitEmbedClass;
+typedef struct WebKitEmbedClass		WebKitEmbedClass;
 typedef struct WebKitEmbed		WebKitEmbed;
 typedef struct WebKitEmbedPrivate	WebKitEmbedPrivate;
 
 struct WebKitEmbed
 {
-        GtkScrolledWindow parent;
+	GtkScrolledWindow parent;
 
 	/*< private >*/
-        WebKitEmbedPrivate *priv;
+	WebKitEmbedPrivate *priv;
 };
 
 struct WebKitEmbedClass
 {
-        GtkScrolledWindowClass parent_class;
+	GtkScrolledWindowClass parent_class;
 };
 
-GType	         webkit_embed_get_type         (void);
+GType	webkit_embed_get_type	(void);
 
 G_END_DECLS
 
Index: embed/webkit/webkit-embed-persist.cpp
===================================================================
--- embed/webkit/webkit-embed-persist.cpp	(revisione 7325)
+++ embed/webkit/webkit-embed-persist.cpp	(copia locale)
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  *  Copyright © 2007 Xan Lopez <xan@gnome.org>
  *
@@ -20,12 +21,9 @@
 
 #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 *ges);
+static void webkit_embed_persist_finalize	(GObject *object);
 
 #define WEBKIT_EMBED_PERSIST_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), WEBKIT_TYPE_EMBED_PERSIST, WebKitEmbedPersistPrivate))
 
@@ -39,52 +37,52 @@ webkit_embed_persist_init (WebKitEmbedPe
 static void
 webkit_embed_persist_finalize (GObject *object)
 {
-  G_OBJECT_CLASS (webkit_embed_persist_parent_class)->finalize (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);
+	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);
+	g_signal_emit_by_name (persist, "cancelled");
+	g_object_unref (persist);
 }
 
 static void
 impl_cancel (EphyEmbedPersist *persist)
 {
-  g_object_unref (persist);
+	g_object_unref (persist);
 }
 
 static gboolean
 impl_save (EphyEmbedPersist *persist)
 {
-  g_object_ref (persist);
+	g_object_ref (persist);
 }
 
 static char *
 impl_to_string (EphyEmbedPersist *persist)
 {
-  return NULL;
+	return NULL;
 }
 
 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;
+	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;
 
-  //  g_type_class_add_private (object_class, sizeof(WebKitEmbedPersistPrivate));
+	//g_type_class_add_private (object_class, sizeof(WebKitEmbedPersistPrivate));
 }
Index: embed/webkit/webkit-embed-persist.h
===================================================================
--- embed/webkit/webkit-embed-persist.h	(revisione 7325)
+++ embed/webkit/webkit-embed-persist.h	(copia locale)
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  *  Copyright © 2007 Xan Lopez <xan@gnome.org>
  *
@@ -29,15 +30,15 @@
 G_BEGIN_DECLS
 
 #define WEBKIT_TYPE_EMBED_PERSIST		(webkit_embed_persist_get_type ())
-#define WEBKIT_EMBED_PERSIST(o)		(G_TYPE_CHECK_INSTANCE_CAST ((o), WEBKIT_TYPE_EMBED_PERSIST, WebKitEmbedPersist))
+#define WEBKIT_EMBED_PERSIST(o)			(G_TYPE_CHECK_INSTANCE_CAST ((o), WEBKIT_TYPE_EMBED_PERSIST, WebKitEmbedPersist))
 #define WEBKIT_EMBED_PERSIST_CLASS(k)		(G_TYPE_CHECK_CLASS_CAST((k), WEBKIT_TYPE_EMBED_PERSIST, WebKitEmbedPersistClass))
 #define WEBKIT_IS_EMBED_PERSIST(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), WEBKIT_TYPE_EMBED_PERSIST))
 #define WEBKIT_IS_EMBED_PERSIST_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), WEBKIT_TYPE_EMBED_PERSIST))
 #define WEBKIT_EMBED_PERSIST_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), WEBKIT_TYPE_EMBED_PERSIST, WebKitEmbedPersistClass))
 
-typedef struct WebKitEmbedPersistClass WebKitEmbedPersistClass;
-typedef struct WebKitEmbedPersist WebKitEmbedPersist;
-typedef struct WebKitEmbedPersistPrivate WebKitEmbedPersistPrivate;
+typedef struct WebKitEmbedPersistClass		WebKitEmbedPersistClass;
+typedef struct WebKitEmbedPersist 		WebKitEmbedPersist;
+typedef struct WebKitEmbedPersistPrivate 	WebKitEmbedPersistPrivate;
 
 struct WebKitEmbedPersist
 {
Index: embed/webkit/webkit-embed-find.cpp
===================================================================
--- embed/webkit/webkit-embed-find.cpp	(revisione 7325)
+++ embed/webkit/webkit-embed-find.cpp	(copia locale)
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  *  Copyright © 2000-2004 Marco Pesenti Gritti
  *  Copyright © 2003, 2004 Christian Persch
@@ -49,10 +50,10 @@ impl_set_properties (EphyEmbedFind *efin
 
 static EphyEmbedFindResult
 impl_find (EphyEmbedFind *efind,
-	     const char *find_string,
-	     gboolean links_only)
+	   const char *find_string,
+	   gboolean links_only)
 {
-  return EPHY_EMBED_FIND_FOUND;
+	return EPHY_EMBED_FIND_FOUND;
 }
 
 static EphyEmbedFindResult
@@ -60,7 +61,7 @@ impl_find_again (EphyEmbedFind *efind,
 		 gboolean forward,
 		 gboolean links_only)
 {
-  return EPHY_EMBED_FIND_FOUND;
+	return EPHY_EMBED_FIND_FOUND;
 }
 
 static void
@@ -73,7 +74,7 @@ static gboolean
 impl_activate_link (EphyEmbedFind *efind,
 		    GdkModifierType mask)
 {
-  return FALSE;
+	return FALSE;
 }
 
 static void
@@ -101,5 +102,5 @@ webkit_embed_find_class_init (WebKitEmbe
 }
 
 G_DEFINE_TYPE_WITH_CODE (WebKitEmbedFind, webkit_embed_find, G_TYPE_OBJECT,
-                         G_IMPLEMENT_INTERFACE (EPHY_TYPE_EMBED_FIND,
-                                                ephy_find_iface_init))
+			 G_IMPLEMENT_INTERFACE (EPHY_TYPE_EMBED_FIND,
+						ephy_find_iface_init))
