diff options
author | Jean-François Rameau <jframeau@cvs.gnome.org> | 2006-12-18 02:09:55 +0800 |
---|---|---|
committer | Jean-François Rameau <jframeau@src.gnome.org> | 2006-12-18 02:09:55 +0800 |
commit | e535cb6671701bdd1ee7b53f4994367ef89172c9 (patch) | |
tree | 112b2eeac4ed86870c3501dbab917b8fab944f3e /embed/ephy-adblock-manager.c | |
parent | 73f71bde0e7e256ac5636e7d0f4693aa83e67a56 (diff) | |
download | gsoc2013-epiphany-e535cb6671701bdd1ee7b53f4994367ef89172c9.tar gsoc2013-epiphany-e535cb6671701bdd1ee7b53f4994367ef89172c9.tar.gz gsoc2013-epiphany-e535cb6671701bdd1ee7b53f4994367ef89172c9.tar.bz2 gsoc2013-epiphany-e535cb6671701bdd1ee7b53f4994367ef89172c9.tar.lz gsoc2013-epiphany-e535cb6671701bdd1ee7b53f4994367ef89172c9.tar.xz gsoc2013-epiphany-e535cb6671701bdd1ee7b53f4994367ef89172c9.tar.zst gsoc2013-epiphany-e535cb6671701bdd1ee7b53f4994367ef89172c9.zip |
Add a signal so one can react after some rules have been edited.
2006-12-17 Jean-François Rameau <jframeau@cvs.gnome.org>
* embed/ephy-adblock-manager.c:
* embed/ephy-adblock-manager.h:
Add a signal so one can react after some rules have been edited.
Diffstat (limited to 'embed/ephy-adblock-manager.c')
-rw-r--r-- | embed/ephy-adblock-manager.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/embed/ephy-adblock-manager.c b/embed/ephy-adblock-manager.c index 39bb8d9ff..dd627fddf 100644 --- a/embed/ephy-adblock-manager.c +++ b/embed/ephy-adblock-manager.c @@ -36,6 +36,8 @@ G_DEFINE_TYPE (EphyAdBlockManager, ephy_adblock_manager, G_TYPE_OBJECT); #define EPHY_ADBLOCK_MANAGER_GET_PRIVATE(object) \ (G_TYPE_INSTANCE_GET_PRIVATE ((object), \ EPHY_TYPE_ADBLOCK_MANAGER, EphyAdBlockManagerPrivate)) + + /** * ephy_adblock_manager_set_blocker: * @shell: a #EphyAdBlockManager @@ -95,6 +97,16 @@ ephy_adblock_manager_class_init (EphyAdBlockManagerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); + g_signal_new ("rules_changed", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (EphyAdBlockManagerClass, rules_changed), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, + 0, + 0); + g_type_class_add_private (object_class, sizeof (EphyAdBlockManagerPrivate)); } |