Philipp Hörist pushed to branch master at gajim / gajim
Commits:
542b70aa by Philipp Hörist at 2019-06-21T21:29:23Z
Accounts: Destroy all GroupchatControl on disable
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
=====================================
gajim/gui_interface.py
=====================================
@@ -1937,7 +1937,10 @@ class Interface:
self.roster.send_status(account, 'online', '')
def disable_account(self, account):
- self.roster.close_all(account)
+ self.roster.close_all(account, force=True)
+ for jid in self.minimized_controls[account]:
+ ctrl = self.minimized_controls[account][jid]
+ ctrl.shutdown()
if account == app.ZEROCONF_ACC_NAME:
app.connections[account].disable_account()
app.connections[account].cleanup()
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/542b70aa0c91a0c0dc11088b3a0081d225…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/542b70aa0c91a0c0dc11088b3a0081d225…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
3431320a by Philipp Hörist at 2019-06-21T20:36:55Z
Remove unused imports
- - - - -
1 changed file:
- gajim/gtk/accounts.py
Changes:
=====================================
gajim/gtk/accounts.py
=====================================
@@ -25,10 +25,7 @@ from gi.repository import GObject
from gajim.common import app
from gajim.common import passwords
-from gajim.common import helpers
from gajim.common.i18n import _
-from gajim.common.connection import Connection
-from gajim.common.zeroconf.connection_zeroconf import ConnectionZeroconf
from gajim import gui_menu_builder
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3431320accc0600ede7c1393bf85048ed0…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3431320accc0600ede7c1393bf85048ed0…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
7a3b82d1 by Daniel Brötzmann at 2019-06-21T19:39:26Z
MessageWindow: Fix window resizing in one window mode
When using one window mode, we get the allocated size of our message control
notebook and save it before closing. The allocated width of our notebook does
not include the background-size of the Paned's separator. Calculating width
by subtracting roster_hpaned_position from allocated width of our window fixes
this.
- - - - -
1 changed file:
- gajim/message_window.py
Changes:
=====================================
gajim/message_window.py
=====================================
@@ -1031,10 +1031,8 @@ class MessageWindowMgr(GObject.GObject):
size = (app.config.get('msgwin-width'),
app.config.get('msgwin-height'))
if self.mode == self.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER:
- # Need to add the size of the now visible paned handle, otherwise
- # the saved width of the message window decreases by this amount
- handle_size = win.parent_paned.style_get_property('handle-size')
- size = (hpaned + size[0] + handle_size, size[1])
+ # Add the hpaned position to our message window's size
+ size = (hpaned + size[0], size[1])
elif self.mode == self.ONE_MSG_WINDOW_PERACCT:
size = (app.config.get_per('accounts', acct, 'msgwin-width'),
app.config.get_per('accounts', acct, 'msgwin-height'))
@@ -1245,8 +1243,10 @@ class MessageWindowMgr(GObject.GObject):
size_width_key = type_ + '-msgwin-width'
size_height_key = type_ + '-msgwin-height'
elif self.mode == self.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER:
- # Ignore any hpaned width
- width = msg_win.notebook.get_allocation().width
+ # Ignore hpaned separator's width and calculate width ourselves
+ win_width = msg_win.window.get_allocation().width
+ hpaned_position = app.config.get('roster_hpaned_position')
+ width = win_width - hpaned_position
if acct:
app.config.set_per('accounts', acct, size_width_key, width)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/7a3b82d15792c457cc6dae27f9827e72da…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/7a3b82d15792c457cc6dae27f9827e72da…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
90abf6bf by Philipp Hörist at 2019-06-20T21:47:15Z
Fix undefined variable
- - - - -
1 changed file:
- gajim/common/modules/muc.py
Changes:
=====================================
gajim/common/modules/muc.py
=====================================
@@ -445,8 +445,7 @@ class MUC(BaseModule):
app.nec.push_incoming_event(
NetworkEvent('muc-voice-approval',
account=self._account,
- room_jid=room_jid,
- jid=jid,
+ room_jid=properties.jid.getBare(),
form=properties.voice_request.form))
raise nbxmpp.NodeProcessed
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/90abf6bf60be99220dfd8c25ed40f68df9…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/90abf6bf60be99220dfd8c25ed40f68df9…
You're receiving this email because of your account on dev.gajim.org.