Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Malte L
gajim-plugins
Commits
5fc7a775
Commit
5fc7a775
authored
Jun 29, 2018
by
Alexander Krotov
Committed by
Philipp Hörist
Dec 23, 2018
Browse files
Spellcheck all plugins
parent
6e430a3e
Changes
15
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
5fc7a775
...
...
@@ -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)**
**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
...
...
appindicator_integration/plugin.py
View file @
5fc7a775
...
...
@@ -2,7 +2,7 @@
"""
Appindicator integration plugin.
Rewriten from Ubuntu Ayatana Integration plugin
Rewrit
t
en from Ubuntu Ayatana Integration plugin
2013 Denis Borenko <borenko@rambler.ru>
2017 Philipp Hörist <philipp@hoerist.com>
:license: GPLv3
...
...
clickable_nicknames/clickable_nicknames.py
View file @
5fc7a775
...
...
@@ -112,7 +112,7 @@ class Base(object):
if
event
.
type
==
Gdk
.
EventType
.
BUTTON_PRESS
and
event
.
button
.
button
==
1
:
# left mouse button clicked
begin_iter
=
iter_
.
copy
()
# we get the begining of the tag
# we get the begin
n
ing of the tag
while
not
begin_iter
.
begins_tag
(
texttag
):
begin_iter
.
backward_char
()
end_iter
=
iter_
.
copy
()
...
...
clients_icons/clients_icons.py
View file @
5fc7a775
...
...
@@ -208,7 +208,7 @@ class ClientsIconsPlugin(GajimPlugin):
client_name
=
_
(
'Unknown'
)
caps_
=
None
if
caps
:
# libpurple returns pidgin.im/ only, we have to look for res
s
ource name
# libpurple returns pidgin.im/ only, we have to look for resource name
if
'pidgin.im/'
in
caps
:
caps
=
'libpurple'
for
client
in
LIBPURPLE_CLIENTS
:
...
...
@@ -447,7 +447,7 @@ class ClientsIconsPlugin(GajimPlugin):
self
.
set_icon
(
roster
.
model
,
iter_
,
self
.
renderer_num
,
None
,
contact
)
return
# higest contact changed
# hig
h
est contact changed
if
roster
.
model
[
iter_
][
self
.
renderer_num
]
is
not
None
:
caps
=
contact
.
client_caps
.
_node
if
caps
:
...
...
juick/plugin.py
View file @
5fc7a775
...
...
@@ -274,7 +274,7 @@ class Base(object):
if
event
.
type
==
Gdk
.
EventType
.
BUTTON_PRESS
and
event
.
button
.
button
==
3
:
# show popup menu (right mouse button clicked)
begin_iter
=
iter_
.
copy
()
# we get the begining of the tag
# we get the begin
n
ing of the tag
while
not
begin_iter
.
begins_tag
(
texttag
):
begin_iter
.
backward_char
()
end_iter
=
iter_
.
copy
()
...
...
@@ -290,27 +290,27 @@ class Base(object):
nick
=
self
.
juick_nick_re
.
search
(
word
)
if
post
is
None
and
nick
is
None
:
return
child
s
=
self
.
juick_link_menu
.
get_children
()
child
ren
=
self
.
juick_link_menu
.
get_children
()
if
post
:
self
.
juick_post_full
=
app
.
interface
.
sharp_slash_re
\
.
search
(
word
).
group
(
0
)
self
.
juick_post_uid
=
post
.
group
(
1
)
for
menuitem
in
range
(
7
):
child
s
[
menuitem
].
show
()
child
ren
[
menuitem
].
show
()
for
menuitem
in
range
(
7
,
13
):
child
s
[
menuitem
].
hide
()
child
ren
[
menuitem
].
hide
()
if
nick
:
self
.
juick_nick
=
nick
.
group
(
0
)
for
menuitem
in
range
(
7
):
child
s
[
menuitem
].
hide
()
child
ren
[
menuitem
].
hide
()
for
menuitem
in
range
(
7
,
13
):
child
s
[
menuitem
].
show
()
child
ren
[
menuitem
].
show
()
self
.
juick_link_menu
.
popup
(
None
,
None
,
None
,
None
,
event
.
button
.
button
,
event
.
time
)
if
event
.
type
==
Gdk
.
EventType
.
BUTTON_PRESS
and
event
.
button
.
button
==
1
:
# insert message num or nick (left mouse button clicked)
begin_iter
=
iter_
.
copy
()
# we get the begining of the tag
# we get the begin
n
ing of the tag
while
not
begin_iter
.
begins_tag
(
texttag
):
begin_iter
.
backward_char
()
end_iter
=
iter_
.
copy
()
...
...
latex/config_dialog.ui
View file @
5fc7a775
...
...
@@ -3,7 +3,7 @@
<requires
lib=
"gtk+"
version=
"2.16"
/>
<!-- interface-naming-policy toplevel-contextual -->
<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 de
s
cription should be displayed here. This text will be erased during PluginsWindow initialization.
</property>
</object>
<object
class=
"GtkWindow"
id=
"window1"
>
<child>
...
...
omemo/CHANGELOG
View file @
5fc7a775
...
...
@@ -96,7 +96,7 @@
- Query only the most recent PEP items
2.3.6 / 2017-08-21
- Adapt to Gaim be
e
ing now a Package
- Adapt to Gaim being now a Package
2.3.5 / 2017-08-07
- Support 12bit IVs on httpupload files
...
...
@@ -139,7 +139,7 @@
- Fix a bug when publishing devices
- Fix copying fingerprint
- Fix layout issue
- Dont handle type 'normal' messages
- Don
'
t handle type 'normal' messages
2.0.1 / 2017-01-14
- Better XEP Compliance
...
...
omemo/omemo/aes_gcm_native.py
View file @
5fc7a775
...
...
@@ -25,7 +25,7 @@ from cryptography.hazmat.primitives.ciphers import algorithms
from
cryptography.hazmat.primitives.ciphers.modes
import
GCM
# 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
if
os
.
name
==
'nt'
:
...
...
omemo/omemo/sql.py
View file @
5fc7a775
...
...
@@ -33,7 +33,7 @@ class SQLDatabase():
c
.
execute
(
"PRAGMA synchronous=NORMAL;"
)
c
.
execute
(
"PRAGMA journal_mode;"
)
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'
:
c
.
execute
(
"PRAGMA journal_mode=MEMORY;"
)
self
.
dbConn
.
commit
()
...
...
@@ -93,7 +93,7 @@ class SQLDatabase():
""" Migrates the DB
"""
# Find all double entr
y
s and delete them
# Find all double entr
ie
s and delete them
if
user_version
(
self
.
dbConn
)
<
2
:
delete_dupes
=
""" DELETE FROM identities WHERE _id not in (
SELECT MIN(_id)
...
...
omemo/omemo_connection.py
View file @
5fc7a775
...
...
@@ -287,8 +287,8 @@ class OMEMOConnection:
from_jid
=
self
.
omemo
.
store
.
\
getJidFromDevice
(
msg_dict
[
'sid'
])
if
not
from_jid
:
log
.
error
(
'
%s => Cant decrypt GroupChat Message
'
'
from %s
'
,
self
.
account
,
msg
.
resource
)
log
.
error
(
"
%s => Can
'
t decrypt GroupChat Message
"
"
from %s
"
,
self
.
account
,
msg
.
resource
)
msg
.
encrypted
=
'drop'
return
self
.
groupchat
[
msg
.
jid
][
msg
.
resource
]
=
from_jid
...
...
@@ -301,7 +301,7 @@ class OMEMOConnection:
plaintext
=
self
.
gc_message
[
msg_dict
[
'payload'
]]
del
self
.
gc_message
[
msg_dict
[
'payload'
]]
else
:
log
.
error
(
'
%s => Cant decrypt own GroupChat Message
'
,
log
.
error
(
"
%s => Can
'
t decrypt own GroupChat Message
"
,
self
.
account
)
msg
.
encrypted
=
'drop'
return
...
...
@@ -497,9 +497,9 @@ class OMEMOConnection:
'namespace'
:
NS_OMEMO
})
event
.
msg_iq
.
addChild
(
node
=
eme_node
)
# Add Message for devices that dont support OMEMO
support_msg
=
_
(
'
You received a message encrypted with
'
\
'
OMEMO but your client doesnt support OMEMO.
'
)
# Add Message for devices that don
'
t support OMEMO
support_msg
=
_
(
"
You received a message encrypted with
"
\
"
OMEMO but your client doesn
'
t support OMEMO.
"
)
event
.
msg_iq
.
setBody
(
support_msg
)
# Store Hint for MAM
...
...
@@ -602,7 +602,7 @@ class OMEMOConnection:
self
.
_handle_device_list_update
(
None
,
event
.
stanza
)
# Dont propagate event further
# Don
'
t propagate event further
return
True
def
_handle_device_list_update
(
self
,
conn
,
stanza
,
fetch_bundle
=
False
):
...
...
@@ -695,7 +695,7 @@ class OMEMOConnection:
self
.
account
,
stanza
.
getError
())
def
are_keys_missing
(
self
,
contact_jid
):
""" Checks if devicekeys are missing and quer
y
s the
""" Checks if devicekeys are missing and quer
ie
s the
bundles
Parameters
...
...
omemo/omemoplugin.py
View file @
5fc7a775
...
...
@@ -41,10 +41,11 @@ from omemo.xmpp import DevicelistPEP
from
omemo.gtk.key
import
KeyDialog
from
omemo.gtk.config
import
OMEMOConfigDialog
CRYPTOGRAPHY_MISSING
=
'You are missing Python3-Cryptography'
AXOLOTL_MISSING
=
'You are missing Python3-Axolotl or use an outdated version'
PROTOBUF_MISSING
=
'
OMEMO cant import Google Protobuf, you can find help in
'
\
'
the GitHub Wiki
'
PROTOBUF_MISSING
=
"
OMEMO can
'
t import Google Protobuf, you can find help in
"
\
"
the GitHub Wiki
"
ERROR_MSG
=
''
...
...
omemo/xmpp.py
View file @
5fc7a775
...
...
@@ -18,7 +18,7 @@
#
""" This module handles all the XMPP logic like creating different kind of
stanza nodes and geting data from stanzas.
stanza nodes and get
t
ing data from stanzas.
"""
import
logging
...
...
pgp/pgpplugin.py
View file @
5fc7a775
...
...
@@ -256,7 +256,7 @@ class OldPGPPlugin(GajimPlugin):
'namespace'
:
nbxmpp
.
NS_ENCRYPTED
})
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
.
encrypted
=
self
.
encryption_name
self
.
add_additional_data
(
obj
.
additional_data
)
...
...
whiteboard/plugin.py
View file @
5fc7a775
...
...
@@ -428,7 +428,7 @@ class JingleWhiteboard(JingleContent):
self
.
session
.
connection
.
connection
.
send
(
message
)
def
send_items
(
self
,
items
,
rids
):
# rec
i
eves dict items and a list of rids of items to send
# rece
i
ves dict items and a list of rids of items to send
# TODO: is there a less clumsy way that doesn't involve passing
# whole list
self
.
send_whiteboard_node
(
items
,
rids
)
...
...
whiteboard/whiteboard_widget.py
View file @
5fc7a775
...
...
@@ -135,7 +135,7 @@ class Whiteboard(object):
self
.
item_data
=
None
# Will be {ID: {type:'element', data:[node, goocanvas]}, ID2: {}} instance
self
.
rec
i
eving
=
{}
self
.
rece
i
ving
=
{}
def
on_tool_button_toggled
(
self
,
widget
):
for
btn
in
self
.
tool_buttons
:
...
...
@@ -289,25 +289,25 @@ class Whiteboard(object):
def
recieve_element
(
self
,
element
):
node
=
self
.
image
.
g
.
addChild
(
name
=
element
.
getAttr
(
'name'
))
self
.
image
.
g
.
addChild
(
node
=
node
)
self
.
rec
i
eving
[
element
.
getAttr
(
'rid'
)]
=
{
'type'
:
'element'
,
self
.
rece
i
ving
[
element
.
getAttr
(
'rid'
)]
=
{
'type'
:
'element'
,
'data'
:[
node
],
'children'
:[]}
def
recieve_attr
(
self
,
element
):
node
=
self
.
rec
i
eving
[
element
.
getAttr
(
'parent'
)][
'data'
][
0
]
node
=
self
.
rece
i
ving
[
element
.
getAttr
(
'parent'
)][
'data'
][
0
]
node
.
setAttr
(
element
.
getAttr
(
'name'
),
element
.
getAttr
(
'chdata'
))
self
.
rec
i
eving
[
element
.
getAttr
(
'rid'
)]
=
{
'type'
:
'attr'
,
self
.
rece
i
ving
[
element
.
getAttr
(
'rid'
)]
=
{
'type'
:
'attr'
,
'data'
:
element
.
getAttr
(
'name'
),
'parent'
:
node
}
self
.
rec
i
eving
[
element
.
getAttr
(
'parent'
)][
'children'
].
append
(
element
.
getAttr
(
'rid'
))
self
.
rece
i
ving
[
element
.
getAttr
(
'parent'
)][
'children'
].
append
(
element
.
getAttr
(
'rid'
))
def
apply_new
(
self
):
for
x
in
self
.
rec
i
eving
.
keys
():
if
self
.
rec
i
eving
[
x
][
'type'
]
==
'element'
:
self
.
image
.
add_recieved
(
x
,
self
.
rec
i
eving
)
for
x
in
self
.
rece
i
ving
.
keys
():
if
self
.
rece
i
ving
[
x
][
'type'
]
==
'element'
:
self
.
image
.
add_recieved
(
x
,
self
.
rece
i
ving
)
self
.
rec
i
eving
=
{}
self
.
rece
i
ving
=
{}
class
SVGObject
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment