diff options
author | Jean-François Rameau <jframeau@cvs.gnome.org> | 2006-01-16 05:05:31 +0800 |
---|---|---|
committer | Jean-François Rameau <jframeau@src.gnome.org> | 2006-01-16 05:05:31 +0800 |
commit | 2097f11220e25f83dda2026d07cc66e7a0a31544 (patch) | |
tree | d63b242ce65ca7345fe56308f3ba54773d7181fa /lib/ephy-adblock.h | |
parent | a5f030995805e069abfe185ffff438e9f28d5ee1 (diff) | |
download | gsoc2013-epiphany-2097f11220e25f83dda2026d07cc66e7a0a31544.tar gsoc2013-epiphany-2097f11220e25f83dda2026d07cc66e7a0a31544.tar.gz gsoc2013-epiphany-2097f11220e25f83dda2026d07cc66e7a0a31544.tar.bz2 gsoc2013-epiphany-2097f11220e25f83dda2026d07cc66e7a0a31544.tar.lz gsoc2013-epiphany-2097f11220e25f83dda2026d07cc66e7a0a31544.tar.xz gsoc2013-epiphany-2097f11220e25f83dda2026d07cc66e7a0a31544.tar.zst gsoc2013-epiphany-2097f11220e25f83dda2026d07cc66e7a0a31544.zip |
Add a method to EphyAdblock interface, ephy_adblock_manager_edit_rule, so
2006-01-15 Jean-François Rameau <jframeau@cvs.gnome.org>
* lib/ephy-adblock.h:
* lib/ephy-adblock.c:
* embed/ephy-adblock-manager.h:
* embed/ephy-adblock-manager.c:
Add a method to EphyAdblock interface, ephy_adblock_manager_edit_rule,
so one can allow/disallow an url.
Add a method to EphyAdblockManager, ephy_adblock_manager_has_blocker,
so one can ask it whether a blocker is running.
Diffstat (limited to 'lib/ephy-adblock.h')
-rw-r--r-- | lib/ephy-adblock.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ephy-adblock.h b/lib/ephy-adblock.h index f102a1961..3e4bb50ba 100644 --- a/lib/ephy-adblock.h +++ b/lib/ephy-adblock.h @@ -66,6 +66,10 @@ struct _EphyAdBlockIface gboolean (* should_load) (EphyAdBlock *adblock, const char *url, AdUriCheckType check_type); + + void (* edit_rule) (EphyAdBlock *adblock, + const char *url, + gboolean allowed); }; GType ephy_adblock_get_type (void); @@ -74,6 +78,10 @@ gboolean ephy_adblock_should_load (EphyAdBlock *adblock, const char *url, AdUriCheckType check_type); +void ephy_adblock_edit_rule (EphyAdBlock *adblock, + const char *url, + gboolean allowed); + G_END_DECLS #endif |