diff options
author | Manuel QuiƱones <manuq@laptop.org> | 2013-10-21 15:33:25 (GMT) |
---|---|---|
committer | Manuel QuiƱones <manuq@laptop.org> | 2013-10-21 15:33:25 (GMT) |
commit | f5ee6f2b01123e0a56eac80f9c1fbd7dfc31f3ef (patch) | |
tree | 1e0eb8dab70d27ea8197d14d4f05a9b58d583807 | |
parent | 092a829732d56a1c83cffb0ccebcf27baf7a9c6e (diff) |
Palette: use URL of the image when there is an image with a link
Fixes: keep image doesn't work if the image is also a link.
-rw-r--r-- | palettes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/palettes.py b/palettes.py index 951818a..fedf9be 100644 --- a/palettes.py +++ b/palettes.py @@ -136,11 +136,11 @@ class ContentInvoker(Invoker): title = hit_test.props.inner_node.get_text_content() url = hit_test.props.link_uri - elif hit_info['is image']: + if hit_info['is image']: title = hit_test.props.inner_node.get_title() url = hit_test.props.image_uri - elif hit_info['is selection']: + if hit_info['is selection']: # TODO: find a way to get the selected text so we can use # it as the title of the Palette. # The function webkit_web_view_get_selected_text was removed |