Open the link in the adblock filter dialogue inside Midori
This commit is contained in:
parent
0518844eee
commit
c94be155f5
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue