Philipp Hörist pushed to branch master at gajim / gajim
Commits:
caec3515 by Philipp Hörist at 2022-09-29T22:01:11+02:00
fix: StatusIcon: Reset unread state correctly when using Flatpak
Fixes #11069
- - - - -
1 changed file:
- gajim/gtk/status_icon.py
Changes:
=====================================
gajim/gtk/status_icon.py
=====================================
@@ -326,6 +326,7 @@ def update_state(self, init: bool = False) -> None:
return
if app.is_flatpak():
+ self._status_icon.set_icon_full('org.gajim.Gajim', 'online')
return
show = get_global_show()
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/caec3515b229d5f8754694994f8dbeaa…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/caec3515b229d5f8754694994f8dbeaa…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
9300b239 by wurstsalat at 2022-09-29T17:29:55+00:00
perf: SearchView: Speed up clearing of search results
Fixes #11158
- - - - -
1 changed file:
- gajim/gtk/search_view.py
Changes:
=====================================
gajim/gtk/search_view.py
=====================================
@@ -107,10 +107,15 @@ def clear(self) -> None:
self._clear_results()
def _clear_results(self) -> None:
+ # Unset the header_func to reduce load when clearing
+ self._ui.results_listbox.set_header_func(None)
+
for row in self._ui.results_listbox.get_children():
self._ui.results_listbox.remove(row)
row.destroy()
+ self._ui.results_listbox.set_header_func(self._header_func)
+
def _on_search(self, entry: Gtk.Entry) -> None:
self._clear_results()
self._ui.date_hint.hide()
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9300b23922fd170e8ee759c690c4b992…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9300b23922fd170e8ee759c690c4b992…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c947c797 by wurstsalat at 2022-09-29T17:18:37+00:00
perf: Styling: Parse emojis for Darwin only
- - - - -
1 changed file:
- gajim/common/styling.py
Changes:
=====================================
gajim/common/styling.py
=====================================
@@ -18,6 +18,7 @@
from typing import Match
import string
+import sys
import re
from dataclasses import dataclass
from dataclasses import field
@@ -208,7 +209,11 @@ def process(text: Union[str, bytes], level: int = 0) -> ParsingResult:
for line in block.text.splitlines(keepends=True):
block.spans += _parse_line(line, offset, offset_bytes)
block.uris += _parse_uris(line, offset, offset_bytes)
- block.emojis += _parse_emojis(line, offset)
+ if sys.platform == 'darwin':
+ # block.emojis is used for replacing emojis with Gtk.Images
+ # Necessary for MessageTextview (darwin) only
+ block.emojis += _parse_emojis(line, offset)
+
offset += len(line)
offset_bytes += len(line.encode())
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c947c797637a648d22cef70f9f08c912…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c947c797637a648d22cef70f9f08c912…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch emoji-parsing-darwin at gajim / gajim
Commits:
2f4fc205 by wurstsalat at 2022-09-29T09:49:22+02:00
ci: Windows: Add libheif dependency
This adds a GdkPixbuf loader for HEIF and AVIF images, see #11020
- - - - -
c947c797 by wurstsalat at 2022-09-29T17:18:37+00:00
perf: Styling: Parse emojis for Darwin only
- - - - -
2 changed files:
- gajim/common/styling.py
- win/_base.sh
Changes:
=====================================
gajim/common/styling.py
=====================================
@@ -18,6 +18,7 @@
from typing import Match
import string
+import sys
import re
from dataclasses import dataclass
from dataclasses import field
@@ -208,7 +209,11 @@ def process(text: Union[str, bytes], level: int = 0) -> ParsingResult:
for line in block.text.splitlines(keepends=True):
block.spans += _parse_line(line, offset, offset_bytes)
block.uris += _parse_uris(line, offset, offset_bytes)
- block.emojis += _parse_emojis(line, offset)
+ if sys.platform == 'darwin':
+ # block.emojis is used for replacing emojis with Gtk.Images
+ # Necessary for MessageTextview (darwin) only
+ block.emojis += _parse_emojis(line, offset)
+
offset += len(line)
offset_bytes += len(line.encode())
=====================================
win/_base.sh
=====================================
@@ -89,6 +89,7 @@ function install_deps {
mingw-w64-"${ARCH}"-python-pip \
mingw-w64-"${ARCH}"-adwaita-icon-theme \
mingw-w64-"${ARCH}"-libwebp \
+ mingw-w64-"${ARCH}"-libheif \
mingw-w64-"${ARCH}"-sqlite3 \
mingw-w64-"${ARCH}"-goocanvas \
mingw-w64-"${ARCH}"-gspell \
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/71010ae347ae2e70016c13733dc54c7…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/71010ae347ae2e70016c13733dc54c7…
You're receiving this email because of your account on dev.gajim.org.