]> spindle.queued.net Git - midori/commitdiff
Open the link in the adblock filter dialogue inside Midori
authorChristian Dywan <christian@twotoasts.de>
Sat, 5 Dec 2009 00:04:31 +0000 (01:04 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 5 Dec 2009 00:28:58 +0000 (01:28 +0100)
extensions/adblock.c

index df906502576663a5766e6f95924b3dd1ce3eff78..7872f202e7ceb2841d44f104a52c04de5f54934d 100644 (file)
@@ -338,7 +338,11 @@ static gboolean
 adblock_activate_link_cb (GtkWidget*   label,
                           const gchar* uri)
 {
-    return sokoke_show_uri (gtk_widget_get_screen (label), uri, GDK_CURRENT_TIME, NULL);
+    MidoriBrowser* browser = midori_browser_get_for_widget (label);
+    gint n = midori_browser_add_uri (browser, uri);
+    if (n > -1)
+        midori_browser_set_current_page (browser, n);
+    return n > -1;
 }
 #endif