Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a98d969f by André Apitzsch at 2018-04-16T20:12:33+02:00
Flatpak: add audio support
- - - - -
1 changed file:
- org.gajim.Gajim.json
Changes:
=====================================
org.gajim.Gajim.json
=====================================
--- a/org.gajim.Gajim.json
+++ b/org.gajim.Gajim.json
@@ -15,6 +15,7 @@
/* Needs to talk to the network: */
"--share=network",
"--filesystem=home",
+ "--socket=pulseaudio",
"--socket=system-bus"
],
"build-options": {
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a98d969f2291f3cbf1a8105b585e89a50a…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a98d969f2291f3cbf1a8105b585e89a50a…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e93ab408 by Daniel at 2018-04-15T22:45:04+02:00
Fix History Manager search
- - - - -
1 changed file:
- gajim/history_manager.py
Changes:
=====================================
gajim/history_manager.py
=====================================
--- a/gajim/history_manager.py
+++ b/gajim/history_manager.py
@@ -640,7 +640,7 @@ class HistoryManager:
def on_search_results_listview_row_activated(self, widget, path, column):
# get log_line_id, jid_id from row we double clicked
- log_line_id = self.search_results_liststore[path][0]
+ log_line_id = str(self.search_results_liststore[path][0])
jid = self.search_results_liststore[path][1]
# make it string as in gtk liststores I have them all as strings
# as this is what db returns so I don't have to fight with types
@@ -661,13 +661,14 @@ class HistoryManager:
iter_ = self.logs_liststore.get_iter_first()
while iter_:
- # self.logs_liststore[iter_][0] holds lon_line_ids
+ # self.logs_liststore[iter_][0] holds log_line_ids
if self.logs_liststore[iter_][0] == log_line_id:
break
iter_ = self.logs_liststore.iter_next(iter_)
path = self.logs_liststore.get_path(iter_)
self.logs_listview.scroll_to_cell(path)
+ self.logs_listview.get_selection().select_path(path)
def main():
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e93ab408ec9da69da767bbea52383045e8…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e93ab408ec9da69da767bbea52383045e8…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a86abf2c by Markus Wintermann at 2018-04-14T22:01:58+02:00
Update proxy comobobox in accounts/connections
After a new proxy was added/removed by ManageProxies the combobox in
accounts/connections gets updated
- - - - -
1 changed file:
- gajim/accounts_window.py
Changes:
=====================================
gajim/accounts_window.py
=====================================
--- a/gajim/accounts_window.py
+++ b/gajim/accounts_window.py
@@ -113,10 +113,10 @@ class AccountsWindow(Gtk.ApplicationWindow):
self.stack.set_visible_child(page)
def update_proxy_list(self):
- page = self.stack.get_child_by_name('connetion')
+ page = self.stack.get_child_by_name('connection')
if page is None:
return
- page.options['proxy'].update_values()
+ page.listbox.get_option('proxy').update_values()
def check_relogin(self):
for account in self.need_relogin:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a86abf2cf901bb5559dc29e4fc8d496ba5…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a86abf2cf901bb5559dc29e4fc8d496ba5…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
93af68f8 by Philipp Hörist at 2018-04-14T10:34:58+02:00
Dont show error when receiving invalid avatars
Fixes #9022
- - - - -
1 changed file:
- gajim/common/pep.py
Changes:
=====================================
gajim/common/pep.py
=====================================
--- a/gajim/common/pep.py
+++ b/gajim/common/pep.py
@@ -483,6 +483,10 @@ class AvatarNotificationPEP(AbstractPEP):
def _extract_info(self, items):
self.avatar = None
for item in items.getTags('item'):
+ metadata = item.getTag('metadata')
+ if metadata is None:
+ app.log('avatar').warning('Invalid avatar stanza:\n%s', items)
+ break
info = item.getTag('metadata').getTag('info')
if info is not None:
self.avatar = info.getAttrs()
@@ -494,7 +498,7 @@ class AvatarNotificationPEP(AbstractPEP):
con = app.connections[account]
if self.avatar is None:
# Remove avatar
- app.log('avatar').debug('Remove (Pubsub): %s', jid)
+ app.log('avatar').info('Remove (Pubsub): %s', jid)
app.contacts.set_avatar(account, jid, None)
own_jid = con.get_own_jid().getStripped()
app.logger.set_avatar_sha(own_jid, jid, None)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/93af68f81c646bca0bd294e83ca27ce9ff…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/93af68f81c646bca0bd294e83ca27ce9ff…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
9f0eaf9d by Daniel at 2018-04-13T22:36:57+02:00
Fix placeholder not being removed when inserting nick in MUC via context menu
- - - - -
1 changed file:
- gajim/groupchat_control.py
Changes:
=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -2787,6 +2787,7 @@ class GroupchatControl(ChatControlBase):
return True
def append_nick_in_msg_textview(self, widget, nick):
+ self.msg_textview.remove_placeholder()
message_buffer = self.msg_textview.get_buffer()
start_iter, end_iter = message_buffer.get_bounds()
cursor_position = message_buffer.get_insert()
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/9f0eaf9df797a4c4cabc19dd2c2aa68eef…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/9f0eaf9df797a4c4cabc19dd2c2aa68eef…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
a1e8cee4 by Philipp Hörist at 2018-04-13T00:30:47+02:00
Fix parsing utf8 cert files
Fixes #51
- - - - -
1 changed file:
- nbxmpp/tls_nb.py
Changes:
=====================================
nbxmpp/tls_nb.py
=====================================
--- a/nbxmpp/tls_nb.py
+++ b/nbxmpp/tls_nb.py
@@ -24,6 +24,7 @@ from .plugin import PlugIn
import sys
import os
import time
+import io
import traceback
@@ -337,7 +338,10 @@ class NonBlockingTLS(PlugIn):
if not os.path.isfile(cert_path):
return
try:
- f = open(cert_path)
+ if sys.version_info[0] > 2:
+ f = open(cert_path, encoding='utf-8')
+ else:
+ f = io.open(cert_path, encoding='utf-8')
except IOError as e:
log.warning('Unable to open certificate file %s: %s' % \
(cert_path, str(e)))
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/a1e8cee482709318a2fc4b9486…
---
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/a1e8cee482709318a2fc4b9486…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
363fdf7d by Philipp Hörist at 2018-04-09T21:39:57+02:00
Dont use str as a var name
- - - - -
1 changed file:
- gajim/chat_control.py
Changes:
=====================================
gajim/chat_control.py
=====================================
--- a/gajim/chat_control.py
+++ b/gajim/chat_control.py
@@ -502,9 +502,9 @@ class ChatControl(ChatControlBase):
if jingle_type not in ('audio', 'video'):
return
if state in ('connecting', 'connected', 'stop', 'error') and reason:
- str = _('%(type)s state : %(state)s, reason: %(reason)s') % {
+ info = _('%(type)s state : %(state)s, reason: %(reason)s') % {
'type': jingle_type.capitalize(), 'state': state, 'reason': reason}
- self.print_conversation(str, 'info')
+ self.print_conversation(info, 'info')
states = {'connecting': self.JINGLE_STATE_CONNECTING,
'connection_received': self.JINGLE_STATE_CONNECTION_RECEIVED,
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/363fdf7d9a71360d54a8b1255005d3f132…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/363fdf7d9a71360d54a8b1255005d3f132…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
cf8f0c2e by Philipp Hörist at 2018-04-09T19:14:42+02:00
Delete account from config if registration fails
- - - - -
1 changed file:
- gajim/config.py
Changes:
=====================================
gajim/config.py
=====================================
--- a/gajim/config.py
+++ b/gajim/config.py
@@ -2370,6 +2370,8 @@ class AccountCreationWizardWindow:
elif cur_page == 4:
if self.account in app.connections:
del app.connections[self.account]
+ if self.account in app.config.get_per('accounts'):
+ app.config.del_per('accounts', self.account)
self.notebook.set_current_page(2)
self.xml.get_object('form_vbox').remove(self.data_form_widget)
elif cur_page == 6: # finish page
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/cf8f0c2e83da8d137d7c6e548bfcc25659…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/cf8f0c2e83da8d137d7c6e548bfcc25659…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
6baed38d by Philipp Hörist at 2018-04-09T00:35:27+02:00
Make code better understandable
- - - - -
1 changed file:
- gajim/options_dialog.py
Changes:
=====================================
gajim/options_dialog.py
=====================================
--- a/gajim/options_dialog.py
+++ b/gajim/options_dialog.py
@@ -210,11 +210,11 @@ class GenericOption(Gtk.Grid):
self.set_property('option-value', state)
@staticmethod
- def set_no_log_for(account, jid):
+ def set_no_log_for(account, state):
no_log = app.config.get_per('accounts', account, 'no_log_for').split()
- if jid and account in no_log:
+ if state and account in no_log:
no_log.remove(account)
- elif not jid and account not in no_log:
+ elif not state and account not in no_log:
no_log.append(account)
app.config.set_per('accounts', account, 'no_log_for', ' '.join(no_log))
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6baed38d4ce7005c2f82b1ff2cb32141d7…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6baed38d4ce7005c2f82b1ff2cb32141d7…
You're receiving this email because of your account on dev.gajim.org.