Open the link in the adblock filter dialogue inside Midori

This commit is contained in:
Christian Dywan 2009-12-05 01:04:31 +01:00
parent 0518844eee
commit c94be155f5

View 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