Philipp Hörist pushed to branch openpgp at gajim / gajim
Commits:
ee2e5bdd by Philipp Hörist at 2026-05-03T12:32:05+02:00
new: Rename clear devices button
- - - - -
4 changed files:
- gajim/common/modules/openpgp.py
- gajim/data/gui/crypto_trust_manager.ui
- gajim/gtk/builder.pyi
- gajim/gtk/crypto_trust_manager.py
Changes:
=====================================
gajim/common/modules/openpgp.py
=====================================
@@ -1052,5 +1052,5 @@ def set_public_key_trust(
trust=trust,
)
- def clear_fingerprints(self) -> None:
+ def clear_keylist(self) -> None:
self.set_keylist()
=====================================
gajim/data/gui/crypto_trust_manager.ui
=====================================
@@ -159,9 +159,9 @@
</object>
</child>
<child>
- <object class="GtkButton" id="clear_devices_button">
+ <object class="GtkButton" id="remove_public_keys_button">
<property name="visible">0</property>
- <property name="label" translatable="yes">Clear
Devices…</property>
+ <property name="label" translatable="yes">Remove Public
Keys…</property>
<property name="focusable">1</property>
<property name="halign">end</property>
<property name="hexpand">1</property>
=====================================
gajim/gtk/builder.pyi
=====================================
@@ -199,7 +199,7 @@ class CryptoTrustManagerBuilder(Builder):
list_heading: Gtk.Label
list_heading_box: Gtk.Box
show_inactive_switch: Gtk.Switch
- clear_devices_button: Gtk.Button
+ remove_public_keys_button: Gtk.Button
list: Gtk.ListBox
undecided_placeholder: Gtk.Label
=====================================
gajim/gtk/crypto_trust_manager.py
=====================================
@@ -91,7 +91,9 @@ def __init__(
self._ui.show_inactive_switch, "state-set", self._on_show_inactive
)
self._connect(
- self._ui.clear_devices_button, "clicked",
self._on_clear_devices_clicked
+ self._ui.remove_public_keys_button,
+ "clicked",
+ self._on_remove_public_keys_clicked,
)
self._connect(self._ui.copy_button, "clicked",
self._on_copy_button_clicked)
@@ -181,7 +183,7 @@ def update(self) -> None:
clear_listbox(self._ui.list)
if isinstance(self._contact, BareContact) and self._contact.is_self:
- self._ui.clear_devices_button.set_visible(True)
+ self._ui.remove_public_keys_button.set_visible(True)
else:
self._ui.manage_trust_button.set_visible(True)
if self._contact.is_groupchat:
@@ -245,14 +247,14 @@ def _on_show_inactive(self, _switch: Gtk.Switch, state:
bool) -> None:
self._ui.list.set_filter_func(None if state else self._filter_func)
self._ui.list.invalidate_filter()
- def _on_clear_devices_clicked(self, _button: Gtk.Button) -> None:
+ def _on_remove_public_keys_clicked(self, _button: Gtk.Button) -> None:
def _on_response() -> None:
self._crypto_module.clear_keylist()
ConfirmationAlertDialog(
- _("Clear Devices?"),
- _("This will clear the devices store for your account."),
- confirm_label=_("_Clear Devices"),
+ _("Remove Public Keys?"),
+ _("This will remove all published public keys from your account."),
+ confirm_label=_("_Remove Public Keys"),
callback=_on_response,
)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/ee2e5bdd6d323e82a5cc55fa42f9c79c8a67b9a5
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/ee2e5bdd6d323e82a5cc55fa42f9c79c8a67b9a5
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]