changeset 362fab6a454d in /home/hg/repos/gajim-plugins
author: lovetox <forenjunkie(a)chelo.at>
branches: gtk3
details:gajim-plugins?cmd=changeset;node=362fab6a454d
description: [Linus Heckemann] Fix API change for print_special_text, and GTK deprecation warning
diffstat:
url_image_preview/manifest.ini | 2 +-
url_image_preview/url_image_preview.py | 9 +++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r 1ef6c127f3ab -r 362fab6a454d url_image_preview/manifest.ini
--- a/url_image_preview/manifest.ini Mon Oct 10 14:28:41 2016 +0100
+++ b/url_image_preview/manifest.ini Tue Oct 11 12:07:42 2016 +0200
@@ -1,7 +1,7 @@
[info]
name: Url image preview
short_name: url_image_preview
-version: 0.5.4
+version: 0.5.5
description: Url image preview in chatbox.
authors = Denis Fomin <fominde(a)gmail.com>
Yann Leboulanger <asterix(a)lagaule.org>
diff -r 1ef6c127f3ab -r 362fab6a454d url_image_preview/url_image_preview.py
--- a/url_image_preview/url_image_preview.py Mon Oct 10 14:28:41 2016 +0100
+++ b/url_image_preview/url_image_preview.py Tue Oct 11 12:07:42 2016 +0200
@@ -46,7 +46,7 @@
self.controls = []
def print_special_text(self, tv, special_text, other_tags, graphics=True,
- additional_data):
+ additional_data={}):
for control in self.controls:
if control.chat_control.conv_textview != tv:
continue
@@ -142,7 +142,12 @@
self.xml.set_translation_domain('gajim_plugins')
self.xml.add_objects_from_file(self.GTK_BUILDER_FILE_PATH, ['vbox1'])
self.preview_size_spinbutton = self.xml.get_object('preview_size')
- adjustment = Gtk.Adjustment(20, 10, 512, 1, 10, 0)
+ adjustment = Gtk.Adjustment(value=20,
+ lower=10,
+ upper=512,
+ step_increment=1,
+ page_increment=10,
+ page_size=0)
self.preview_size_spinbutton.set_adjustment(adjustment)
vbox = self.xml.get_object('vbox1')
self.get_child().pack_start(vbox, True, True, 0)