Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
f9be8b99 by wurstsalat at 2022-05-31T12:05:27+02:00
fix: AccountsWindow: Use get_app_window to reliably access window's methods
Fixes #10911
- - - - -
19a55d54 by wurstsalat at 2022-05-31T12:11:22+02:00
fix: ContactInfo: Fix copying name and JID by Ctrl+C
- - - - -
2 changed files:
- gajim/data/gui/contact_info.ui
- gajim/gtk/accounts.py
Changes:
=====================================
gajim/data/gui/contact_info.ui
=====================================
@@ -302,7 +302,6 @@
<child>
<object class="GtkLabel" id="contact_name_label">
<property name="visible">True</property>
- <property name="can-focus">False</property>
<property name="halign">center</property>
<property name="ellipsize">end</property>
<property name="single-line-mode">True</property>
@@ -320,7 +319,6 @@
<child>
<object class="GtkLabel" id="contact_jid_label">
<property name="visible">True</property>
- <property name="can-focus">False</property>
<property name="margin-bottom">6</property>
<property name="selectable">True</property>
<property name="ellipsize">end</property>
=====================================
gajim/gtk/accounts.py
=====================================
@@ -44,6 +44,7 @@
from .settings import SettingsDialog
from .settings import SettingsBox
from .settings import PopoverSetting
+from .util import get_app_window
from .util import open_window
log = logging.getLogger('gajim.gui.accounts')
@@ -564,7 +565,8 @@ def _disable() -> None:
if (account in app.connections and
not app.connections[account].state.is_disconnected):
# Connecting or connected
- window = cast(Gtk.Window, self.get_toplevel())
+ window = get_app_window('AccountsWindow')
+ assert window is not None
ConfirmationDialog(
_('Disable Account'),
_('Account %s is still connected') % account,
@@ -705,7 +707,8 @@ def __init__(self, account: str) -> None:
GenericSettingPage.__init__(self, account, settings)
def _on_account_name_change(self, *args: Any) -> None:
- window = cast(AccountsWindow, self.get_toplevel())
+ window = get_app_window('AccountsWindow')
+ assert window is not None
window.update_account_label(self.account)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/41d6387ce32399889f6760c06444eb24a9defd7f...19a55d543fc5abcd08c75472ee55652e9f91c276
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/41d6387ce32399889f6760c06444eb24a9defd7f...19a55d543fc5abcd08c75472ee55652e9f91c276
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits