diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2012-08-09 21:57:18 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2012-09-01 02:34:00 +0800 |
commit | 7bcd81c6a23bd6693816124639628a4547169726 (patch) | |
tree | 24e243b309d2618dd42bb1914224817a494b87c7 | |
parent | 2c6125c8768c138897d1d2b91b711520d61c0eee (diff) | |
download | gsoc2013-epiphany-7bcd81c6a23bd6693816124639628a4547169726.tar gsoc2013-epiphany-7bcd81c6a23bd6693816124639628a4547169726.tar.gz gsoc2013-epiphany-7bcd81c6a23bd6693816124639628a4547169726.tar.bz2 gsoc2013-epiphany-7bcd81c6a23bd6693816124639628a4547169726.tar.lz gsoc2013-epiphany-7bcd81c6a23bd6693816124639628a4547169726.tar.xz gsoc2013-epiphany-7bcd81c6a23bd6693816124639628a4547169726.tar.zst gsoc2013-epiphany-7bcd81c6a23bd6693816124639628a4547169726.zip |
ephy-history-service: add "url-title-changed" signal
-rw-r--r-- | lib/history/ephy-history-service.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/history/ephy-history-service.c b/lib/history/ephy-history-service.c index 64b1760cc..37410bb2f 100644 --- a/lib/history/ephy-history-service.c +++ b/lib/history/ephy-history-service.c @@ -49,6 +49,7 @@ typedef enum { enum { VISIT_URL, CLEARED, + URL_TITLE_CHANGED, LAST_SIGNAL }; @@ -172,6 +173,17 @@ ephy_history_service_class_init (EphyHistoryServiceClass *klass) G_TYPE_NONE, 0); + signals[URL_TITLE_CHANGED] = + g_signal_new ("url-title-changed", + G_OBJECT_CLASS_TYPE (gobject_class), + G_SIGNAL_RUN_LAST, + 0, NULL, NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 2, + G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE, + G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE); + g_object_class_install_property (gobject_class, PROP_HISTORY_FILENAME, g_param_spec_string ("history-filename", @@ -690,6 +702,7 @@ ephy_history_service_execute_set_url_title (EphyHistoryService *self, url->title = title; ephy_history_service_update_url_row (self, url); ephy_history_service_schedule_commit (self); + g_signal_emit (self, signals[URL_TITLE_CHANGED], 0, url->url, url->title); return TRUE; } } |