Philipp Hörist pushed to branch master at gajim / gajim
Commits:
53bf4e2f by Philipp Hörist at 2022-12-13T20:17:29+01:00
refactor: Menus: Don’t pass action with Gio.MenuItem.new()
The action gets feeded to parse_detail_name() which breaks when
the action name has "(" in it.
- - - - -
1 changed file:
- gajim/gtk/util.py
Changes:
=====================================
gajim/gtk/util.py
=====================================
@@ -893,8 +893,11 @@ def make_menu_item(label: str,
action: Optional[str] = None,
value: MenuValueT = None) -> Gio.MenuItem:
+ item = Gio.MenuItem.new(label)
+
if value is None:
- return Gio.MenuItem.new(label, action)
+ item.set_action_and_target_value(action, None)
+ return item
item = Gio.MenuItem.new(label)
if isinstance(value, str):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/53bf4e2fa6ee915bb442831f32d1b529…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/53bf4e2fa6ee915bb442831f32d1b529…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
0f3204b4 by Philipp Hörist at 2022-12-13T19:46:56+01:00
cfix: Menus: Don’t quote string value
- - - - -
1 changed file:
- gajim/gtk/menus.py
Changes:
=====================================
gajim/gtk/menus.py
=====================================
@@ -71,7 +71,7 @@ def get_self_contact_menu(contact: types.BareContact) -> GajimMenu:
menu = GajimMenu()
- menu.add_item(_('Profile'), f'app.{account}-profile', f'"{account}"')
+ menu.add_item(_('Profile'), f'app.{account}-profile', account)
submenu = get_send_file_submenu()
menu.append_submenu(_('Send File'), submenu)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0f3204b4dcb73207fe8a54284465685f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0f3204b4dcb73207fe8a54284465685f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
0bdce8ac by Philipp Hörist at 2022-12-13T19:40:15+01:00
other: Scripts: Execute pyright last in pre-push-tests
It takes the most time, so execute it last
- - - - -
1 changed file:
- scripts/pre-push-tests.sh
Changes:
=====================================
scripts/pre-push-tests.sh
=====================================
@@ -6,10 +6,13 @@ set -e
GREEN='\033[0;32m'
-pyright
-echo "${GREEN}pyright: \t OK"
ruff .
echo "${GREEN}ruff: \t\t OK"
+
codespell gajim
echo "${GREEN}codespell: \t OK"
+
+pyright
+echo "${GREEN}pyright: \t OK"
+
echo "${GREEN}ready to push"
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0bdce8acbd60c56b358328f68a45f3a2…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0bdce8acbd60c56b358328f68a45f3a2…
You're receiving this email because of your account on dev.gajim.org.