aboutsummaryrefslogtreecommitdiffstats
path: root/lib/history/ephy-history-service.h
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-03-06 01:43:04 +0800
committerXan Lopez <xan@igalia.com>2012-03-07 04:49:45 +0800
commitfcf33bc89394ab0f0dca5b776c11b9ee5036c62e (patch)
tree34ac1e7719d95ebf268f980d36513800d2d84610 /lib/history/ephy-history-service.h
parent7c6abe5cb07313cf8cd57d34c8fc8d26dfcf1203 (diff)
downloadgsoc2013-epiphany-fcf33bc89394ab0f0dca5b776c11b9ee5036c62e.tar
gsoc2013-epiphany-fcf33bc89394ab0f0dca5b776c11b9ee5036c62e.tar.gz
gsoc2013-epiphany-fcf33bc89394ab0f0dca5b776c11b9ee5036c62e.tar.bz2
gsoc2013-epiphany-fcf33bc89394ab0f0dca5b776c11b9ee5036c62e.tar.lz
gsoc2013-epiphany-fcf33bc89394ab0f0dca5b776c11b9ee5036c62e.tar.xz
gsoc2013-epiphany-fcf33bc89394ab0f0dca5b776c11b9ee5036c62e.tar.zst
gsoc2013-epiphany-fcf33bc89394ab0f0dca5b776c11b9ee5036c62e.zip
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.h6
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);