From a6ddbcdc007ac04fc191abd6ad829eaa0c12e54e Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Fri, 10 Aug 2012 20:45:12 +0300 Subject: ephy-history-service: add "url-deleted" signal --- lib/history/ephy-history-service.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/history') 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); -- cgit v1.2.3