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:
authorDenis Fomin <fominde@gmail.com>2011-09-30 10:46:22 +0400
committerDenis Fomin <fominde@gmail.com>2011-09-30 10:46:22 +0400
commit0cb11c7e10933864cab114bf88ad68cc6e644f54 (patch)
tree2dfd6703d87d0c0773fc9973577d8f339914cc30 /juick/plugin.py
parent83506314802184f07cc1709fef1d27ad5a7f8e78 (diff)
Juick, Url image preview. Use gajim.thread_interface
Diffstat (limited to 'juick/plugin.py')
-rw-r--r--juick/plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick/plugin.py b/juick/plugin.py
index 7e17106..ed4c67a 100644
--- a/juick/plugin.py
+++ b/juick/plugin.py
@@ -10,7 +10,6 @@ from string import upper
from string import rstrip
import locale
import sqlite3
-import gobject
from common import helpers
from common import gajim
@@ -376,7 +375,8 @@ class Base(object):
buffer_.insert_with_tags(iter_, special_text, tag)
uid = special_text.split('/')[-1]
url = "http://i.juick.com/photos-512/%s" % uid
- gobject.idle_add(self.insert_pic_preview, mark, special_text, url)
+ gajim.thread_interface(self.insert_pic_preview, [mark, special_text,
+ url])
def insert_pic_preview(self, mark, special_text, url):
pixbuf = self.get_pixbuf_from_url( url, self.plugin.config[