Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
2aefca55 by wurstsalat at 2025-01-21T21:40:15+01:00
cfix: Groupchat creation: Fix styling; remove SignalManager
- - - - -
2 changed files:
- gajim/data/gui/groupchat_creation.ui
- gajim/gtk/groupchat_creation.py
Changes:
=====================================
gajim/data/gui/groupchat_creation.ui
=====================================
@@ -290,6 +290,8 @@
<child>
<object class="GtkBox">
<property name="halign">end</property>
+ <property name="valign">end</property>
+ <property name="vexpand">1</property>
<property name="margin-top">12</property>
<property name="spacing">12</property>
<child>
=====================================
gajim/gtk/groupchat_creation.py
=====================================
@@ -27,13 +27,12 @@
from gajim.gtk.builder import get_builder
from gajim.gtk.dialogs import ErrorDialog
from gajim.gtk.util import ensure_not_destroyed
-from gajim.gtk.util import SignalManager
from gajim.gtk.widgets import GajimAppWindow
log = logging.getLogger("gajim.gtk.groupchat_creation")
-class CreateGroupchatWindow(GajimAppWindow, EventHelper, SignalManager):
+class CreateGroupchatWindow(GajimAppWindow, EventHelper):
def __init__(self, account: str | None) -> None:
GajimAppWindow.__init__(
self,
@@ -41,9 +40,7 @@ def __init__(self, account: str | None) -> None:
title=_("Create Group Chat"),
default_width=500,
)
-
EventHelper.__init__(self)
- SignalManager.__init__(self)
self._ui = get_builder("groupchat_creation.ui")
self.set_child(self._ui.stack)
@@ -76,9 +73,8 @@ def __init__(self, account: str | None) -> None:
self._ui.create_button.grab_focus()
def _cleanup(self) -> None:
- self._disconnect_all()
- self._destroyed = True
self.unregister_events()
+ self._destroyed = True
def _on_account_state(self, _event: AccountConnected |
AccountDisconnected) -> None:
any_account_connected = app.get_number_of_connected_accounts() > 0
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/2aefca55d218b3efee84c9e573c450e1abc7f1ea
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/2aefca55d218b3efee84c9e573c450e1abc7f1ea
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]