changeset b08c72baa3af in /home/hg/repos/gajim-plugins
author: Denis Fomin fominde@gmail.com branches: gtk3 details:gajim-plugins?cmd=changeset;node=b08c72baa3af description: UrlShortenerPlugin. Fix deactivation
diffstat:
url_shortener/manifest.ini | 2 +- url_shortener/url_shortener.py | 2 ++ 2 файлов изменено, 3 вставок(+), 1 удалений(-)
различия (24 строк):
diff -r 4cebc64451dc -r b08c72baa3af url_shortener/manifest.ini --- a/url_shortener/manifest.ini Thu Aug 15 12:27:51 2013 +0400 +++ b/url_shortener/manifest.ini Wed Sep 04 21:57:11 2013 +0400 @@ -1,7 +1,7 @@ [info] name: Url Shortener short_name: url_shortener -version: 0.3.3 +version: 0.3.4 description: Plugin that allows users to shorten a long URL in messages. For example, you can turn this link: https://trac.gajim.org/timeline diff -r 4cebc64451dc -r b08c72baa3af url_shortener/url_shortener.py --- a/url_shortener/url_shortener.py Thu Aug 15 12:27:51 2013 +0400 +++ b/url_shortener/url_shortener.py Wed Sep 04 21:57:11 2013 +0400 @@ -110,6 +110,8 @@ self.chat_control.handlers[self.id_] = self.textview.tv
def print_special_text(self, special_text, other_tags, graphics=True): + if not self.plugin.active: + return is_xhtml_link = None text_is_valid_uri = False buffer_ = self.textview.tv.get_buffer()