aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 416b47af5..e0f89df4f 100644
--- a/lib/history/ephy-history-service.c
+++ b/lib/history/ephy-history-service.c
@@ -51,6 +51,7 @@ enum {
CLEARED,
URL_TITLE_CHANGED,
URL_DELETED,
+ HOST_DELETED,
LAST_SIGNAL
};
@@ -195,6 +196,16 @@ ephy_history_service_class_init (EphyHistoryServiceClass *klass)
1,
G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
+ signals[HOST_DELETED] =
+ g_signal_new ("host-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",
@@ -877,6 +888,7 @@ ephy_history_service_execute_delete_host (EphyHistoryService *self,
{
ephy_history_service_delete_host_row (self, host);
ephy_history_service_schedule_commit (self);
+ g_signal_emit (self, signals[HOST_DELETED], 0, host->url);
return TRUE;
}