[epiphany/overview] ephy-history-service: add "host-deleted" signal
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview] ephy-history-service: add "host-deleted" signal
- Date: Fri, 10 Aug 2012 17:53:12 +0000 (UTC)
commit 92293799c60d990904e39f8581b53a5fb96ee651
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 0c72a76..b7aab16 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",
@@ -875,6 +886,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]