Daniel Brötzmann pushed to branch newcontrol at gajim / gajim
Commits:
f5b4801f by wurstsalat at 2022-06-28T22:26:25+02:00
GUI files: Remove bottom margin
- - - - -
4c0a56c9 by wurstsalat at 2022-06-28T22:26:46+02:00
ChatBanner: Fix toggle roster button
- - - - -
3 changed files:
- gajim/data/gui/chat_control.ui
- gajim/data/gui/groupchat_control.ui
- gajim/gtk/chat_banner.py
Changes:
=====================================
gajim/data/gui/chat_control.ui
=====================================
@@ -6,7 +6,6 @@
<property name="can-focus">True</property>
<property name="margin-start">7</property>
<property name="margin-end">7</property>
- <property name="margin-bottom">7</property>
<property name="spacing">1</property>
<child>
<object class="GtkOverlay" id="overlay">
=====================================
gajim/data/gui/groupchat_control.ui
=====================================
@@ -63,7 +63,6 @@
<property name="can-focus">True</property>
<property name="margin-start">7</property>
<property name="margin-end">7</property>
- <property name="margin-bottom">7</property>
<property name="spacing">3</property>
<child>
<object class="GtkBox" id="textview_box">
=====================================
gajim/gtk/chat_banner.py
=====================================
@@ -66,6 +66,8 @@ def __init__(self) -> None:
('account-disabled', ged.GUI2, self._on_account_changed)
])
+ hide_roster = app.settings.get('hide_groupchat_occupants_list')
+ self._set_toggle_roster_button_icon(hide_roster)
app.settings.connect_signal(
'hide_groupchat_occupants_list',
self._set_toggle_roster_button_icon)
@@ -122,8 +124,6 @@ def switch_contact(self,
self.set_no_show_all(False)
self.show_all()
- hide_roster = app.settings.get('hide_groupchat_occupants_list')
- self._set_toggle_roster_button_icon(hide_roster)
self._update_avatar()
self._update_content()
@@ -288,10 +288,8 @@ def _on_request_voice_clicked(self, _button: Gtk.Button)
-> None:
f'request-voice-{control.control_id}', None)
def _on_toggle_roster_clicked(self, _button: Gtk.Button) -> None:
- control = app.window.get_active_control()
- if control is not None:
- app.window.activate_action(
- f'toggle-occupants-list-{control.control_id}', None)
+ state = app.settings.get('hide_groupchat_occupants_list')
+ app.settings.set('hide_groupchat_occupants_list', not state)
def _set_toggle_roster_button_icon(self,
show_roster: bool,
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/5b38645eeba89d9988b1f479baa778e6ee511407...4c0a56c94852b80a61d500111bd0552146f119bc
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/5b38645eeba89d9988b1f479baa778e6ee511407...4c0a56c94852b80a61d500111bd0552146f119bc
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