Spellcheck all plugins
This commit is contained in:
committed by
Philipp Hörist
parent
6e430a3ee4
commit
5fc7a77526
@@ -41,7 +41,7 @@ First, thanks for that! Here is how to start:
|
|||||||
|
|
||||||
**Before you put in any work, please contact us on [gajim@conference.gajim.org](xmpp:gajim@conference.gajim.org?join)**
|
**Before you put in any work, please contact us on [gajim@conference.gajim.org](xmpp:gajim@conference.gajim.org?join)**
|
||||||
|
|
||||||
**Dont use dev.gajim.org for any projects that are not directly for the benefit of Gajim**
|
**Don't use dev.gajim.org for any projects that are not directly for the benefit of Gajim**
|
||||||
|
|
||||||
## Plugins list
|
## Plugins list
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Appindicator integration plugin.
|
Appindicator integration plugin.
|
||||||
|
|
||||||
Rewriten from Ubuntu Ayatana Integration plugin
|
Rewritten from Ubuntu Ayatana Integration plugin
|
||||||
2013 Denis Borenko <borenko@rambler.ru>
|
2013 Denis Borenko <borenko@rambler.ru>
|
||||||
2017 Philipp Hörist <philipp@hoerist.com>
|
2017 Philipp Hörist <philipp@hoerist.com>
|
||||||
:license: GPLv3
|
:license: GPLv3
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ class Base(object):
|
|||||||
if event.type == Gdk.EventType.BUTTON_PRESS and event.button.button == 1:
|
if event.type == Gdk.EventType.BUTTON_PRESS and event.button.button == 1:
|
||||||
# left mouse button clicked
|
# left mouse button clicked
|
||||||
begin_iter = iter_.copy()
|
begin_iter = iter_.copy()
|
||||||
# we get the begining of the tag
|
# we get the beginning of the tag
|
||||||
while not begin_iter.begins_tag(texttag):
|
while not begin_iter.begins_tag(texttag):
|
||||||
begin_iter.backward_char()
|
begin_iter.backward_char()
|
||||||
end_iter = iter_.copy()
|
end_iter = iter_.copy()
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ class ClientsIconsPlugin(GajimPlugin):
|
|||||||
client_name = _('Unknown')
|
client_name = _('Unknown')
|
||||||
caps_ = None
|
caps_ = None
|
||||||
if caps:
|
if caps:
|
||||||
# libpurple returns pidgin.im/ only, we have to look for ressource name
|
# libpurple returns pidgin.im/ only, we have to look for resource name
|
||||||
if 'pidgin.im/' in caps:
|
if 'pidgin.im/' in caps:
|
||||||
caps = 'libpurple'
|
caps = 'libpurple'
|
||||||
for client in LIBPURPLE_CLIENTS:
|
for client in LIBPURPLE_CLIENTS:
|
||||||
@@ -447,7 +447,7 @@ class ClientsIconsPlugin(GajimPlugin):
|
|||||||
self.set_icon(roster.model, iter_, self.renderer_num, None, contact)
|
self.set_icon(roster.model, iter_, self.renderer_num, None, contact)
|
||||||
return
|
return
|
||||||
|
|
||||||
# higest contact changed
|
# highest contact changed
|
||||||
if roster.model[iter_][self.renderer_num] is not None:
|
if roster.model[iter_][self.renderer_num] is not None:
|
||||||
caps = contact.client_caps._node
|
caps = contact.client_caps._node
|
||||||
if caps:
|
if caps:
|
||||||
|
|||||||
@@ -274,7 +274,7 @@ class Base(object):
|
|||||||
if event.type == Gdk.EventType.BUTTON_PRESS and event.button.button == 3:
|
if event.type == Gdk.EventType.BUTTON_PRESS and event.button.button == 3:
|
||||||
# show popup menu (right mouse button clicked)
|
# show popup menu (right mouse button clicked)
|
||||||
begin_iter = iter_.copy()
|
begin_iter = iter_.copy()
|
||||||
# we get the begining of the tag
|
# we get the beginning of the tag
|
||||||
while not begin_iter.begins_tag(texttag):
|
while not begin_iter.begins_tag(texttag):
|
||||||
begin_iter.backward_char()
|
begin_iter.backward_char()
|
||||||
end_iter = iter_.copy()
|
end_iter = iter_.copy()
|
||||||
@@ -290,27 +290,27 @@ class Base(object):
|
|||||||
nick = self.juick_nick_re.search(word)
|
nick = self.juick_nick_re.search(word)
|
||||||
if post is None and nick is None:
|
if post is None and nick is None:
|
||||||
return
|
return
|
||||||
childs = self.juick_link_menu.get_children()
|
children = self.juick_link_menu.get_children()
|
||||||
if post:
|
if post:
|
||||||
self.juick_post_full = app.interface.sharp_slash_re\
|
self.juick_post_full = app.interface.sharp_slash_re\
|
||||||
.search(word).group(0)
|
.search(word).group(0)
|
||||||
self.juick_post_uid = post.group(1)
|
self.juick_post_uid = post.group(1)
|
||||||
for menuitem in range(7):
|
for menuitem in range(7):
|
||||||
childs[menuitem].show()
|
children[menuitem].show()
|
||||||
for menuitem in range(7, 13):
|
for menuitem in range(7, 13):
|
||||||
childs[menuitem].hide()
|
children[menuitem].hide()
|
||||||
if nick:
|
if nick:
|
||||||
self.juick_nick = nick.group(0)
|
self.juick_nick = nick.group(0)
|
||||||
for menuitem in range(7):
|
for menuitem in range(7):
|
||||||
childs[menuitem].hide()
|
children[menuitem].hide()
|
||||||
for menuitem in range(7, 13):
|
for menuitem in range(7, 13):
|
||||||
childs[menuitem].show()
|
children[menuitem].show()
|
||||||
self.juick_link_menu.popup(None, None, None, None,
|
self.juick_link_menu.popup(None, None, None, None,
|
||||||
event.button.button, event.time)
|
event.button.button, event.time)
|
||||||
if event.type == Gdk.EventType.BUTTON_PRESS and event.button.button == 1:
|
if event.type == Gdk.EventType.BUTTON_PRESS and event.button.button == 1:
|
||||||
# insert message num or nick (left mouse button clicked)
|
# insert message num or nick (left mouse button clicked)
|
||||||
begin_iter = iter_.copy()
|
begin_iter = iter_.copy()
|
||||||
# we get the begining of the tag
|
# we get the beginning of the tag
|
||||||
while not begin_iter.begins_tag(texttag):
|
while not begin_iter.begins_tag(texttag):
|
||||||
begin_iter.backward_char()
|
begin_iter.backward_char()
|
||||||
end_iter = iter_.copy()
|
end_iter = iter_.copy()
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<requires lib="gtk+" version="2.16"/>
|
<requires lib="gtk+" version="2.16"/>
|
||||||
<!-- interface-naming-policy toplevel-contextual -->
|
<!-- interface-naming-policy toplevel-contextual -->
|
||||||
<object class="GtkTextBuffer" id="textbuffer1">
|
<object class="GtkTextBuffer" id="textbuffer1">
|
||||||
<property name="text">Plug-in decription should be displayed here. This text will be erased during PluginsWindow initialization.</property>
|
<property name="text">Plug-in description should be displayed here. This text will be erased during PluginsWindow initialization.</property>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkWindow" id="window1">
|
<object class="GtkWindow" id="window1">
|
||||||
<child>
|
<child>
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
- Query only the most recent PEP items
|
- Query only the most recent PEP items
|
||||||
|
|
||||||
2.3.6 / 2017-08-21
|
2.3.6 / 2017-08-21
|
||||||
- Adapt to Gaim beeing now a Package
|
- Adapt to Gaim being now a Package
|
||||||
|
|
||||||
2.3.5 / 2017-08-07
|
2.3.5 / 2017-08-07
|
||||||
- Support 12bit IVs on httpupload files
|
- Support 12bit IVs on httpupload files
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
- Fix a bug when publishing devices
|
- Fix a bug when publishing devices
|
||||||
- Fix copying fingerprint
|
- Fix copying fingerprint
|
||||||
- Fix layout issue
|
- Fix layout issue
|
||||||
- Dont handle type 'normal' messages
|
- Don't handle type 'normal' messages
|
||||||
|
|
||||||
2.0.1 / 2017-01-14
|
2.0.1 / 2017-01-14
|
||||||
- Better XEP Compliance
|
- Better XEP Compliance
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ from cryptography.hazmat.primitives.ciphers import algorithms
|
|||||||
from cryptography.hazmat.primitives.ciphers.modes import GCM
|
from cryptography.hazmat.primitives.ciphers.modes import GCM
|
||||||
|
|
||||||
# On Windows we have to import a specific backend because the
|
# On Windows we have to import a specific backend because the
|
||||||
# default_backend() mechanism doesnt work in Gajim for Windows.
|
# default_backend() mechanism doesn't work in Gajim for Windows.
|
||||||
# Its because of how Gajim is build with cx_freeze
|
# Its because of how Gajim is build with cx_freeze
|
||||||
|
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class SQLDatabase():
|
|||||||
c.execute("PRAGMA synchronous=NORMAL;")
|
c.execute("PRAGMA synchronous=NORMAL;")
|
||||||
c.execute("PRAGMA journal_mode;")
|
c.execute("PRAGMA journal_mode;")
|
||||||
mode = c.fetchone()[0]
|
mode = c.fetchone()[0]
|
||||||
# WAL is a persistent DB mode, dont override it if user has set it
|
# WAL is a persistent DB mode, don't override it if user has set it
|
||||||
if mode != 'wal':
|
if mode != 'wal':
|
||||||
c.execute("PRAGMA journal_mode=MEMORY;")
|
c.execute("PRAGMA journal_mode=MEMORY;")
|
||||||
self.dbConn.commit()
|
self.dbConn.commit()
|
||||||
@@ -93,7 +93,7 @@ class SQLDatabase():
|
|||||||
""" Migrates the DB
|
""" Migrates the DB
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Find all double entrys and delete them
|
# Find all double entries and delete them
|
||||||
if user_version(self.dbConn) < 2:
|
if user_version(self.dbConn) < 2:
|
||||||
delete_dupes = """ DELETE FROM identities WHERE _id not in (
|
delete_dupes = """ DELETE FROM identities WHERE _id not in (
|
||||||
SELECT MIN(_id)
|
SELECT MIN(_id)
|
||||||
|
|||||||
@@ -287,8 +287,8 @@ class OMEMOConnection:
|
|||||||
from_jid = self.omemo.store. \
|
from_jid = self.omemo.store. \
|
||||||
getJidFromDevice(msg_dict['sid'])
|
getJidFromDevice(msg_dict['sid'])
|
||||||
if not from_jid:
|
if not from_jid:
|
||||||
log.error('%s => Cant decrypt GroupChat Message '
|
log.error("%s => Can't decrypt GroupChat Message "
|
||||||
'from %s', self.account, msg.resource)
|
"from %s", self.account, msg.resource)
|
||||||
msg.encrypted = 'drop'
|
msg.encrypted = 'drop'
|
||||||
return
|
return
|
||||||
self.groupchat[msg.jid][msg.resource] = from_jid
|
self.groupchat[msg.jid][msg.resource] = from_jid
|
||||||
@@ -301,7 +301,7 @@ class OMEMOConnection:
|
|||||||
plaintext = self.gc_message[msg_dict['payload']]
|
plaintext = self.gc_message[msg_dict['payload']]
|
||||||
del self.gc_message[msg_dict['payload']]
|
del self.gc_message[msg_dict['payload']]
|
||||||
else:
|
else:
|
||||||
log.error('%s => Cant decrypt own GroupChat Message',
|
log.error("%s => Can't decrypt own GroupChat Message",
|
||||||
self.account)
|
self.account)
|
||||||
msg.encrypted = 'drop'
|
msg.encrypted = 'drop'
|
||||||
return
|
return
|
||||||
@@ -497,9 +497,9 @@ class OMEMOConnection:
|
|||||||
'namespace': NS_OMEMO})
|
'namespace': NS_OMEMO})
|
||||||
event.msg_iq.addChild(node=eme_node)
|
event.msg_iq.addChild(node=eme_node)
|
||||||
|
|
||||||
# Add Message for devices that dont support OMEMO
|
# Add Message for devices that don't support OMEMO
|
||||||
support_msg = _('You received a message encrypted with ' \
|
support_msg = _("You received a message encrypted with " \
|
||||||
'OMEMO but your client doesnt support OMEMO.')
|
"OMEMO but your client doesn't support OMEMO.")
|
||||||
event.msg_iq.setBody(support_msg)
|
event.msg_iq.setBody(support_msg)
|
||||||
|
|
||||||
# Store Hint for MAM
|
# Store Hint for MAM
|
||||||
@@ -602,7 +602,7 @@ class OMEMOConnection:
|
|||||||
|
|
||||||
self._handle_device_list_update(None, event.stanza)
|
self._handle_device_list_update(None, event.stanza)
|
||||||
|
|
||||||
# Dont propagate event further
|
# Don't propagate event further
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _handle_device_list_update(self, conn, stanza, fetch_bundle=False):
|
def _handle_device_list_update(self, conn, stanza, fetch_bundle=False):
|
||||||
@@ -695,7 +695,7 @@ class OMEMOConnection:
|
|||||||
self.account, stanza.getError())
|
self.account, stanza.getError())
|
||||||
|
|
||||||
def are_keys_missing(self, contact_jid):
|
def are_keys_missing(self, contact_jid):
|
||||||
""" Checks if devicekeys are missing and querys the
|
""" Checks if devicekeys are missing and queries the
|
||||||
bundles
|
bundles
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
|
|||||||
@@ -41,10 +41,11 @@ from omemo.xmpp import DevicelistPEP
|
|||||||
from omemo.gtk.key import KeyDialog
|
from omemo.gtk.key import KeyDialog
|
||||||
from omemo.gtk.config import OMEMOConfigDialog
|
from omemo.gtk.config import OMEMOConfigDialog
|
||||||
|
|
||||||
|
|
||||||
CRYPTOGRAPHY_MISSING = 'You are missing Python3-Cryptography'
|
CRYPTOGRAPHY_MISSING = 'You are missing Python3-Cryptography'
|
||||||
AXOLOTL_MISSING = 'You are missing Python3-Axolotl or use an outdated version'
|
AXOLOTL_MISSING = 'You are missing Python3-Axolotl or use an outdated version'
|
||||||
PROTOBUF_MISSING = 'OMEMO cant import Google Protobuf, you can find help in ' \
|
PROTOBUF_MISSING = "OMEMO can't import Google Protobuf, you can find help in " \
|
||||||
'the GitHub Wiki'
|
"the GitHub Wiki"
|
||||||
ERROR_MSG = ''
|
ERROR_MSG = ''
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
""" This module handles all the XMPP logic like creating different kind of
|
""" This module handles all the XMPP logic like creating different kind of
|
||||||
stanza nodes and geting data from stanzas.
|
stanza nodes and getting data from stanzas.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ class OldPGPPlugin(GajimPlugin):
|
|||||||
'namespace': nbxmpp.NS_ENCRYPTED})
|
'namespace': nbxmpp.NS_ENCRYPTED})
|
||||||
obj.msg_iq.addChild(node=eme_node)
|
obj.msg_iq.addChild(node=eme_node)
|
||||||
|
|
||||||
# Set xhtml to None so it doesnt get logged
|
# Set xhtml to None so it doesn't get logged
|
||||||
obj.xhtml = None
|
obj.xhtml = None
|
||||||
obj.encrypted = self.encryption_name
|
obj.encrypted = self.encryption_name
|
||||||
self.add_additional_data(obj.additional_data)
|
self.add_additional_data(obj.additional_data)
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ class JingleWhiteboard(JingleContent):
|
|||||||
self.session.connection.connection.send(message)
|
self.session.connection.connection.send(message)
|
||||||
|
|
||||||
def send_items(self, items, rids):
|
def send_items(self, items, rids):
|
||||||
# recieves dict items and a list of rids of items to send
|
# receives dict items and a list of rids of items to send
|
||||||
# TODO: is there a less clumsy way that doesn't involve passing
|
# TODO: is there a less clumsy way that doesn't involve passing
|
||||||
# whole list
|
# whole list
|
||||||
self.send_whiteboard_node(items, rids)
|
self.send_whiteboard_node(items, rids)
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ class Whiteboard(object):
|
|||||||
self.item_data = None
|
self.item_data = None
|
||||||
|
|
||||||
# Will be {ID: {type:'element', data:[node, goocanvas]}, ID2: {}} instance
|
# Will be {ID: {type:'element', data:[node, goocanvas]}, ID2: {}} instance
|
||||||
self.recieving = {}
|
self.receiving = {}
|
||||||
|
|
||||||
def on_tool_button_toggled(self, widget):
|
def on_tool_button_toggled(self, widget):
|
||||||
for btn in self.tool_buttons:
|
for btn in self.tool_buttons:
|
||||||
@@ -289,25 +289,25 @@ class Whiteboard(object):
|
|||||||
def recieve_element(self, element):
|
def recieve_element(self, element):
|
||||||
node = self.image.g.addChild(name=element.getAttr('name'))
|
node = self.image.g.addChild(name=element.getAttr('name'))
|
||||||
self.image.g.addChild(node=node)
|
self.image.g.addChild(node=node)
|
||||||
self.recieving[element.getAttr('rid')] = {'type':'element',
|
self.receiving[element.getAttr('rid')] = {'type':'element',
|
||||||
'data':[node],
|
'data':[node],
|
||||||
'children':[]}
|
'children':[]}
|
||||||
|
|
||||||
def recieve_attr(self, element):
|
def recieve_attr(self, element):
|
||||||
node = self.recieving[element.getAttr('parent')]['data'][0]
|
node = self.receiving[element.getAttr('parent')]['data'][0]
|
||||||
node.setAttr(element.getAttr('name'), element.getAttr('chdata'))
|
node.setAttr(element.getAttr('name'), element.getAttr('chdata'))
|
||||||
|
|
||||||
self.recieving[element.getAttr('rid')] = {'type':'attr',
|
self.receiving[element.getAttr('rid')] = {'type':'attr',
|
||||||
'data':element.getAttr('name'),
|
'data':element.getAttr('name'),
|
||||||
'parent':node}
|
'parent':node}
|
||||||
self.recieving[element.getAttr('parent')]['children'].append(element.getAttr('rid'))
|
self.receiving[element.getAttr('parent')]['children'].append(element.getAttr('rid'))
|
||||||
|
|
||||||
def apply_new(self):
|
def apply_new(self):
|
||||||
for x in self.recieving.keys():
|
for x in self.receiving.keys():
|
||||||
if self.recieving[x]['type'] == 'element':
|
if self.receiving[x]['type'] == 'element':
|
||||||
self.image.add_recieved(x, self.recieving)
|
self.image.add_recieved(x, self.receiving)
|
||||||
|
|
||||||
self.recieving = {}
|
self.receiving = {}
|
||||||
|
|
||||||
|
|
||||||
class SVGObject():
|
class SVGObject():
|
||||||
|
|||||||
Reference in New Issue
Block a user