diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-adblock-manager.c | 12 | ||||
-rw-r--r-- | embed/ephy-adblock-manager.h | 3 |
2 files changed, 15 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)); } diff --git a/embed/ephy-adblock-manager.h b/embed/ephy-adblock-manager.h index 13bd808e4..d6889e39f 100644 --- a/embed/ephy-adblock-manager.h +++ b/embed/ephy-adblock-manager.h @@ -48,6 +48,9 @@ struct _EphyAdBlockManager { struct _EphyAdBlockManagerClass { GObjectClass parent_class; + + /* Signals */ + void (* rules_changed) (EphyAdBlockManager *manager); }; GType ephy_adblock_manager_get_type (void); |