aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2012-08-09 21:57:18 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2012-09-01 02:34:00 +0800
commit7bcd81c6a23bd6693816124639628a4547169726 (patch)
tree24e243b309d2618dd42bb1914224817a494b87c7 /lib
parent2c6125c8768c138897d1d2b91b711520d61c0eee (diff)
downloadgsoc2013-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
Diffstat (limited to 'lib')
-rw-r--r--lib/history/ephy-history-service.c13
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;
}
}