From f5ee6f2b01123e0a56eac80f9c1fbd7dfc31f3ef Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Mon, 21 Oct 2013 15:33:25 +0000 Subject: 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. --- 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 -- cgit v0.9.1