Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <mailtrash@posteo.de>2017-12-19 22:29:33 +0300
committerDaniel <mailtrash@posteo.de>2017-12-19 22:29:33 +0300
commit2b3769f6e68ff386239018a1dd37a6419f0a4f45 (patch)
tree8acb815f7eeb2f047308449e9e14a30be2d97225
parentf03191286b706e415d08e3c1b41348d23975d2a4 (diff)
[preview] Display preview beginning with a new line and add tooltip
-rw-r--r--url_image_preview/manifest.ini2
-rw-r--r--url_image_preview/url_image_preview.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/url_image_preview/manifest.ini b/url_image_preview/manifest.ini
index c16495c..076b92b 100644
--- a/url_image_preview/manifest.ini
+++ b/url_image_preview/manifest.ini
@@ -1,7 +1,7 @@
[info]
name: Url image preview
short_name: url_image_preview
-version: 2.1.2
+version: 2.1.3
description: Displays a preview of links to images
authors = Denis Fomin <fominde@gmail.com>
Yann Leboulanger <asterix@lagaule.org>
diff --git a/url_image_preview/url_image_preview.py b/url_image_preview/url_image_preview.py
index c3f21f2..1f4808d 100644
--- a/url_image_preview/url_image_preview.py
+++ b/url_image_preview/url_image_preview.py
@@ -360,13 +360,14 @@ class Base(object):
buffer_ = repl_start.get_buffer()
iter_ = buffer_.get_iter_at_mark(repl_start)
-
+ buffer_.insert(iter_, "\n")
anchor = buffer_.create_child_anchor(iter_)
if isinstance(pixbuf, GdkPixbuf.PixbufAnimation):
image = Gtk.Image.new_from_animation(pixbuf)
else:
image = Gtk.Image.new_from_pixbuf(pixbuf)
+ event_box.set_tooltip_text(url)
event_box.add(image)
event_box.show_all()
self.textview.tv.add_child_at_anchor(event_box, anchor)