]> spindle.queued.net Git - midori/commitdiff
Remove conext-ready signal from browser and view
authorAlexander Butenko <a.butenka@gmail.com>
Sat, 3 Dec 2011 00:04:14 +0000 (20:04 -0400)
committerChristian Dywan <christian@twotoasts.de>
Wed, 7 Dec 2011 19:34:11 +0000 (20:34 +0100)
midori/midori-browser.c
midori/midori-view.c

index 8677b9107826f62dc8c4cab09b8370382ca15f19..0b6d5e3f638925042f271ecb563df13655d8cb12 100644 (file)
@@ -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
index 000a4dadbd0410053bdd003893158f727619043f..fd3b56afc14700d6cba215c5128a58a7760e501d 100644 (file)
@@ -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