[epiphany] ephy-history-service: add "host-deleted" signal
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-history-service: add "host-deleted" signal
- Date: Fri, 31 Aug 2012 18:40:41 +0000 (UTC)
commit f2036c2967cc0366f466f44dab3fb722cfe2897f
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri Aug 10 20:47:17 2012 +0300
ephy-history-service: add "host-deleted" signal
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 416b47a..e0f89df 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]