diff options
author | Diego Escalante Urrelo <descalante@igalia.com> | 2010-05-14 09:22:00 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <descalante@igalia.com> | 2010-05-14 20:05:38 +0800 |
commit | 108762f002b78829918460889de3420d6fef175c (patch) | |
tree | 44738338a1dd4a69b57f512098f59a79d8ef51cf | |
parent | abd94433fed0d0981ed3d3797f355d2ef5d1053c (diff) | |
download | gsoc2013-epiphany-108762f002b78829918460889de3420d6fef175c.tar gsoc2013-epiphany-108762f002b78829918460889de3420d6fef175c.tar.gz gsoc2013-epiphany-108762f002b78829918460889de3420d6fef175c.tar.bz2 gsoc2013-epiphany-108762f002b78829918460889de3420d6fef175c.tar.lz gsoc2013-epiphany-108762f002b78829918460889de3420d6fef175c.tar.xz gsoc2013-epiphany-108762f002b78829918460889de3420d6fef175c.tar.zst gsoc2013-epiphany-108762f002b78829918460889de3420d6fef175c.zip |
ephy-embed-single: remove add_sidebar signal
We removed the sidebar extension for 2.30.
-rw-r--r-- | embed/ephy-embed-single.c | 20 | ||||
-rw-r--r-- | embed/ephy-embed-single.h | 4 | ||||
-rw-r--r-- | 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 3b13e4f63..04ead3f57 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 321010503..00307e6a6 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 2c3e3e2d2..2d575d092 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 |