Add compatibility for Gajim 1.1
This commit is contained in:
@@ -23,6 +23,11 @@ from gi.repository import Gtk
|
||||
from gajim.options_dialog import OptionsDialog, GenericOption, SpinOption
|
||||
from gajim.common.const import Option, OptionType, OptionKind
|
||||
|
||||
# Since Gajim 1.1.0 _() has to be imported
|
||||
try:
|
||||
from gajim.common.i18n import _
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
class UrlImagePreviewConfigDialog(OptionsDialog):
|
||||
def __init__(self, plugin, parent):
|
||||
|
||||
@@ -17,13 +17,19 @@
|
||||
|
||||
import urllib.request as urllib2
|
||||
import socket
|
||||
import re
|
||||
import ssl
|
||||
import logging
|
||||
import os
|
||||
|
||||
from gajim.common import app
|
||||
import logging
|
||||
|
||||
import os
|
||||
# Since Gajim 1.1.0 _() has to be imported
|
||||
try:
|
||||
from gajim.common.i18n import _
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
if os.name == 'nt':
|
||||
import certifi
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[info]
|
||||
name: Url image preview
|
||||
short_name: url_image_preview
|
||||
version: 2.3.0
|
||||
version: 2.3.1
|
||||
description: Displays a preview of links to images
|
||||
authors = Denis Fomin <fominde@gmail.com>
|
||||
Yann Leboulanger <asterix@lagaule.org>
|
||||
|
||||
@@ -38,6 +38,12 @@ from url_image_preview.http_functions import get_http_head, get_http_file
|
||||
from url_image_preview.config_dialog import UrlImagePreviewConfigDialog
|
||||
from url_image_preview.resize_gif import resize_gif
|
||||
|
||||
# Since Gajim 1.1.0 _() has to be imported
|
||||
try:
|
||||
from gajim.common.i18n import _
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
try:
|
||||
from gajim.gtk.filechoosers import FileSaveDialog
|
||||
NEW_FILECHOOSER = True
|
||||
|
||||
Reference in New Issue
Block a user