Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e8399dc2 by Philipp Hörist at 2017-08-19T22:32:50+02:00
Fix wrong call to Sleepy()
And place a log call so we can gather exceptions to lose the
general exception in the future.
- - - - -
1 changed file:
- gajim/common/connection_handlers.py
Changes:
=====================================
gajim/common/connection_handlers.py
=====================================
--- a/gajim/common/connection_handlers.py
+++ b/gajim/common/connection_handlers.py
@@ -1383,9 +1383,10 @@ ConnectionHandlersBase, ConnectionJingle, ConnectionIBBytestream):
self.privacy_default_list = None
try:
- self.sleeper = common.sleepy.Sleepy()
+ self.sleeper = sleepy.Sleepy()
HAS_IDLE = True
except Exception:
+ log.warning('Error while calling Sleepy()', exc_info=True)
HAS_IDLE = False
self.gmail_last_tid = None
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e8399dc2ed5db2d6631590d44ca657b266…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e8399dc2ed5db2d6631590d44ca657b266…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
763eba0a by Philipp Hörist at 2017-08-19T02:29:07+02:00
Update README
- - - - -
1 changed file:
- README
Changes:
=====================================
README
=====================================
--- a/README
+++ b/README
@@ -30,7 +30,7 @@
<li>For zeroconf (bonjour), the "enable link-local messaging" checkbox, you need dbus-glib, python-avahi</li>
<li>dnsutils (or whatever package provides the nslookup binary) for SRV support</li>
<li>gir1.2-gtkspell3-3.0 and aspell-LANG where lang is your locale eg. en, fr etc</li>
-<li>gir1.2-secret-1 for GNOME Keyring or KDE support as password storage</li>
+<li>gir1.2-secret-1 for GNOME Keyring or KDE support as password storage</li>
<li>gir1.2-notify-0.7 to get cooler popups</li>
<li>D-Bus running to have gajim-remote working. Some distributions split dbus-x11, which is needed for dbus to work with Gajim. Version >= 0.80 is required.</li>
<li>python3-dbus bindings (>=1.2.0)</li>
@@ -67,10 +67,10 @@
<h2>Running Gajim</h2>
<p>Just do <em>gajim</em> or you can run Gajim from your GNOME/Xfce/KDE/whatever menus.<br/><br/>
-or if you use hg version and you didn't 'make install' you can also run from gajim folder with<em>./launch.sh</em></p>
+or if you use Git version and you didn't 'make install' you can also run from gajim folder with<em>./launch.py</em></p>
<hr />
-<h3>Note for hg users</h3>
-<p>You will need GNU autotools in order to install Gajim from svn. This includes:</p>
+<h3>Note for Git users</h3>
+<p>You will need GNU autotools in order to install Gajim from Git. This includes:</p>
<ul>
<li>automake >= 1.8 </li>
<li>autoconf >= 2.59 </li>
@@ -109,8 +109,8 @@ If you don't want to make this permanent, execute gajim with --verbose
everytime you want to have verbose output.</p>
<h3>FAQ/Wiki</h3>
-<p>FAQ can be found at <a href="http://trac.gajim.org/wiki/GajimFaq">http://trac.gajim.org/wiki/GajimFaq</a><br/>
-Wiki can be found at <a href="http://trac.gajim.org/wiki">http://trac.gajim.org/wiki</a></p>
+<p>FAQ can be found at <a href="https://dev.gajim.org/gajim/gajim/wikis/help/gajimfaq">https://dev.gajim.org/gajim/gajim/wikis/help/gajimfaq</a><br/>
+Wiki can be found at <a href="https://dev.gajim.org/gajim/gajim/wikis/home">https://dev.gajim.org/gajim/gajim/wikis/home</a></p>
<p>That is all, <strong>enjoy!</strong></p>
@@ -119,7 +119,7 @@ Wiki can be found at <a href="http://trac.gajim.org/wiki">http://trac.gajim.org/
<br/>
<br/>
<br/>
-(C) 2003-2015<br/>
+(C) 2003-2017<br/>
The Gajim Team<br/>
https://gajim.org<br/>
<br/>
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/763eba0acc1b49391703980f65c4d0fd96…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/763eba0acc1b49391703980f65c4d0fd96…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
2198c2f4 by Philipp Hörist at 2017-08-19T02:20:00+02:00
Update README.md
- - - - -
1 changed file:
- win/README.md
Changes:
=====================================
win/README.md
=====================================
--- a/win/README.md
+++ b/win/README.md
@@ -16,7 +16,7 @@ Download [msys2](http://www.msys2.org/) (msys2-x86_64-xxx.exe) and follow the in
* Run ``cd gajim/win`` to end up where this README exists.
* Execute ``./dev_env.sh`` to install all the needed dependencies.
* Now go to the git root dir ``cd ..``
-* Launch Gajim ``./launch.sh``
+* Launch Gajim ``./launch.py``
### Build Gajim / Creating an Installer
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/2198c2f478598b2103e6ae002b9e65655f…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/2198c2f478598b2103e6ae002b9e65655f…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
c4383c16 by Yann Leboulanger at 2017-08-18T22:05:48+02:00
Use correct account when opening history window
- - - - -
1 changed file:
- gajim/history_window.py
Changes:
=====================================
gajim/history_window.py
=====================================
--- a/gajim/history_window.py
+++ b/gajim/history_window.py
@@ -116,7 +116,7 @@ class HistoryWindow:
col.set_resizable(True)
self.jid = None # The history we are currently viewing
- self.account = None
+ self.account = account
self.completion_dict = {}
self.accounts_seen_online = [] # Update dict when new accounts connect
self.jids_to_search = []
@@ -259,8 +259,7 @@ class HistoryWindow:
def on_jid_entry_activate(self, widget):
jid = self.jid_entry.get_text()
- account = None # we don't know the account, could be any. Search for it!
- self._load_history(jid, account)
+ self._load_history(jid, self.account)
self.results_window.set_property('visible', False)
def on_jid_entry_focus(self, widget, event):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c4383c16c613f59c2672c1d8c9f0649ec9…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c4383c16c613f59c2672c1d8c9f0649ec9…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
efec098a by André Apitzsch at 2017-08-18T19:48:48+02:00
Use absolute imports
- - - - -
f7e83af2 by André Apitzsch at 2017-08-18T19:48:48+02:00
GajimRemote: Fix invalid filename
- - - - -
230739bb by André Apitzsch at 2017-08-18T19:48:48+02:00
Rewrite launch script
- - - - -
3b800578 by André Apitzsch at 2017-08-18T19:48:48+02:00
Update bin scripts
- - - - -
47c83311 by André Apitzsch at 2017-08-18T19:48:48+02:00
Always install in python3.x/site-packages
- - - - -
b11b7a4a by André Apitzsch at 2017-08-18T19:48:48+02:00
Check for root only on unix systems
- - - - -
675ebe54 by André Apitzsch at 2017-08-18T19:48:48+02:00
Up Gajim version to 0.16.11
- - - - -
67401204 by André Apitzsch at 2017-08-18T19:48:48+02:00
Mark gajim as a python package
- - - - -
ab041963 by André Apitzsch at 2017-08-18T19:48:48+02:00
Fix start of history manager from gajim
- - - - -
6d1c659b by André Apitzsch at 2017-08-18T19:48:48+02:00
Expand Python module search path
to work around the issue that the gajim module cannot be found
- - - - -
56d002ce by André Apitzsch at 2017-08-18T19:48:48+02:00
Fix test imports
- - - - -
89c7eb6e by André Apitzsch at 2017-08-18T20:03:20+02:00
Rename gajim.common.gajim to avoid name conflicts
- - - - -
4ffc1cf8 by Philipp Hörist at 2017-08-18T21:38:41+02:00
Merge branch 'absolute_imports' into 'master'
Make gajim a python module
See merge request !106
- - - - -
23 changed files:
- Makefile.am
- configure.ac
- + gajim/__init__.py
- gajim/adhoc_commands.py
- gajim/advanced_configuration_window.py
- gajim/app_actions.py
- gajim/atom_window.py
- gajim/chat_control.py
- gajim/chat_control_base.py
- gajim/command_system/dispatcher.py
- gajim/command_system/framework.py
- gajim/command_system/implementation/custom.py
- gajim/command_system/implementation/execute.py
- gajim/command_system/implementation/hosts.py
- gajim/command_system/implementation/middleware.py
- gajim/command_system/implementation/standard.py
- gajim/command_system/mapping.py
- gajim/common/gajim.py → gajim/common/app.py
- gajim/common/check_X509.py
- gajim/common/check_paths.py
- gajim/common/commands.py
- gajim/common/config.py
- gajim/common/configpaths.py
The diff was not included because it is too large.
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/10f8fe2bb5f9cf1899cf9b35e5a1ef4a3…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/10f8fe2bb5f9cf1899cf9b35e5a1ef4a3…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
10f8fe2b by Philipp Hörist at 2017-08-18T18:58:07+02:00
Use unique id as action name instead of jid
A jid can contain characters that are not allowed in an action name.
This creates a unique UUID4 for each MessageControl and uses it as
action name instead.
We can reuse the UUID for other actions that belong to the
MessageControl
Fixes #8636
- - - - -
5 changed files:
- gajim/chat_control.py
- gajim/chat_control_base.py
- gajim/groupchat_control.py
- gajim/gui_menu_builder.py
- gajim/message_control.py
Changes:
=====================================
gajim/chat_control.py
=====================================
--- a/gajim/chat_control.py
+++ b/gajim/chat_control.py
@@ -288,7 +288,7 @@ class ChatControl(ChatControlBase):
self.encryption_menu = self.xml.get_object('encryption_menu')
self.encryption_menu.set_menu_model(
- gui_menu_builder.get_encryption_menu(self.contact, self.type_id))
+ gui_menu_builder.get_encryption_menu(self.control_id, self.type_id))
self.set_encryption_menu_icon()
# restore previous conversation
self.restore_conversation()
=====================================
gajim/chat_control_base.py
=====================================
--- a/gajim/chat_control_base.py
+++ b/gajim/chat_control_base.py
@@ -416,7 +416,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
def add_window_actions(self):
action = Gio.SimpleAction.new_stateful(
- "%s-encryptiongroup" % self.contact.jid,
+ "set-encryption-%s" % self.control_id,
GLib.VariantType.new("s"),
GLib.Variant("s", self.encryption or 'disabled'))
action.connect("change-state", self.change_encryption)
=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -495,7 +495,7 @@ class GroupchatControl(ChatControlBase):
self.encryption_menu = self.xml.get_object('encryption_menu')
self.encryption_menu.set_menu_model(
- gui_menu_builder.get_encryption_menu(self.contact, self.type_id))
+ gui_menu_builder.get_encryption_menu(self.control_id, self.type_id))
self.set_encryption_menu_icon()
gajim.ged.register_event_handler('gc-presence-received', ged.GUI1,
=====================================
gajim/gui_menu_builder.py
=====================================
--- a/gajim/gui_menu_builder.py
+++ b/gajim/gui_menu_builder.py
@@ -752,11 +752,10 @@ def build_bookmark_menu(account):
menu.insert_submenu(1, label, bookmark_menu)
-def get_encryption_menu(contact, type_id):
+def get_encryption_menu(control_id, type_id):
menu = Gio.Menu()
menu.append(
- 'Disabled', 'win.{}-encryptiongroup::{}'.format(contact.jid,
- 'disabled'))
+ 'Disabled', 'win.set-encryption-{}::{}'.format(control_id, 'disabled'))
for name, plugin in gajim.plugin_manager.encryption_plugins.items():
if type_id == 'gc':
if not hasattr(plugin, 'allow_groupchat'):
@@ -764,8 +763,8 @@ def get_encryption_menu(contact, type_id):
if type_id == 'pm':
if not hasattr(plugin, 'allow_privatchat'):
continue
- menu_action = 'win.{}-encryptiongroup::{}'.format(
- contact.jid, name)
+ menu_action = 'win.set-encryption-{}::{}'.format(
+ control_id, name)
menu.append(name, menu_action)
if menu.get_n_items() == 1:
return None
=====================================
gajim/message_control.py
=====================================
--- a/gajim/message_control.py
+++ b/gajim/message_control.py
@@ -27,6 +27,7 @@
##
import gtkgui_helpers
+import uuid
from common import gajim
from common import helpers
@@ -58,7 +59,9 @@ class MessageControl(object):
self.account = account
self.hide_chat_buttons = False
self.resource = resource
-
+ # control_id is a unique id for the control,
+ # its used as action name for actions that belong to a control
+ self.control_id = str(uuid.uuid4())
self.session = None
gajim.last_message_time[self.account][self.get_full_jid()] = 0
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/10f8fe2bb5f9cf1899cf9b35e5a1ef4a33…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/10f8fe2bb5f9cf1899cf9b35e5a1ef4a33…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
43fbcbf8 by Yann Leboulanger at 2017-08-17T22:18:35+02:00
remove call to old XEP-0136 function
- - - - -
1 changed file:
- gajim/common/stanza_session.py
Changes:
=====================================
gajim/common/stanza_session.py
=====================================
--- a/gajim/common/stanza_session.py
+++ b/gajim/common/stanza_session.py
@@ -292,9 +292,6 @@ class ArchivingStanzaSession(StanzaSession):
if self.control:
self.control.print_archiving_session_details()
- def stop_archiving_for_session(self):
- self.conn.stop_archiving_session(self.thread_id)
-
class EncryptedStanzaSession(ArchivingStanzaSession):
"""
@@ -1063,8 +1060,6 @@ class EncryptedStanzaSession(ArchivingStanzaSession):
if self.control:
self.control.print_esession_details()
- self.stop_archiving_for_session()
-
def final_steps_alice(self, form):
srs = b''
srses = secrets.secrets().retained_secrets(self.conn.name,
@@ -1105,8 +1100,6 @@ class EncryptedStanzaSession(ArchivingStanzaSession):
if self.control:
self.control.print_esession_details()
- self.stop_archiving_for_session()
-
def do_retained_secret(self, k, old_srs):
"""
Calculate the new retained secret. determine if the user needs to check
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/43fbcbf8cff9c2e0194208e01c8fb2393e…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/43fbcbf8cff9c2e0194208e01c8fb2393e…
You're receiving this email because of your account on dev.gajim.org.