aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-history.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-11-14 07:15:57 +0800
committerXan Lopez <xan@src.gnome.org>2007-11-14 07:15:57 +0800
commitd6350b598732e34420261238b01d2bfb187349c1 (patch)
tree44ae47001b310b432adf9dcdc87bb0e729d28829 /embed/ephy-history.c
parent68a134b7bbdf147afca4d3b2ba361c73155bbeba (diff)
downloadgsoc2013-epiphany-d6350b598732e34420261238b01d2bfb187349c1.tar
gsoc2013-epiphany-d6350b598732e34420261238b01d2bfb187349c1.tar.gz
gsoc2013-epiphany-d6350b598732e34420261238b01d2bfb187349c1.tar.bz2
gsoc2013-epiphany-d6350b598732e34420261238b01d2bfb187349c1.tar.lz
gsoc2013-epiphany-d6350b598732e34420261238b01d2bfb187349c1.tar.xz
gsoc2013-epiphany-d6350b598732e34420261238b01d2bfb187349c1.tar.zst
gsoc2013-epiphany-d6350b598732e34420261238b01d2bfb187349c1.zip
Add icon-updated signal to EphyHistory.
Use it to update the bookmarks icon, as it was done in EphyTab before. svn path=/trunk/; revision=7687
Diffstat (limited to 'embed/ephy-history.c')
-rw-r--r--embed/ephy-history.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/embed/ephy-history.c b/embed/ephy-history.c
index a59314865..57f4bc0ca 100644
--- a/embed/ephy-history.c
+++ b/embed/ephy-history.c
@@ -84,7 +84,8 @@ enum
VISITED,
CLEARED,
REDIRECT,
- LAST_SIGNAL
+ ICON_UPDATED,
+ LAST_SIGNAL
};
static guint signals[LAST_SIGNAL] = { 0 };
@@ -223,6 +224,17 @@ ephy_history_class_init (EphyHistoryClass *klass)
G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE,
G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
+ signals[ICON_UPDATED] =
+ g_signal_new ("icon_updated",
+ G_OBJECT_CLASS_TYPE (object_class),
+ G_SIGNAL_RUN_FIRST,
+ G_STRUCT_OFFSET (EphyHistoryClass, icon_updated),
+ NULL, NULL,
+ ephy_marshal_VOID__STRING_STRING,
+ G_TYPE_NONE,
+ 2,
+ G_TYPE_STRING, G_TYPE_STRING);
+
g_type_class_add_private (object_class, sizeof (EphyHistoryPrivate));
}
@@ -965,6 +977,8 @@ ephy_history_set_icon (EphyHistory *gh,
ephy_node_set_property_string (host, EPHY_NODE_PAGE_PROP_ICON,
icon);
}
+
+ g_signal_emit (gh, signals[ICON_UPDATED], 0, url, icon);
}
void