From c94be155f59d60186497ef9562de3ad8a30646fc Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 5 Dec 2009 01:04:31 +0100 Subject: [PATCH] Open the link in the adblock filter dialogue inside Midori --- extensions/adblock.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/adblock.c b/extensions/adblock.c index df906502..7872f202 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -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 -- 2.39.5