aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2012-08-11 01:45:12 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2012-09-01 02:34:00 +0800
commita6ddbcdc007ac04fc191abd6ad829eaa0c12e54e (patch)
tree49b37a146c9f779a375d708e5809a6cd3a56b13a
parent7bcd81c6a23bd6693816124639628a4547169726 (diff)
downloadgsoc2013-epiphany-a6ddbcdc007ac04fc191abd6ad829eaa0c12e54e.tar.gz
gsoc2013-epiphany-a6ddbcdc007ac04fc191abd6ad829eaa0c12e54e.tar.zst
gsoc2013-epiphany-a6ddbcdc007ac04fc191abd6ad829eaa0c12e54e.zip
ephy-history-service: add "url-deleted" signal
-rw-r--r--lib/history/ephy-history-service.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/history/ephy-history-service.c b/lib/history/ephy-history-service.c
index 37410bb2f..416b47af5 100644
--- a/lib/history/ephy-history-service.c
+++ b/lib/history/ephy-history-service.c
@@ -50,6 +50,7 @@ enum {
VISIT_URL,
CLEARED,
URL_TITLE_CHANGED,
+ URL_DELETED,
LAST_SIGNAL
};
@@ -184,6 +185,16 @@ ephy_history_service_class_init (EphyHistoryServiceClass *klass)
G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE,
G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
+ signals[URL_DELETED] =
+ g_signal_new ("url-deleted",
+ G_OBJECT_CLASS_TYPE (gobject_class),
+ G_SIGNAL_RUN_LAST,
+ 0, NULL, NULL,
+ g_cclosure_marshal_VOID__STRING,
+ G_TYPE_NONE,
+ 1,
+ G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
+
g_object_class_install_property (gobject_class,
PROP_HISTORY_FILENAME,
g_param_spec_string ("history-filename",
@@ -849,6 +860,7 @@ ephy_history_service_execute_delete_urls (EphyHistoryService *self,
for (l = urls; l != NULL; l = l->next) {
url = l->data;
ephy_history_service_delete_url (self, url);
+ g_signal_emit (self, signals[URL_DELETED], 0, url->url);
}
ephy_history_service_delete_orphan_hosts (self);