[epiphany/gnome-2-30] ephy-embed-single: remove add_sidebar signal



commit 577743e397bf46569531efb8d364798f2d07d80e
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Thu May 13 20:22:00 2010 -0500

    ephy-embed-single: remove add_sidebar signal
    
    We removed the sidebar extension for 2.30.

 embed/ephy-embed-single.c |   20 --------------------
 embed/ephy-embed-single.h |    4 ----
 src/ephy-shell.c          |   41 -----------------------------------------
 3 files changed, 0 insertions(+), 65 deletions(-)
---
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index 3b13e4f..04ead3f 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -319,26 +319,6 @@ ephy_embed_single_class_init (EphyEmbedSingleClass *klass)
                 G_TYPE_STRING);
 
   /**
-   * EphyEmbedSingle::add-sidebar:
-   * @single:
-   * @url: The url of the sidebar to be added
-   * @title: The title of the sidebar to be added
-   *
-   * The ::add-sidebar signal is emitted when the user clicks a javascript link that
-   * requests adding a url to the sidebar.
-   **/
-  g_signal_new ("add-sidebar",
-                EPHY_TYPE_EMBED_SINGLE,
-                G_SIGNAL_RUN_LAST,
-                G_STRUCT_OFFSET (EphyEmbedSingleClass, add_sidebar),
-                g_signal_accumulator_true_handled, NULL,
-                ephy_marshal_BOOLEAN__STRING_STRING,
-                G_TYPE_BOOLEAN,
-                2,
-                G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE,
-                G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
-
-  /**
    * EphyEmbedSingle::add-search-engine
    * @single:
    * @url: The url of the search engine definition file
diff --git a/embed/ephy-embed-single.h b/embed/ephy-embed-single.h
index 3210105..00307e6 100644
--- a/embed/ephy-embed-single.h
+++ b/embed/ephy-embed-single.h
@@ -68,10 +68,6 @@ struct _EphyEmbedSingleClass
                                char *mime_type,
                                char *uri);
 
-  gboolean (* add_sidebar)    (EphyEmbedSingle *single,
-                               const char *url,
-                               const char *title);
-
   gboolean (* add_search_engine) (EphyEmbedSingle *single,
                                   const char *url,
                                   const char *icon_url,
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index fc4caf9..5a18203 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -149,43 +149,6 @@ ephy_shell_new_window_cb (EphyEmbedSingle *single,
 		 NULL, NULL, flags, chromemask, is_popup, 0);
 }
 
-
-static gboolean
-ephy_shell_add_sidebar_cb (EphyEmbedSingle *embed_single,
-			   const char *url,
-			   const char *title,
-			   EphyShell *shell)
-{
-	EphySession *session;
-	EphyWindow *window;
-	GtkWidget *dialog;
-
-	session = EPHY_SESSION (ephy_shell_get_session (shell));
-	g_return_val_if_fail (EPHY_IS_SESSION (session), FALSE);
-
-	window = ephy_session_get_active_window (session);
-
-	dialog = gtk_message_dialog_new (GTK_WINDOW (window),
-					 GTK_DIALOG_DESTROY_WITH_PARENT,
-					 GTK_MESSAGE_ERROR,
-					 GTK_BUTTONS_OK,
-					 _("Sidebar extension required"));
-
-	gtk_window_set_title (GTK_WINDOW (dialog), _("Sidebar Extension Required"));
-	gtk_window_set_icon_name (GTK_WINDOW (dialog), EPHY_STOCK_EPHY);
-
-	gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
-		  _("The link you clicked needs the sidebar extension to be "
-		    "installed."));
-
-	g_signal_connect_swapped (dialog, "response", 
-				  G_CALLBACK (gtk_widget_destroy), dialog);
-
-	gtk_widget_show (dialog);
-
-	return TRUE;
-}
-
 #ifdef ENABLE_NETWORK_MANAGER
 
 static void
@@ -223,10 +186,6 @@ impl_get_embed_single (EphyEmbedShell *embed_shell)
 					 G_CALLBACK (ephy_shell_new_window_cb),
 					 shell, G_CONNECT_AFTER);
 
-		g_signal_connect_object (embed_single, "add-sidebar",
-					 G_CALLBACK (ephy_shell_add_sidebar_cb),
-					 shell, G_CONNECT_AFTER);
-
 		priv->embed_single_connected = TRUE;
 
 #ifdef ENABLE_NETWORK_MANAGER



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]