mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-06-10 08:50:18 +00:00
Compare commits
29 Commits
0e5f702651
...
flatpak-fl
| Author | SHA1 | Date | |
|---|---|---|---|
| 57f8f97e59 | |||
| f0a0ea699d | |||
| 005d9c6849 | |||
| 115ac17968 | |||
| d8600a2237 | |||
| 6535810ca3 | |||
| 479f1649ef | |||
|
|
06f69184b6 | ||
|
|
3471d9a57c | ||
| 28d4035477 | |||
|
|
3e1d151efd | ||
| 556cfc3036 | |||
| c49b757be6 | |||
| cec7e2caf3 | |||
| 9a0c07a461 | |||
| c7064c18b9 | |||
|
|
fb897310c8 | ||
| 5944849326 | |||
| 1255f1e6c7 | |||
| d7bc09d859 | |||
| f84a448351 | |||
| 7e34690e0c | |||
|
|
6f6d378600 | ||
|
|
216b463b8f | ||
| 4ad84cb5e5 | |||
| 19e0946717 | |||
| 0de1ad06cd | |||
|
|
72427006dd | ||
|
|
23d0963c2d |
4
.github/workflows/appimage-build.yml
vendored
4
.github/workflows/appimage-build.yml
vendored
@@ -261,8 +261,8 @@ jobs:
|
||||
|
||||
./linuxdeploy-x86_64.AppImage \
|
||||
--appdir AppDir \
|
||||
--desktop-file AppDir/usr/share/applications/net.zoite.Zoitechat.desktop \
|
||||
--icon-file AppDir/usr/share/icons/hicolor/48x48/apps/net.zoite.Zoitechat.png \
|
||||
--desktop-file AppDir/usr/share/applications/org.zoitechat.ZoiteChat.desktop \
|
||||
--icon-file AppDir/usr/share/icons/hicolor/48x48/apps/org.zoitechat.ZoiteChat.png \
|
||||
--custom-apprun ./AppRun \
|
||||
--plugin gtk \
|
||||
--output appimage
|
||||
|
||||
2
.github/workflows/flatpak-build.yml
vendored
2
.github/workflows/flatpak-build.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
||||
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||
with:
|
||||
bundle: zoitechat.flatpak
|
||||
manifest-path: flatpak/net.zoite.Zoitechat.json
|
||||
manifest-path: flatpak/org.zoitechat.ZoiteChat.json
|
||||
cache: false
|
||||
restore-cache: false
|
||||
|
||||
|
||||
4
.github/workflows/windows-build.yml
vendored
4
.github/workflows/windows-build.yml
vendored
@@ -65,8 +65,8 @@ jobs:
|
||||
Download-WithRetry -Url https://github.com/jrsoftware/issrc/releases/download/is-6_7_1/innosetup-6.7.1.exe -OutFile deps\innosetup-unicode.exe
|
||||
& deps\innosetup-unicode.exe /VERYSILENT | Out-Null
|
||||
|
||||
Download-WithRetry -Url https://github.com/ZoiteChat/gvsbuild/releases/download/zoitechat-2.18.0-pre1/GTK3_Gvsbuild_zoitechat-2.18.0-pre1_${{ matrix.platform }}.7z -OutFile deps\gtk-${{ matrix.arch }}.7z
|
||||
& 7z.exe x deps\gtk-${{ matrix.arch }}.7z -oC:\gtk-build\gtk\x64\release
|
||||
Download-WithRetry -Url https://github.com/ZoiteChat/gvsbuild/releases/download/zoitechat-2.18.1/GTK3_Gvsbuild_zoitechat-2.18.1_x64.zip -OutFile deps\gtk-${{ matrix.arch }}.zip
|
||||
Expand-Archive -LiteralPath deps\gtk-${{ matrix.arch }}.zip -DestinationPath C:\gtk-build\gtk\x64\release -Force
|
||||
|
||||
Download-WithRetry -Url https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-hicolor-icon-theme-0.18-1-any.pkg.tar.zst -OutFile deps\hicolor-icon-theme.pkg.tar.zst
|
||||
python -c "import tarfile,zstandard,pathlib;archive=pathlib.Path(r'deps\\hicolor-icon-theme.pkg.tar.zst');target=pathlib.Path(r'C:\\gtk-build\\gtk\\x64\\release');dctx=zstandard.ZstdDecompressor();f=archive.open('rb');reader=dctx.stream_reader(f);tf=tarfile.open(fileobj=reader,mode='r|');[tf.extract(m,path=target) for m in tf if m.name.startswith('mingw64/share/icons/hicolor/')];tf.close();reader.close();f.close()"
|
||||
|
||||
@@ -1,7 +1,28 @@
|
||||
ZoiteChat ChangeLog
|
||||
=================
|
||||
|
||||
2.18.1 (2026-05-21)
|
||||
-------------------
|
||||
|
||||
- Migrated D-Bus handling to GDBus.
|
||||
- Enabled mouse wheel channel switching by default and consumed handled tab wheel events.
|
||||
- Switched main panes to native GTK scrollbars.
|
||||
- Tightened userlist button and meter layout.
|
||||
- Made the native Windows file chooser modal.
|
||||
- Set the Windows AppUserModelID before GTK startup.
|
||||
- Updated Windows CI to use the new GTK3 bundle zip.
|
||||
- Updated Windows installer architecture checks to use x64-compatible detection.
|
||||
- Bumped the Flatpak Perl runtime to 5.42.2.
|
||||
- Fixed palette color reads to preserve base GTK state.
|
||||
- Fixed auto-replace whole-word matching.
|
||||
- Fixed checksum file stream cleanup.
|
||||
- Fixed byte handling in the Python console.
|
||||
- Guarded GTK drag-and-drop handlers against null windows.
|
||||
- Fixed size_t and integer handling issues.
|
||||
- Removed the Winamp plugin.
|
||||
|
||||
2.18.0 (2026-04-20)
|
||||
-------------------
|
||||
|
||||
- Added optional close buttons on tabs.
|
||||
- Added Ctrl+W to close tabs and Ctrl+Shift+T to reopen recently closed tabs.
|
||||
@@ -19,6 +40,7 @@ ZoiteChat ChangeLog
|
||||
- Improved AppStream metainfo validation.
|
||||
|
||||
2.18.0~pre6 (2026-03-30)
|
||||
------------------------
|
||||
|
||||
- Applied app theme CSS to the menubar consistently across the app.
|
||||
- Restored horizontal separator lines in menus.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
icondir = join_paths(get_option('datadir'), 'icons/hicolor')
|
||||
install_data(
|
||||
'zoitechat.png',
|
||||
rename: 'net.zoite.Zoitechat.png',
|
||||
rename: 'org.zoitechat.ZoiteChat.png',
|
||||
install_dir: join_paths(icondir, '48x48/apps')
|
||||
)
|
||||
install_data(
|
||||
'zoitechat.svg',
|
||||
rename: 'net.zoite.Zoitechat.svg',
|
||||
rename: 'org.zoitechat.ZoiteChat.svg',
|
||||
install_dir: join_paths(icondir, 'scalable/apps')
|
||||
)
|
||||
|
||||
@@ -6,8 +6,8 @@ desktop_utils = find_program('desktop-file-validate', required: false)
|
||||
if get_option('gtk-frontend')
|
||||
if get_option('install-appdata')
|
||||
zoitechat_appdata = i18n.merge_file(
|
||||
input: 'net.zoite.Zoitechat.appdata.xml.in',
|
||||
output: 'net.zoite.Zoitechat.appdata.xml',
|
||||
input: 'org.zoitechat.ZoiteChat.metainfo.xml.in',
|
||||
output: 'org.zoitechat.ZoiteChat.metainfo.xml',
|
||||
po_dir: '../../po',
|
||||
install: true,
|
||||
install_dir: metainfodir
|
||||
@@ -15,7 +15,7 @@ if get_option('gtk-frontend')
|
||||
|
||||
appstreamcli = find_program('appstreamcli', required: false)
|
||||
if appstreamcli.found()
|
||||
test('Validate net.zoite.Zoitechat.appdata.xml', appstreamcli,
|
||||
test('Validate org.zoitechat.ZoiteChat.metainfo.xml', appstreamcli,
|
||||
args: ['validate', zoitechat_appdata]
|
||||
)
|
||||
endif
|
||||
@@ -29,14 +29,14 @@ if get_option('gtk-frontend')
|
||||
endif
|
||||
|
||||
desktop_file = configure_file(
|
||||
input: 'net.zoite.Zoitechat.desktop.in.in',
|
||||
output: 'net.zoite.Zoitechat.desktop.in',
|
||||
input: 'org.zoitechat.ZoiteChat.desktop.in.in',
|
||||
output: 'org.zoitechat.ZoiteChat.desktop.in',
|
||||
configuration: desktop_conf
|
||||
)
|
||||
|
||||
zoitechat_desktop = i18n.merge_file(
|
||||
input: desktop_file,
|
||||
output: 'net.zoite.Zoitechat.desktop',
|
||||
output: 'org.zoitechat.ZoiteChat.desktop',
|
||||
po_dir: '../../po',
|
||||
type: 'desktop',
|
||||
install: true,
|
||||
@@ -44,7 +44,7 @@ if get_option('gtk-frontend')
|
||||
)
|
||||
|
||||
if desktop_utils.found()
|
||||
test('Validate net.zoite.Zoitechat.desktop', desktop_utils,
|
||||
test('Validate org.zoitechat.ZoiteChat.desktop', desktop_utils,
|
||||
args: [zoitechat_desktop]
|
||||
)
|
||||
endif
|
||||
@@ -98,14 +98,14 @@ if get_option('plugin')
|
||||
conf.set('LICENSE', metainfo[2])
|
||||
|
||||
plugin_appdata = configure_file(
|
||||
input: 'net.zoite.Zoitechat.Plugin.metainfo.xml.in',
|
||||
output: 'net.zoite.Zoitechat.Plugin.@0@.metainfo.xml'.format(name),
|
||||
input: 'org.zoitechat.ZoiteChat.Plugin.metainfo.xml.in',
|
||||
output: 'org.zoitechat.ZoiteChat.Plugin.@0@.metainfo.xml'.format(name),
|
||||
configuration: conf,
|
||||
install_dir: get_option('install-plugin-metainfo') ? metainfodir : '',
|
||||
)
|
||||
|
||||
if appstreamcli.found()
|
||||
test('Validate net.zoite.Zoitechat.Plugin.@0@.metainfo.xml'.format(name), appstreamcli,
|
||||
test('Validate org.zoitechat.ZoiteChat.Plugin.@0@.metainfo.xml'.format(name), appstreamcli,
|
||||
args: ['validate', plugin_appdata]
|
||||
)
|
||||
endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="addon">
|
||||
<id>net.zoite.Zoitechat.Plugin.@NAME@</id>
|
||||
<extends>net.zoite.Zoitechat</extends>
|
||||
<id>org.zoitechat.ZoiteChat.Plugin.@NAME@</id>
|
||||
<extends>org.zoitechat.ZoiteChat</extends>
|
||||
<name>@NAME@ Plugin</name>
|
||||
<summary>@SUMMARY@</summary>
|
||||
<url type="homepage">https://zoitechat.org/</url>
|
||||
@@ -4,12 +4,12 @@ GenericName=IRC Client
|
||||
Comment=Chat with other people online
|
||||
Keywords=IM;Chat;
|
||||
Exec=@exec_command@
|
||||
Icon=net.zoite.Zoitechat
|
||||
Icon=org.zoitechat.ZoiteChat
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=GTK;Network;IRCClient;
|
||||
StartupNotify=true
|
||||
StartupWMClass=net.zoite.Zoitechat
|
||||
StartupWMClass=org.zoitechat.ZoiteChat
|
||||
X-GNOME-UsesNotifications=true
|
||||
MimeType=x-scheme-handler/irc;x-scheme-handler/ircs;
|
||||
Actions=SafeMode;
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>net.zoite.Zoitechat</id>
|
||||
<id>org.zoitechat.ZoiteChat</id>
|
||||
<name>ZoiteChat</name>
|
||||
<launchable type="desktop-id">net.zoite.Zoitechat.desktop</launchable>
|
||||
<launchable type="desktop-id">org.zoitechat.ZoiteChat.desktop</launchable>
|
||||
|
||||
<developer id="net.zoite">
|
||||
<developer id="org.zoitechat">
|
||||
<name translate="no">ZoiteChat</name>
|
||||
</developer>
|
||||
|
||||
@@ -26,9 +26,31 @@
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<provides>
|
||||
<id>zoitechat.desktop</id>
|
||||
<id>org.zoitechat.ZoiteChat.desktop</id>
|
||||
</provides>
|
||||
<releases>
|
||||
<release date="2026-05-21" version="2.18.1">
|
||||
<description>
|
||||
<ul>
|
||||
<li>Migrated D-Bus handling to GDBus.</li>
|
||||
<li>Enabled mouse wheel channel switching by default and consumed handled tab wheel events.</li>
|
||||
<li>Switched main panes to native GTK scrollbars.</li>
|
||||
<li>Tightened userlist button and meter layout.</li>
|
||||
<li>Made the native Windows file chooser modal.</li>
|
||||
<li>Set the Windows AppUserModelID before GTK startup.</li>
|
||||
<li>Updated Windows CI to use the new GTK3 bundle zip.</li>
|
||||
<li>Updated Windows installer architecture checks to use x64-compatible detection.</li>
|
||||
<li>Bumped the Flatpak Perl runtime to 5.42.2.</li>
|
||||
<li>Fixed palette color reads to preserve base GTK state.</li>
|
||||
<li>Fixed auto-replace whole-word matching.</li>
|
||||
<li>Fixed checksum file stream cleanup.</li>
|
||||
<li>Fixed byte handling in the Python console.</li>
|
||||
<li>Guarded GTK drag-and-drop handlers against null windows.</li>
|
||||
<li>Fixed size_t and integer handling issues.</li>
|
||||
<li>Removed the Winamp plugin.</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release date="2026-04-20" version="2.18.0">
|
||||
<description>
|
||||
<p>Tabs and navigation:</p>
|
||||
@@ -317,7 +339,7 @@
|
||||
<description>
|
||||
<p>This is largely a bug fix release though it has some large behind the scenes changes:</p>
|
||||
<ul>
|
||||
<li>Rename data files to use *net.zoite.Zoitechat* name</li>
|
||||
<li>Rename data files to use *org.zoitechat.ZoiteChat* name</li>
|
||||
<li>Add option (irc_reconnect_rejoin) to disable auto-rejoin on reconnect</li>
|
||||
<li>Add ability to set custom tray icon separate of app icon</li>
|
||||
<li>Fix Enchant 2.0+ support</li>
|
||||
@@ -1,25 +1,17 @@
|
||||
From 918503d57c6740d20be68a6717158673a2a8b25f Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Griffis <tingping@tingping.se>
|
||||
Date: Sat, 17 Mar 2018 05:57:49 -0400
|
||||
Subject: [PATCH] Support loading Flatpak extensions
|
||||
|
||||
---
|
||||
src/common/plugin.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/common/plugin.c b/src/common/plugin.c
|
||||
index 3ad3c558..6addf962 100644
|
||||
--- a/src/common/plugin.c
|
||||
+++ b/src/common/plugin.c
|
||||
@@ -450,6 +450,8 @@ plugin_auto_load (session *sess)
|
||||
lib_dir = plugin_get_libdir ();
|
||||
sub_dir = g_build_filename (get_xdir (), "addons", NULL);
|
||||
|
||||
+ for_files ("/app/extensions/lib/zoitechat/plugins", "*.so", plugin_auto_load_cb);
|
||||
@@ -470,7 +470,14 @@
|
||||
if (libdir && *libdir)
|
||||
return libdir;
|
||||
else
|
||||
+ {
|
||||
+ if (g_file_test ("/app/extensions/lib/zoitechat/plugins", G_FILE_TEST_IS_DIR))
|
||||
+ {
|
||||
+ return "/app/extensions/lib/zoitechat/plugins";
|
||||
+ }
|
||||
+
|
||||
#ifdef WIN32
|
||||
/* a long list of bundled plugins that should be loaded automatically,
|
||||
* user plugins should go to <config>, leave Program Files alone! */
|
||||
--
|
||||
2.14.3
|
||||
|
||||
return ZOITECHATLIBDIR;
|
||||
+ }
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
{
|
||||
"app-id": "net.zoite.Zoitechat",
|
||||
"branch": "master",
|
||||
"runtime": "org.gnome.Platform",
|
||||
"runtime-version": "49",
|
||||
"sdk": "org.gnome.Sdk",
|
||||
"command": "zoitechat",
|
||||
"finish-args": [
|
||||
"--share=ipc",
|
||||
"--socket=wayland",
|
||||
"--socket=fallback-x11",
|
||||
"--share=network",
|
||||
"--socket=pulseaudio",
|
||||
"--filesystem=xdg-download",
|
||||
"--filesystem=xdg-data/themes:ro",
|
||||
"--filesystem=xdg-data/icons:ro",
|
||||
"--filesystem=xdg-run/tray-icon:create",
|
||||
"--env=GTK_CSD=1",
|
||||
"--talk-name=org.freedesktop.Notifications",
|
||||
"--talk-name=org.kde.StatusNotifierWatcher",
|
||||
"--talk-name=com.canonical.AppMenu.Registrar",
|
||||
"--talk-name=org.mpris.MediaPlayer2.*"
|
||||
],
|
||||
"add-extensions": {
|
||||
"net.zoite.Zoitechat.Plugin": {
|
||||
"version": "49",
|
||||
"directory": "extensions",
|
||||
"add-ld-path": "lib",
|
||||
"merge-dirs": "lib/zoitechat/plugins",
|
||||
"subdirectories": true,
|
||||
"no-autodownload": true,
|
||||
"autodelete": true
|
||||
}
|
||||
},
|
||||
"modules": [
|
||||
"shared-modules/lua5.4/lua-5.4.json",
|
||||
"shared-modules/libcanberra/libcanberra.json",
|
||||
"shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json",
|
||||
"python3-cffi.json",
|
||||
"perl.json",
|
||||
{
|
||||
"name": "lgi",
|
||||
"buildsystem": "meson",
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://github.com/pavouk/lgi/archive/c9b8e4473c6421f2a215d8c06c0d94b86eb0b26a.tar.gz",
|
||||
"sha256": "db67b2b7ee89fa566f783486d56be7203552a997bc55f35020b57dd2776b9943"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "zoitechat",
|
||||
"buildsystem": "meson",
|
||||
"config-opts": [
|
||||
"-Ddbus-service-use-appid=true",
|
||||
"-Dwith-perl=perl",
|
||||
"-Dwith-python=python3",
|
||||
"-Dwith-lua=lua"
|
||||
],
|
||||
"build-options": {
|
||||
"cflags": "-Wno-error=missing-include-dirs"
|
||||
},
|
||||
"cleanup": [
|
||||
"/share/man"
|
||||
],
|
||||
"post-install": [
|
||||
"install -d /app/extensions"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "dir",
|
||||
"path": ".."
|
||||
},
|
||||
{
|
||||
"type": "patch",
|
||||
"path": "Load-plugins-from-Flatpak-extensions.patch"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
127
flatpak/org.zoitechat.ZoiteChat.json
Normal file
127
flatpak/org.zoitechat.ZoiteChat.json
Normal file
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"app-id": "org.zoitechat.ZoiteChat",
|
||||
"runtime": "org.gnome.Platform",
|
||||
"runtime-version": "50",
|
||||
"sdk": "org.gnome.Sdk",
|
||||
"command": "zoitechat",
|
||||
"finish-args": [
|
||||
"--share=ipc",
|
||||
"--socket=wayland",
|
||||
"--socket=fallback-x11",
|
||||
"--share=network",
|
||||
"--socket=pulseaudio",
|
||||
"--filesystem=xdg-download",
|
||||
"--filesystem=xdg-run/tray-icon:create",
|
||||
"--env=GTK_CSD=1",
|
||||
"--talk-name=org.freedesktop.Notifications",
|
||||
"--talk-name=org.kde.StatusNotifierWatcher",
|
||||
"--talk-name=com.canonical.AppMenu.Registrar"
|
||||
],
|
||||
"add-extensions": {
|
||||
"org.zoitechat.ZoiteChat.Plugin": {
|
||||
"version": "50",
|
||||
"directory": "extensions",
|
||||
"add-ld-path": "lib",
|
||||
"merge-dirs": "lib/zoitechat/plugins",
|
||||
"subdirectories": true,
|
||||
"no-autodownload": true,
|
||||
"autodelete": true
|
||||
}
|
||||
},
|
||||
"modules": [
|
||||
"shared-modules/lua5.4/lua-5.4.json",
|
||||
"shared-modules/libcanberra/libcanberra.json",
|
||||
"shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json",
|
||||
{
|
||||
"name": "python3-cffi",
|
||||
"buildsystem": "simple",
|
||||
"build-commands": [
|
||||
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"cffi\" --no-build-isolation"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "file",
|
||||
"url": "https://files.pythonhosted.org/packages/1d/b2/31537cf4b1ca988837256c910a668b553fceb8f069bedc4b1c826024b52c/pycparser-2.22.tar.gz",
|
||||
"sha256": "491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"url": "https://files.pythonhosted.org/packages/fc/97/c783634659c2920c3fc70419e3af40972dbaf758daa229a7d6ea6135c90d/cffi-1.17.1.tar.gz",
|
||||
"sha256": "1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "perl",
|
||||
"buildsystem": "simple",
|
||||
"build-options": {
|
||||
"no-debuginfo": true
|
||||
},
|
||||
"build-commands": [
|
||||
"./Configure -des -Dprefix=/app -Dvendorprefix=/app -Duseshrplib -Dman1dir=none -Dman3dir=none",
|
||||
"make -j${FLATPAK_BUILDER_N_JOBS}",
|
||||
"make install"
|
||||
],
|
||||
"cleanup": [
|
||||
"/share/man",
|
||||
"/lib/perl5/*/*/CORE/*.a"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://www.cpan.org/src/5.0/perl-5.42.2.tar.xz",
|
||||
"sha256": "0a585eeb9e363c0f80482ddb3571625250c2c86aeb408853e8ea50805cfb14bb"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "lgi",
|
||||
"buildsystem": "meson",
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://github.com/pavouk/lgi/archive/c9b8e4473c6421f2a215d8c06c0d94b86eb0b26a.tar.gz",
|
||||
"sha256": "db67b2b7ee89fa566f783486d56be7203552a997bc55f35020b57dd2776b9943"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "zoitechat",
|
||||
"buildsystem": "meson",
|
||||
"config-opts": [
|
||||
"-Ddbus-service-use-appid=true",
|
||||
"-Dwith-perl=perl",
|
||||
"-Dwith-python=python3",
|
||||
"-Dwith-lua=lua"
|
||||
],
|
||||
"build-options": {
|
||||
"cflags": "-Wno-error=missing-include-dirs"
|
||||
},
|
||||
"cleanup": [
|
||||
"/share/man"
|
||||
],
|
||||
"post-install": [
|
||||
"install -d /app/extensions"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "git",
|
||||
"url": "https://github.com/ZoiteChat/zoitechat.git",
|
||||
"tag": "zoitechat-2.18.1",
|
||||
"commit": "479f1649efa0e5b166a7c7c9d86214b42ec9f794"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"url": "https://publicsuffix.org/list/public_suffix_list.dat",
|
||||
"sha256": "6f7f7d9e8c68447f1c74095a12574b7fee46b0cd759c518a659aee0615d8e118",
|
||||
"dest": "src/common",
|
||||
"dest-filename": "public_suffix_list.dat"
|
||||
},
|
||||
{
|
||||
"type": "patch",
|
||||
"path": "Load-plugins-from-Flatpak-extensions.patch"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"name": "perl",
|
||||
"buildsystem": "simple",
|
||||
"build-commands": [
|
||||
"./Configure -des -Dprefix=/app -Dvendorprefix=/app -Duseshrplib -Dman1dir=none -Dman3dir=none",
|
||||
"make -j${FLATPAK_BUILDER_N_JOBS}",
|
||||
"make install"
|
||||
],
|
||||
"cleanup": [
|
||||
"/share/man",
|
||||
"/lib/perl5/*/*/CORE/*.a"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://www.cpan.org/src/5.0/perl-5.42.2.tar.xz",
|
||||
"sha256": "0a585eeb9e363c0f80482ddb3571625250c2c86aeb408853e8ea50805cfb14bb"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"name": "python3-cffi",
|
||||
"buildsystem": "simple",
|
||||
"build-commands": [
|
||||
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"cffi\" --no-build-isolation"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "file",
|
||||
"url": "https://files.pythonhosted.org/packages/1d/b2/31537cf4b1ca988837256c910a668b553fceb8f069bedc4b1c826024b52c/pycparser-2.22.tar.gz",
|
||||
"sha256": "491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"url": "https://files.pythonhosted.org/packages/fc/97/c783634659c2920c3fc70419e3af40972dbaf758daa229a7d6ea6135c90d/cffi-1.17.1.tar.gz",
|
||||
"sha256": "1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
project('zoitechat', 'c',
|
||||
version: '2.18.0',
|
||||
version: '2.18.1',
|
||||
meson_version: '>= 0.55.0',
|
||||
default_options: [
|
||||
'c_std=c17',
|
||||
|
||||
@@ -19,7 +19,7 @@ else:
|
||||
if not hasattr(sys, 'argv'):
|
||||
sys.argv = ['<zoitechat>']
|
||||
|
||||
VERSION = b'2.18.0'
|
||||
VERSION = b'2.18.1'
|
||||
PLUGIN_NAME = ffi.new('char[]', b'Python')
|
||||
PLUGIN_DESC = ffi.new('char[]', b'Python %d.%d scripting interface' % (sys.version_info[0], sys.version_info[1]))
|
||||
PLUGIN_VERSION = ffi.new('char[]', VERSION)
|
||||
@@ -320,9 +320,9 @@ def _on_say_command(word, word_eol, userdata):
|
||||
return 0
|
||||
|
||||
try:
|
||||
python = _cstr(word_eol[1])
|
||||
python = __decode(_cstr(word_eol[1]))
|
||||
except Exception:
|
||||
python = b''
|
||||
python = ''
|
||||
|
||||
if not python:
|
||||
return 1
|
||||
|
||||
@@ -1168,8 +1168,11 @@ set_showval (session *sess, const struct prefs *var, char *tbuf)
|
||||
switch (var->type)
|
||||
{
|
||||
case TYPE_STR:
|
||||
sprintf (tbuf + len, "\0033:\017 %s\n", (char *) &prefs + var->offset);
|
||||
break;
|
||||
{
|
||||
const char *value = (char *) &prefs + var->offset;
|
||||
sprintf (tbuf + len, "\0033:\017 %s\n", value ? value : "");
|
||||
}
|
||||
break;
|
||||
case TYPE_INT:
|
||||
sprintf (tbuf + len, "\0033:\017 %d\n", *((int *) &prefs + var->offset));
|
||||
break;
|
||||
|
||||
@@ -4397,7 +4397,7 @@ void
|
||||
check_special_chars (char *cmd, int do_ascii) /* check for %X */
|
||||
{
|
||||
int occur = 0;
|
||||
int len = strlen (cmd);
|
||||
size_t len = strlen (cmd);
|
||||
char *buf, *utf;
|
||||
char tbuf[4];
|
||||
int i = 0, j = 0;
|
||||
|
||||
@@ -1017,7 +1017,7 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[],
|
||||
char *account;
|
||||
char ip[128], nick[NICKLEN];
|
||||
char *text, *ex;
|
||||
int len = strlen (type);
|
||||
size_t len = strlen (type);
|
||||
|
||||
/* fill in the "ip" and "nick" buffers */
|
||||
ex = strchr (word[1], '!');
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <ctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <limits.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
@@ -74,6 +75,18 @@ typedef struct
|
||||
static bool string_builder_init (StringBuilder *builder);
|
||||
static void string_builder_free (StringBuilder *builder);
|
||||
static bool string_builder_append (StringBuilder *builder, const char *text);
|
||||
static int size_to_int (size_t value);
|
||||
|
||||
static int
|
||||
size_to_int (size_t value)
|
||||
{
|
||||
if (value > (size_t) INT_MAX)
|
||||
{
|
||||
return INT_MAX;
|
||||
}
|
||||
|
||||
return (int) value;
|
||||
}
|
||||
|
||||
char *
|
||||
sysinfo_get_cpu (void)
|
||||
@@ -511,6 +524,7 @@ static char *read_hdd_info (IWbemClassObject *object)
|
||||
static char *bstr_to_utf8 (BSTR bstr)
|
||||
{
|
||||
int utf8_len;
|
||||
int wide_len;
|
||||
char *utf8;
|
||||
|
||||
if (bstr == NULL)
|
||||
@@ -518,7 +532,8 @@ static char *bstr_to_utf8 (BSTR bstr)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
utf8_len = WideCharToMultiByte (CP_UTF8, 0, bstr, SysStringLen (bstr), NULL, 0, NULL, NULL);
|
||||
wide_len = size_to_int ((size_t) SysStringLen (bstr));
|
||||
utf8_len = WideCharToMultiByte (CP_UTF8, 0, bstr, wide_len, NULL, 0, NULL, NULL);
|
||||
if (utf8_len <= 0)
|
||||
{
|
||||
return NULL;
|
||||
@@ -530,7 +545,7 @@ static char *bstr_to_utf8 (BSTR bstr)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (WideCharToMultiByte (CP_UTF8, 0, bstr, SysStringLen (bstr), utf8, utf8_len, NULL, NULL) <= 0)
|
||||
if (WideCharToMultiByte (CP_UTF8, 0, bstr, wide_len, utf8, utf8_len, NULL, NULL) <= 0)
|
||||
{
|
||||
free (utf8);
|
||||
return NULL;
|
||||
|
||||
@@ -321,7 +321,7 @@ url_check_line (char *buf)
|
||||
for (i = 0; i < ARRAY_SIZE (commands); i++)
|
||||
{
|
||||
char *cmd = commands[i];
|
||||
int len = strlen (cmd);
|
||||
size_t len = strlen (cmd);
|
||||
|
||||
if (strncmp (cmd, po, len) == 0)
|
||||
{
|
||||
|
||||
@@ -98,7 +98,7 @@ path_part (char *file, char *path, int pathlen)
|
||||
char * /* like strstr(), but nocase */
|
||||
nocasestrstr (const char *s, const char *wanted)
|
||||
{
|
||||
register const int len = strlen (wanted);
|
||||
register const size_t len = strlen (wanted);
|
||||
|
||||
if (len == 0)
|
||||
return (char *)s;
|
||||
|
||||
@@ -452,7 +452,7 @@ void
|
||||
fe_add_chan_list (server *serv, char *chan, char *users, char *topic)
|
||||
{
|
||||
chanlistrow *next_row;
|
||||
int len = strlen (chan) + 1;
|
||||
size_t len = strlen (chan) + 1;
|
||||
|
||||
/* we allocate the struct and channel string in one go */
|
||||
next_row = g_malloc (sizeof (chanlistrow) + len);
|
||||
|
||||
@@ -124,6 +124,25 @@ create_msg_dialog (gchar *title, gchar *message)
|
||||
|
||||
static char *win32_argv0_dir;
|
||||
|
||||
static void
|
||||
win32_set_appusermodelid (void)
|
||||
{
|
||||
HMODULE shell32;
|
||||
HRESULT (WINAPI *set_appid) (PCWSTR);
|
||||
|
||||
shell32 = GetModuleHandleW (L"shell32.dll");
|
||||
if (!shell32)
|
||||
shell32 = LoadLibraryW (L"shell32.dll");
|
||||
if (!shell32)
|
||||
return;
|
||||
|
||||
set_appid = (HRESULT (WINAPI *) (PCWSTR)) GetProcAddress (shell32, "SetCurrentProcessExplicitAppUserModelID");
|
||||
if (!set_appid)
|
||||
return;
|
||||
|
||||
set_appid (L"ZoiteChat.Desktop.Notify");
|
||||
}
|
||||
|
||||
static void
|
||||
win32_set_gsettings_schema_dir (void)
|
||||
{
|
||||
@@ -301,7 +320,7 @@ fe_args (int argc, char *argv[])
|
||||
GError *error = NULL;
|
||||
GOptionContext *context;
|
||||
char *buffer;
|
||||
const char *desktop_id = "net.zoite.Zoitechat";
|
||||
const char *desktop_id = "org.zoitechat.ZoiteChat";
|
||||
#ifdef WIN32
|
||||
char *base_path = NULL;
|
||||
char *locale_path = NULL;
|
||||
@@ -422,6 +441,7 @@ fe_args (int argc, char *argv[])
|
||||
|
||||
#ifdef WIN32
|
||||
win32_set_gsettings_schema_dir ();
|
||||
win32_set_appusermodelid ();
|
||||
win32_configure_pixbuf_loaders ();
|
||||
|
||||
/* this is mainly for irc:// URL handling. When windows calls us from */
|
||||
|
||||
@@ -522,6 +522,10 @@ gtkutil_file_req (GtkWindow *parent, const char *title, void *callback, void *us
|
||||
|
||||
g_signal_connect (native, "response",
|
||||
G_CALLBACK (gtkutil_native_file_req_response), freq);
|
||||
|
||||
if (flags & FRF_MODAL)
|
||||
gtk_native_dialog_set_modal (GTK_NATIVE_DIALOG (native), TRUE);
|
||||
|
||||
gtk_native_dialog_show (GTK_NATIVE_DIALOG (native));
|
||||
return;
|
||||
}
|
||||
@@ -972,7 +976,7 @@ gtkutil_copy_to_clipboard (GtkWidget *widget, GdkAtom selection,
|
||||
win = gtk_widget_get_toplevel (GTK_WIDGET (widget));
|
||||
if (gtk_widget_is_toplevel (win))
|
||||
{
|
||||
int len = strlen (str);
|
||||
gint len = (gint) strlen (str);
|
||||
|
||||
if (selection)
|
||||
{
|
||||
|
||||
@@ -902,7 +902,12 @@ mg_windowstate_cb (GtkWindow *wid, GdkEventWindowState *event, gpointer userdata
|
||||
if ((event->changed_mask & GDK_WINDOW_STATE_ICONIFIED) &&
|
||||
(event->new_window_state & GDK_WINDOW_STATE_ICONIFIED) &&
|
||||
prefs.hex_gui_tray_minimize && prefs.hex_gui_tray &&
|
||||
gtkutil_tray_icon_supported (wid))
|
||||
gtkutil_tray_icon_supported (wid)
|
||||
#ifndef WIN32
|
||||
)
|
||||
#else
|
||||
&& !gtk_window_is_active (wid))
|
||||
#endif
|
||||
{
|
||||
tray_toggle_visibility (TRUE);
|
||||
}
|
||||
@@ -947,7 +952,8 @@ mg_windowstate_cb (GtkWindow *wid, GdkEventWindowState *event, gpointer userdata
|
||||
if (sess && sess->gui && GTK_IS_WIDGET (sess->gui->window))
|
||||
gtk_widget_queue_draw (sess->gui->window);
|
||||
|
||||
menu_set_fullscreen (current_sess->gui, prefs.hex_gui_win_fullscreen);
|
||||
if (current_sess && current_sess->gui)
|
||||
menu_set_fullscreen (current_sess->gui, prefs.hex_gui_win_fullscreen);
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
mg_win32_allow_autohide_taskbar (wid, event);
|
||||
@@ -4727,7 +4733,14 @@ mg_win32_filter (GdkXEvent *xevent, GdkEvent *event, gpointer data)
|
||||
{
|
||||
if (strcmp (command, "__WIN32_TASKBAR_TOGGLE__") == 0)
|
||||
{
|
||||
if (gtk_widget_get_visible (current_sess->gui->window))
|
||||
GdkWindowState state = 0;
|
||||
GdkWindow *gdk_window = gtk_widget_get_window (current_sess->gui->window);
|
||||
|
||||
if (gdk_window)
|
||||
state = gdk_window_get_state (gdk_window);
|
||||
|
||||
if (gtk_widget_get_visible (current_sess->gui->window)
|
||||
&& (state & GDK_WINDOW_STATE_ICONIFIED) == 0)
|
||||
fe_ctrl_gui (current_sess, FE_GUI_ICONIFY, 0);
|
||||
else
|
||||
fe_ctrl_gui (current_sess, FE_GUI_SHOW, 0);
|
||||
@@ -5241,9 +5254,14 @@ static void
|
||||
mg_handle_drop (GtkWidget *widget, int y, int *pos, int *other_pos)
|
||||
{
|
||||
int height;
|
||||
GdkWindow *window;
|
||||
session_gui *gui = current_sess->gui;
|
||||
|
||||
height = gdk_window_get_height (gtk_widget_get_window (widget));
|
||||
window = gtk_widget_get_window (widget);
|
||||
if (!window)
|
||||
return;
|
||||
|
||||
height = gdk_window_get_height (window);
|
||||
|
||||
if (y < height / 2)
|
||||
{
|
||||
@@ -5321,6 +5339,9 @@ mg_drag_begin_cb (GtkWidget *widget, GdkDragContext *context, gpointer userdata)
|
||||
return FALSE;
|
||||
|
||||
window = gtk_widget_get_window (widget);
|
||||
if (!window)
|
||||
return FALSE;
|
||||
|
||||
width = gdk_window_get_width (window);
|
||||
height = gdk_window_get_height (window);
|
||||
|
||||
@@ -5398,11 +5419,16 @@ mg_drag_motion_cb (GtkWidget *widget, GdkDragContext *context, int x, int y, gui
|
||||
width = allocation.width;
|
||||
height = allocation.height;
|
||||
window = gtk_widget_get_window (widget);
|
||||
if (!window)
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
ox = oy = 0;
|
||||
window = gtk_widget_get_window (widget);
|
||||
if (!window)
|
||||
return FALSE;
|
||||
|
||||
width = gdk_window_get_width (window);
|
||||
height = gdk_window_get_height (window);
|
||||
}
|
||||
|
||||
@@ -2309,7 +2309,7 @@ menu_reorder (GtkMenu *menu, GtkWidget *item, int pos)
|
||||
if (pos < 0) /* position offset from end/bottom */
|
||||
{
|
||||
GList *children = gtk_container_get_children (GTK_CONTAINER (menu));
|
||||
int length = g_list_length (children);
|
||||
gint length = (gint) g_list_length (children);
|
||||
|
||||
g_list_free (children);
|
||||
gtk_menu_reorder_child (menu, item, (length + pos) - 1);
|
||||
@@ -2381,7 +2381,7 @@ menu_add_sub (GtkWidget *menu, menu_entry *me)
|
||||
if (pos < 0) /* position offset from end/bottom */
|
||||
{
|
||||
GList *children = gtk_container_get_children (GTK_CONTAINER (menu));
|
||||
int length = g_list_length (children);
|
||||
gint length = (gint) g_list_length (children);
|
||||
|
||||
g_list_free (children);
|
||||
pos = length + pos;
|
||||
|
||||
@@ -56,7 +56,7 @@ notification_backend_show (const char *title, const char *text)
|
||||
g_variant_builder_init (¶ms, G_VARIANT_TYPE ("(susssasa{sv}i)"));
|
||||
g_variant_builder_add (¶ms, "s", "zoitechat"); /* App name */
|
||||
g_variant_builder_add (¶ms, "u", 0); /* ID, 0 means don't replace */
|
||||
g_variant_builder_add (¶ms, "s", "net.zoite.Zoitechat"); /* App icon */
|
||||
g_variant_builder_add (¶ms, "s", "org.zoitechat.ZoiteChat"); /* App icon */
|
||||
g_variant_builder_add (¶ms, "s", title);
|
||||
g_variant_builder_add (¶ms, "s", text);
|
||||
g_variant_builder_add (¶ms, "as", NULL); /* Actions */
|
||||
@@ -65,7 +65,7 @@ notification_backend_show (const char *title, const char *text)
|
||||
g_variant_builder_open (¶ms, G_VARIANT_TYPE ("a{sv}"));
|
||||
g_variant_builder_open (¶ms, G_VARIANT_TYPE ("{sv}"));
|
||||
g_variant_builder_add (¶ms, "s", "desktop-entry");
|
||||
g_variant_builder_add (¶ms, "v", g_variant_new_string ("net.zoite.Zoitechat"));
|
||||
g_variant_builder_add (¶ms, "v", g_variant_new_string ("org.zoitechat.ZoiteChat"));
|
||||
g_variant_builder_close (¶ms);
|
||||
g_variant_builder_close (¶ms);
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ typedef GIcon *TrayIcon;
|
||||
typedef GIcon *TrayCustomIcon;
|
||||
#define tray_icon_free(i) g_object_unref(i)
|
||||
|
||||
#define ICON_NORMAL_NAME "net.zoite.Zoitechat"
|
||||
#define ICON_NORMAL_NAME "org.zoitechat.ZoiteChat"
|
||||
#define ICON_MSG_NAME "mail-unread"
|
||||
#define ICON_HILIGHT_NAME "dialog-warning"
|
||||
#define ICON_FILE_NAME "folder-download"
|
||||
@@ -920,7 +920,10 @@ tray_menu_notify_cb (GObject *tray, GParamSpec *pspec, gpointer user_data)
|
||||
{
|
||||
if (!tray_backend_is_embedded ())
|
||||
{
|
||||
tray_restore_timer = g_timeout_add(500, (GSourceFunc)tray_menu_try_restore, NULL);
|
||||
if (!tray_restore_timer)
|
||||
{
|
||||
tray_restore_timer = g_timeout_add (500, (GSourceFunc) tray_menu_try_restore, NULL);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -936,9 +939,10 @@ tray_menu_notify_cb (GObject *tray, GParamSpec *pspec, gpointer user_data)
|
||||
static gboolean
|
||||
tray_menu_try_restore (void)
|
||||
{
|
||||
tray_cleanup();
|
||||
tray_init();
|
||||
return TRUE;
|
||||
tray_restore_timer = 0;
|
||||
tray_cleanup ();
|
||||
tray_init ();
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@@ -1364,7 +1364,7 @@ setup_entry_cb (GtkEntry *entry, setting *set)
|
||||
int size;
|
||||
int pos;
|
||||
unsigned char *p = (unsigned char*)gtk_entry_get_text (entry);
|
||||
int len = strlen (p);
|
||||
size_t len = strlen ((const char *) p);
|
||||
|
||||
/* need to truncate? */
|
||||
if (len >= set->extra)
|
||||
@@ -2180,7 +2180,7 @@ unslash (char *dir)
|
||||
{
|
||||
if (dir[0])
|
||||
{
|
||||
int len = strlen (dir) - 1;
|
||||
size_t len = strlen (dir) - 1;
|
||||
#ifdef WIN32
|
||||
if (dir[len] == '/' || dir[len] == '\\')
|
||||
#else
|
||||
|
||||
@@ -313,7 +313,8 @@ fe_print_text (struct session *sess, char *text, time_t stamp,
|
||||
gboolean no_activity)
|
||||
{
|
||||
int dotime = FALSE;
|
||||
int comma, k, i = 0, j = 0, len = strlen (text);
|
||||
int comma, k, i = 0, j = 0;
|
||||
size_t len = strlen (text);
|
||||
|
||||
unsigned char *newtext = g_malloc (len + 1024);
|
||||
|
||||
|
||||
@@ -26,12 +26,19 @@
|
||||
#include <windows.h>
|
||||
|
||||
#include <cstdlib>
|
||||
#include <climits>
|
||||
|
||||
#include "typedef.h" // for ssize_t
|
||||
#include <enchant-provider.h>
|
||||
|
||||
ENCHANT_PLUGIN_DECLARE ("win8")
|
||||
|
||||
static int
|
||||
size_to_int (size_t value)
|
||||
{
|
||||
return value > static_cast<size_t>(INT_MAX) ? INT_MAX : static_cast<int>(value);
|
||||
}
|
||||
|
||||
static char *
|
||||
utf16_to_utf8 (const wchar_t * const str, bool from_bcp47)
|
||||
{
|
||||
@@ -136,7 +143,7 @@ static void
|
||||
win8_dict_add_to_personal (EnchantDict *dict, const char *const word, size_t len)
|
||||
{
|
||||
auto checker = static_cast<ISpellChecker*>(dict->user_data);
|
||||
wchar_t *wword = utf8_to_utf16 (word, static_cast<int>(len), false);
|
||||
wchar_t *wword = utf8_to_utf16 (word, size_to_int (len), false);
|
||||
|
||||
checker->Add (wword);
|
||||
std::free (wword);
|
||||
@@ -146,7 +153,7 @@ static void
|
||||
win8_dict_add_to_session (EnchantDict *dict, const char *const word, size_t len)
|
||||
{
|
||||
auto checker = static_cast<ISpellChecker*>(dict->user_data);
|
||||
wchar_t *wword = utf8_to_utf16 (word, static_cast<int>(len), false);
|
||||
wchar_t *wword = utf8_to_utf16 (word, size_to_int (len), false);
|
||||
|
||||
checker->Ignore (wword);
|
||||
std::free (wword);
|
||||
@@ -156,7 +163,7 @@ static int
|
||||
win8_dict_check (EnchantDict *dict, const char *const word, size_t len)
|
||||
{
|
||||
auto checker = static_cast<ISpellChecker*>(dict->user_data);
|
||||
wchar_t *wword = utf8_to_utf16 (word, static_cast<int>(len), false);
|
||||
wchar_t *wword = utf8_to_utf16 (word, size_to_int (len), false);
|
||||
IEnumSpellingError *errors;
|
||||
ISpellingError *error = nullptr;
|
||||
HRESULT hr;
|
||||
@@ -184,7 +191,7 @@ static char **
|
||||
win8_dict_suggest (EnchantDict *dict, const char *const word, size_t len, size_t *out_n_suggs)
|
||||
{
|
||||
auto checker = static_cast<ISpellChecker*>(dict->user_data);
|
||||
wchar_t *wword = utf8_to_utf16 (word, static_cast<int>(len), false);
|
||||
wchar_t *wword = utf8_to_utf16 (word, size_to_int (len), false);
|
||||
IEnumString *suggestions;
|
||||
HRESULT hr;
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@ PrivilegesRequired=none
|
||||
ShowComponentSizes=no
|
||||
CreateUninstallRegKey=not IsTaskSelected('portable')
|
||||
Uninstallable=not IsTaskSelected('portable')
|
||||
ArchitecturesAllowed=x64
|
||||
ArchitecturesInstallIn64BitMode=x64
|
||||
ArchitecturesAllowed=x64compatible
|
||||
ArchitecturesInstallIn64BitMode=x64compatible
|
||||
MinVersion=6.1
|
||||
WizardImageFile={#PROJECTDIR}wizardimage.bmp
|
||||
WizardSmallImageFile={#PROJECTDIR}wizardsmallimage.bmp
|
||||
|
||||
@@ -1 +1 @@
|
||||
2.18.0
|
||||
2.18.1
|
||||
|
||||
Reference in New Issue
Block a user