diff options
ephy-history-service: add 'visit-url' signal
Similar to the old EphyHistory 'add-page' signal. It allows blocking
the visit by handling the signal, since the actual logic to add the
visit is in the class' default handler.
The add_visit(s) methods won't emit this signal, but for now we'll
assume that whoever is using those knows what he's doing.
Diffstat (limited to 'lib/history/ephy-history-service.h')
-rw-r--r-- | lib/history/ephy-history-service.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/history/ephy-history-service.h b/lib/history/ephy-history-service.h index 9d8ed2f15..50d79f31f 100644 --- a/lib/history/ephy-history-service.h +++ b/lib/history/ephy-history-service.h @@ -48,7 +48,11 @@ struct _EphyHistoryService { }; struct _EphyHistoryServiceClass { - GObjectClass parent_class; + GObjectClass parent_class; + + /* Signals */ + gboolean (* visit_url) (EphyHistoryService *self, + const char *url); }; GType ephy_history_service_get_type (void); |