From: Alexander Butenko Date: Sat, 3 Dec 2011 00:04:14 +0000 (-0400) Subject: Remove conext-ready signal from browser and view X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42387e9b8ba64a1dff6cff8c4d741a206ebbfe81;p=midori Remove conext-ready signal from browser and view --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 8677b910..0b6d5e3f 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -141,7 +141,6 @@ enum REMOVE_TAB, MOVE_TAB, ACTIVATE_ACTION, - CONTEXT_READY, ADD_DOWNLOAD, SEND_NOTIFICATION, POPULATE_TOOL_MENU, @@ -547,14 +546,6 @@ midori_view_notify_progress_cb (GtkWidget* view, _midori_browser_update_progress (browser, MIDORI_VIEW (view)); } -static void -midori_view_context_ready_cb (GtkWidget* view, - JSContextRef js_context, - MidoriBrowser* browser) -{ - g_signal_emit (browser, signals[CONTEXT_READY], 0, js_context); -} - static void midori_view_notify_uri_cb (GtkWidget* widget, GParamSpec* pspec, @@ -1548,8 +1539,6 @@ _midori_browser_add_tab (MidoriBrowser* browser, midori_view_notify_load_status_cb, browser, "signal::notify::progress", midori_view_notify_progress_cb, browser, - "signal::context-ready", - midori_view_context_ready_cb, browser, "signal::notify::uri", midori_view_notify_uri_cb, browser, "signal::notify::title", @@ -1836,17 +1825,6 @@ midori_browser_class_init (MidoriBrowserClass* class) G_TYPE_NONE, 1, G_TYPE_STRING); - signals[CONTEXT_READY] = g_signal_new ( - "context-ready", - G_TYPE_FROM_CLASS (class), - (GSignalFlags)(G_SIGNAL_RUN_LAST), - 0, - 0, - NULL, - g_cclosure_marshal_VOID__POINTER, - G_TYPE_NONE, 1, - G_TYPE_POINTER); - /** * MidoriBrowser::add-download: * @browser: the object on which the signal is emitted diff --git a/midori/midori-view.c b/midori/midori-view.c index 000a4dad..fd3b56af 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -168,7 +168,6 @@ enum enum { ACTIVATE_ACTION, CONSOLE_MESSAGE, - CONTEXT_READY, ATTACH_INSPECTOR, DETACH_INSPECTOR, NEW_TAB, @@ -248,17 +247,6 @@ midori_view_class_init (MidoriViewClass* class) G_TYPE_INT, G_TYPE_STRING); - signals[CONTEXT_READY] = g_signal_new ( - "context-ready", - G_TYPE_FROM_CLASS (class), - (GSignalFlags)(G_SIGNAL_RUN_LAST), - 0, - 0, - NULL, - g_cclosure_marshal_VOID__POINTER, - G_TYPE_NONE, 1, - G_TYPE_POINTER); - signals[ATTACH_INSPECTOR] = g_signal_new ( "attach-inspector", G_TYPE_FROM_CLASS (class), @@ -2967,8 +2955,6 @@ webkit_web_view_window_object_cleared_cb (GtkWidget* web_view, NULL); g_free (result); } - - g_signal_emit (view, signals[CONTEXT_READY], 0, js_context); } static void