diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2012-08-11 01:47:17 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2012-09-01 02:34:00 +0800 |
commit | f2036c2967cc0366f466f44dab3fb722cfe2897f (patch) | |
tree | 036ce66e30dae9d44f2f9b863c39247aaceaafcf | |
parent | a6ddbcdc007ac04fc191abd6ad829eaa0c12e54e (diff) | |
download | gsoc2013-epiphany-f2036c2967cc0366f466f44dab3fb722cfe2897f.tar.gz gsoc2013-epiphany-f2036c2967cc0366f466f44dab3fb722cfe2897f.tar.zst gsoc2013-epiphany-f2036c2967cc0366f466f44dab3fb722cfe2897f.zip |
ephy-history-service: add "host-deleted" signal
-rw-r--r-- | lib/history/ephy-history-service.c | 12 |
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; } |