aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-03-16 08:16:30 +0800
committerXan Lopez <xan@igalia.com>2012-03-16 08:18:08 +0800
commit9d8fd9a553a114ef9b5d8ba559bde0899539a44b (patch)
treed6a3b780c5567348cee169884f3ef715de0eca8b /embed
parent76ba84b394edbaf7e0b4ff2053612fcb13c909da (diff)
downloadgsoc2013-epiphany-9d8fd9a553a114ef9b5d8ba559bde0899539a44b.tar
gsoc2013-epiphany-9d8fd9a553a114ef9b5d8ba559bde0899539a44b.tar.gz
gsoc2013-epiphany-9d8fd9a553a114ef9b5d8ba559bde0899539a44b.tar.bz2
gsoc2013-epiphany-9d8fd9a553a114ef9b5d8ba559bde0899539a44b.tar.lz
gsoc2013-epiphany-9d8fd9a553a114ef9b5d8ba559bde0899539a44b.tar.xz
gsoc2013-epiphany-9d8fd9a553a114ef9b5d8ba559bde0899539a44b.tar.zst
gsoc2013-epiphany-9d8fd9a553a114ef9b5d8ba559bde0899539a44b.zip
Fix bookmarklet's titles when they are created
This was pretty much broken since the Gecko days. On top of that, catch the case where the bookmarklet title is in the child node of the anchor element, which we never got right before. https://bugzilla.gnome.org/show_bug.cgi?id=672194
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed-event.c7
-rw-r--r--embed/ephy-embed-event.h29
2 files changed, 22 insertions, 14 deletions
diff --git a/embed/ephy-embed-event.c b/embed/ephy-embed-event.c
index bd3ca818d..f21b7a2f2 100644
--- a/embed/ephy-embed-event.c
+++ b/embed/ephy-embed-event.c
@@ -181,3 +181,10 @@ ephy_embed_event_has_property (EphyEmbedEvent *event,
}
+WebKitHitTestResult *
+ephy_embed_event_get_hit_test_result (EphyEmbedEvent *event)
+{
+ g_return_val_if_fail (EPHY_IS_EMBED_EVENT (event), NULL);
+
+ return event->priv->hit_test_result;
+}
diff --git a/embed/ephy-embed-event.h b/embed/ephy-embed-event.h
index 6347be957..633104c07 100644
--- a/embed/ephy-embed-event.h
+++ b/embed/ephy-embed-event.h
@@ -56,20 +56,21 @@ struct EphyEmbedEventClass {
};
-GType ephy_embed_event_get_type (void);
-EphyEmbedEvent *ephy_embed_event_new (GdkEventButton *event,
- WebKitHitTestResult *hit_test_result);
-guint ephy_embed_event_get_context (EphyEmbedEvent *event);
-guint ephy_embed_event_get_button (EphyEmbedEvent *event);
-guint ephy_embed_event_get_modifier (EphyEmbedEvent *event);
-void ephy_embed_event_get_coords (EphyEmbedEvent *event,
- guint *x,
- guint *y);
-void ephy_embed_event_get_property (EphyEmbedEvent *event,
- const char *name,
- GValue *value);
-gboolean ephy_embed_event_has_property (EphyEmbedEvent *event,
- const char *name);
+GType ephy_embed_event_get_type (void);
+EphyEmbedEvent * ephy_embed_event_new (GdkEventButton *event,
+ WebKitHitTestResult *hit_test_result);
+guint ephy_embed_event_get_context (EphyEmbedEvent *event);
+guint ephy_embed_event_get_button (EphyEmbedEvent *event);
+guint ephy_embed_event_get_modifier (EphyEmbedEvent *event);
+void ephy_embed_event_get_coords (EphyEmbedEvent *event,
+ guint *x,
+ guint *y);
+void ephy_embed_event_get_property (EphyEmbedEvent *event,
+ const char *name,
+ GValue *value);
+gboolean ephy_embed_event_has_property (EphyEmbedEvent *event,
+ const char *name);
+WebKitHitTestResult *ephy_embed_event_get_hit_test_result (EphyEmbedEvent *event);
G_END_DECLS