mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 16:00:18 +00:00
Compare commits
210 Commits
macosbuild
...
gtk3-themi
| Author | SHA1 | Date | |
|---|---|---|---|
| 69985913b8 | |||
| df45cc996d | |||
| 5763653672 | |||
| 2ece544792 | |||
| 8e0958fd19 | |||
| 324aeab8c9 | |||
| e8dbe06f01 | |||
| f3213c56eb | |||
| 9ef607f44a | |||
| a93bed2c41 | |||
| d10c9654fa | |||
| a823047104 | |||
| bf349a27b1 | |||
| 90ada474a0 | |||
| 4a996c9135 | |||
| c9682d98f3 | |||
| 8a4ecf8649 | |||
| 252f4a3c07 | |||
| d21a5c1b60 | |||
| a1ba30865a | |||
| 607faa80ca | |||
| 1c1110847c | |||
| a796f78884 | |||
| 4354aaa57a | |||
| 4aeb5b5697 | |||
| 30609ba6db | |||
| 6b8e41b4c6 | |||
| 0edab77fac | |||
| c8ae4f3b18 | |||
| 578a417804 | |||
| 440e9ecf5a | |||
| ac2ab1443c | |||
| ce5128e4fb | |||
| c37faa1492 | |||
| 685989fa25 | |||
| cbc474477b | |||
| 51f8795d1a | |||
| faacd95dfc | |||
| ed02b21228 | |||
| d321717da8 | |||
| 6310ab245c | |||
| 5952006662 | |||
| e4cb453915 | |||
| 361e35de7f | |||
| bbde2e5578 | |||
| 97c6f36b20 | |||
|
|
2bf32fc770 | ||
| 3e095c3c33 | |||
| 3445d946bc | |||
| 7578928199 | |||
|
|
428127ef40 | ||
| e3f932aa6b | |||
| 7cfa3b3513 | |||
| 81c691491c | |||
| c361602b1a | |||
| 99b969067e | |||
| 6e8b750c68 | |||
| df37b44cc8 | |||
| 9548be0cec | |||
|
|
588e27b456 | ||
|
|
7032d0c6b7 | ||
|
|
72e9a99315 | ||
| 3cff6742f5 | |||
| 6a02f578b6 | |||
| e62769b361 | |||
| 9df9776238 | |||
| 4beabb6bf5 | |||
| 10d5bb91ab | |||
| 7c9c615aed | |||
| fd48c97209 | |||
| e58bf2be22 | |||
| dc6453e230 | |||
| b3a0288fd9 | |||
| 9c86f18982 | |||
| 1bf0140652 | |||
| bb72f8afab | |||
| bb11c4676b | |||
| 32fe3e54f1 | |||
| 9d2187ca4d | |||
| 0e94432c24 | |||
| c4890d157a | |||
| ef2befa698 | |||
| 5f9ce549f8 | |||
| cb435f0d15 | |||
| 105e259f2c | |||
| 51bf0c3fe0 | |||
| e6311a5fe7 | |||
| 2c90c14d72 | |||
| 6c9aeac36f | |||
| 48f7693eac | |||
| 71d3ba576f | |||
| 067670bd01 | |||
| 610d6fa1c0 | |||
| 5d6fa503c9 | |||
| 375e747014 | |||
| 5cab7be8a9 | |||
| 4808d83b26 | |||
| c4951a06f3 | |||
| bd418160e1 | |||
| 90a3d6d839 | |||
|
|
e2511e8be1 | ||
|
|
33e1403b98 | ||
|
|
596a134ef3 | ||
|
|
1ae7e50c88 | ||
|
|
922595d68c | ||
| 618aecd349 | |||
| 3ed66f9945 | |||
| 4284cb76c1 | |||
| b7693e75ec | |||
| c15b352c4b | |||
|
|
cf8aeba53e | ||
|
|
ff75d73b92 | ||
|
|
d7986d603f | ||
|
|
672fe041cc | ||
| 91485465c9 | |||
| 1c39d7b9ad | |||
|
|
54105f3816 | ||
|
|
69b007f849 | ||
|
|
118ac25059 | ||
| 9ee8a53b9c | |||
|
|
e407ef6c47 | ||
| 0935799f7d | |||
|
|
fac15811c2 | ||
|
|
d89f632850 | ||
| b7804fd7eb | |||
| 95e40bbe5e | |||
| 3a680cf6b4 | |||
| 314dfbbd75 | |||
|
|
aed21ffcae | ||
| a79d34bcc0 | |||
| eebe11b95b | |||
| 42993c8c9b | |||
|
|
2598f3732c | ||
|
|
5204a6b672 | ||
|
|
155a20115c | ||
| ab0e84257a | |||
| b2fd66e4c4 | |||
| 66d0549938 | |||
| 498497171b | |||
| b731d3fb18 | |||
|
|
0081d5c492 | ||
|
|
ccdc9d4992 | ||
| 45105590fe | |||
| 149863fdca | |||
| be7b5e62be | |||
| 1b66b136dc | |||
| 4b188192f8 | |||
| 743bf334d4 | |||
| 1c5bf9d6b1 | |||
| 8b344e8bfe | |||
| 44019bcab2 | |||
| 52f547ae13 | |||
|
|
c7311009dc | ||
| 1b1855b14e | |||
| 6c699ac07b | |||
| d379bb138c | |||
| 76796f5f23 | |||
| 796c572292 | |||
| 931dddcf0e | |||
| 2713270e1f | |||
| 2705d21f6e | |||
| 6b6869e327 | |||
| 97fc9c7061 | |||
| c928568a92 | |||
|
|
78fe710b97 | ||
|
|
2ed22b3081 | ||
|
|
3ad30c4775 | ||
|
|
fe5033ea6d | ||
|
|
b6ec7d2981 | ||
| 42de1c8e60 | |||
| 5dcd4151db | |||
| 275e5504f8 | |||
|
|
f53e2a21ba | ||
|
|
e58d128c73 | ||
| 4b919721b1 | |||
| 391c4c1a24 | |||
| acb8d2f539 | |||
| a459d0a086 | |||
|
|
e3fb5b27f5 | ||
|
|
60ade26bda | ||
|
|
6cbbcf06b0 | ||
|
|
58394d555e | ||
|
|
7e8a830fda | ||
|
|
19a19b4237 | ||
| fcaedd41ce | |||
|
|
e4e5689bc5 | ||
|
|
5080c3b1d2 | ||
|
|
3d450a3b33 | ||
|
|
faf55e0d06 | ||
| ee40f3842b | |||
|
|
cc9b1e249a | ||
| 3c2b0a8986 | |||
| 724211362b | |||
| e4b8c641b1 | |||
|
|
3f0b936694 | ||
| 3ef7768696 | |||
| e2cb540ee9 | |||
| bcd2b15ee4 | |||
| f66a68b3fd | |||
| e060d57bae | |||
| 0796b96908 | |||
| 184bfd2f69 | |||
| e3f624d2bb | |||
| e2db0ec3e5 | |||
| 7b0d574752 | |||
| 9e42c0dcc4 | |||
| a8f68e22dd | |||
| 5d5219566f | |||
| 5e4f408235 | |||
| 3d6b2485d1 |
86
.github/workflows/appimage-build.yml
vendored
86
.github/workflows/appimage-build.yml
vendored
@@ -8,7 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
appimage_build:
|
||||
runs-on: ubuntu-24.04
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
libxkbcommon0 \
|
||||
libgtk-3-bin libglib2.0-bin shared-mime-info gsettings-desktop-schemas \
|
||||
libluajit-5.1-dev libpci-dev libperl-dev libssl-dev libayatana-appindicator3-dev \
|
||||
python3-dev python3-cffi mono-devel desktop-file-utils \
|
||||
perl python3 python3-minimal python3-dev python3-cffi mono-devel desktop-file-utils \
|
||||
patchelf file curl
|
||||
|
||||
- name: Configure
|
||||
@@ -43,11 +43,11 @@ jobs:
|
||||
rm -rf build
|
||||
meson setup build \
|
||||
--prefix=/usr \
|
||||
-Dgtk3=true \
|
||||
-Dtext-frontend=true \
|
||||
-Dwith-perl=perl \
|
||||
-Dwith-python=python3 \
|
||||
-Dauto_features=enabled
|
||||
-Dauto_features=enabled \
|
||||
-Dappindicator=enabled
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
@@ -60,6 +60,60 @@ jobs:
|
||||
rm -rf AppDir
|
||||
DESTDIR="${PWD}/AppDir" ninja -C build install
|
||||
|
||||
- name: Bundle scripting runtimes in AppDir
|
||||
run: |
|
||||
set -eux
|
||||
|
||||
python3_version="$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"
|
||||
|
||||
install -Dm755 "$(command -v python3)" "AppDir/usr/bin/python3"
|
||||
if [ -x "/usr/bin/perl" ]; then
|
||||
install -Dm755 /usr/bin/perl AppDir/usr/bin/perl
|
||||
fi
|
||||
|
||||
install -d AppDir/usr/lib
|
||||
cp -a "/usr/lib/python${python3_version}" "AppDir/usr/lib/"
|
||||
|
||||
if [ -d "/usr/lib/python3/dist-packages" ]; then
|
||||
install -d AppDir/usr/lib/python3
|
||||
cp -a /usr/lib/python3/dist-packages AppDir/usr/lib/python3/
|
||||
fi
|
||||
|
||||
if [ -d "/usr/lib/x86_64-linux-gnu/python3/dist-packages" ]; then
|
||||
install -d AppDir/usr/lib/x86_64-linux-gnu/python3
|
||||
cp -a /usr/lib/x86_64-linux-gnu/python3/dist-packages AppDir/usr/lib/x86_64-linux-gnu/python3/
|
||||
fi
|
||||
|
||||
if [ -d "/usr/lib/x86_64-linux-gnu/perl" ]; then
|
||||
install -d AppDir/usr/lib/x86_64-linux-gnu
|
||||
cp -a /usr/lib/x86_64-linux-gnu/perl AppDir/usr/lib/x86_64-linux-gnu/
|
||||
fi
|
||||
|
||||
if [ -d "/usr/share/perl" ]; then
|
||||
install -d AppDir/usr/share
|
||||
cp -a /usr/share/perl AppDir/usr/share/
|
||||
fi
|
||||
|
||||
if [ -d "/usr/share/perl5" ]; then
|
||||
install -d AppDir/usr/share
|
||||
cp -a /usr/share/perl5 AppDir/usr/share/
|
||||
fi
|
||||
if compgen -G '/usr/lib/x86_64-linux-gnu/libpython3*.so*' > /dev/null; then
|
||||
install -d AppDir/usr/lib/x86_64-linux-gnu
|
||||
cp -a /usr/lib/x86_64-linux-gnu/libpython3*.so* AppDir/usr/lib/x86_64-linux-gnu/
|
||||
fi
|
||||
|
||||
- name: Verify bundled plugins
|
||||
run: |
|
||||
set -eux
|
||||
|
||||
# Include every built-in plugin except the Windows-only update plugin.
|
||||
find AppDir/usr/lib -maxdepth 4 -type f -name '*.so' -path '*/zoitechat/plugins/*' -print | sort
|
||||
|
||||
for plugin in checksum fishlim lua perl python sysinfo; do
|
||||
find "AppDir/usr/lib" -maxdepth 4 -type f -name "${plugin}.so" -path '*/zoitechat/plugins/*' -print -quit | grep -q .
|
||||
done
|
||||
|
||||
- name: Build AppImage
|
||||
env:
|
||||
APPIMAGE_EXTRACT_AND_RUN: 1
|
||||
@@ -86,10 +140,16 @@ jobs:
|
||||
|
||||
APPDIR="${APPDIR:-$(dirname "$(readlink -f "$0")")}"
|
||||
|
||||
export PATH="$APPDIR/usr/bin:${PATH:-/usr/bin:/bin}"
|
||||
export PATH="${PATH:-/usr/bin:/bin}:$APPDIR/usr/bin"
|
||||
export LD_LIBRARY_PATH="$APPDIR/usr/lib:$APPDIR/usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH:-}"
|
||||
export XDG_DATA_DIRS="$APPDIR/usr/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
|
||||
|
||||
if [ -d "$APPDIR/usr/lib/x86_64-linux-gnu/zoitechat/plugins" ]; then
|
||||
export ZOITECHAT_LIBDIR="$APPDIR/usr/lib/x86_64-linux-gnu/zoitechat/plugins"
|
||||
elif [ -d "$APPDIR/usr/lib/zoitechat/plugins" ]; then
|
||||
export ZOITECHAT_LIBDIR="$APPDIR/usr/lib/zoitechat/plugins"
|
||||
fi
|
||||
|
||||
if [ -d "$APPDIR/usr/share/glib-2.0/schemas" ]; then
|
||||
export GSETTINGS_SCHEMA_DIR="$APPDIR/usr/share/glib-2.0/schemas${GSETTINGS_SCHEMA_DIR:+:$GSETTINGS_SCHEMA_DIR}"
|
||||
fi
|
||||
@@ -100,6 +160,22 @@ jobs:
|
||||
export GIO_EXTRA_MODULES="$APPDIR/usr/lib/gio/modules${GIO_EXTRA_MODULES:+:$GIO_EXTRA_MODULES}"
|
||||
fi
|
||||
|
||||
export PYTHONHOME="$APPDIR/usr"
|
||||
python_stdlib_dir="$(find "$APPDIR/usr/lib" -maxdepth 1 -type d -name 'python3.*' | head -n 1 || true)"
|
||||
pythonpath_entries=""
|
||||
if [ -n "$python_stdlib_dir" ] && [ -d "$python_stdlib_dir/dist-packages" ]; then
|
||||
pythonpath_entries="$python_stdlib_dir/dist-packages"
|
||||
fi
|
||||
if [ -d "$APPDIR/usr/lib/python3/dist-packages" ]; then
|
||||
pythonpath_entries="${pythonpath_entries:+$pythonpath_entries:}$APPDIR/usr/lib/python3/dist-packages"
|
||||
fi
|
||||
if [ -d "$APPDIR/usr/lib/x86_64-linux-gnu/python3/dist-packages" ]; then
|
||||
pythonpath_entries="${pythonpath_entries:+$pythonpath_entries:}$APPDIR/usr/lib/x86_64-linux-gnu/python3/dist-packages"
|
||||
fi
|
||||
if [ -n "$pythonpath_entries" ]; then
|
||||
export PYTHONPATH="$pythonpath_entries${PYTHONPATH:+:$PYTHONPATH}"
|
||||
fi
|
||||
|
||||
# OpenSSL trust store override
|
||||
export SSL_CERT_FILE="${SSL_CERT_FILE:-$APPDIR/etc/ssl/certs/ca-certificates.crt}"
|
||||
export SSL_CERT_DIR="${SSL_CERT_DIR:-$APPDIR/etc/ssl/certs}"
|
||||
|
||||
48
.github/workflows/debian-build.yml
vendored
48
.github/workflows/debian-build.yml
vendored
@@ -1,48 +0,0 @@
|
||||
name: Debian Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
debian_build:
|
||||
runs-on: ubuntu-24.04
|
||||
container:
|
||||
image: debian:bookworm
|
||||
|
||||
steps:
|
||||
- name: Install packaging tooling and build dependencies
|
||||
run: |
|
||||
set -eux
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends \
|
||||
git ca-certificates \
|
||||
build-essential dpkg-dev debhelper fakeroot \
|
||||
pkg-config meson ninja-build \
|
||||
gettext iso-codes \
|
||||
libcanberra-dev libdbus-glib-1-dev libglib2.0-dev libgtk-3-dev libayatana-appindicator3-dev \
|
||||
liblua5.3-dev libpci-dev libperl-dev libssl-dev \
|
||||
python3-dev python3-cffi desktop-file-utils
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Build Debian packages
|
||||
run: |
|
||||
set -eux
|
||||
dpkg-buildpackage -us -uc -b
|
||||
|
||||
- name: Collect Debian artifacts
|
||||
run: |
|
||||
set -eux
|
||||
mkdir -p artifacts
|
||||
cp -v ../*.deb ../*.changes ../*.buildinfo artifacts/
|
||||
|
||||
- name: Upload Debian artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zoitechat-debian-packages
|
||||
path: artifacts/*
|
||||
3
.github/workflows/flatpak-build.yml
vendored
3
.github/workflows/flatpak-build.yml
vendored
@@ -31,7 +31,8 @@ jobs:
|
||||
with:
|
||||
bundle: zoitechat.flatpak
|
||||
manifest-path: flatpak/net.zoite.Zoitechat.json
|
||||
cache-key: flatpak-builder-${{ github.sha }}
|
||||
cache: false
|
||||
restore-cache: false
|
||||
|
||||
- name: Upload Flatpak Bundle
|
||||
id: upload_flatpak
|
||||
|
||||
359
.github/workflows/macos-build.yml
vendored
359
.github/workflows/macos-build.yml
vendored
@@ -1,359 +0,0 @@
|
||||
name: macOS Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
macos_build_arm64:
|
||||
runs-on: macos-15-arm64
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
set -eux
|
||||
brew update
|
||||
brew install \
|
||||
meson ninja pkg-config gettext perl \
|
||||
gtk+3 gdk-pixbuf pango adwaita-icon-theme \
|
||||
hicolor-icon-theme glib dbus \
|
||||
enchant gtk-mac-integration
|
||||
|
||||
if ! command -v gtk-mac-bundler >/dev/null 2>&1 && ! python3 -c 'import gtk_mac_bundler' >/dev/null 2>&1; then
|
||||
curl -fsSL https://codeload.github.com/jralls/gtk-mac-bundler/tar.gz/refs/heads/master -o /tmp/gtk-mac-bundler.tar.gz
|
||||
rm -rf /tmp/gtk-mac-bundler
|
||||
mkdir -p /tmp/gtk-mac-bundler
|
||||
tar -xzf /tmp/gtk-mac-bundler.tar.gz -C /tmp/gtk-mac-bundler --strip-components=1
|
||||
(cd /tmp/gtk-mac-bundler && make install)
|
||||
fi
|
||||
|
||||
- name: Configure and build (arm64)
|
||||
run: |
|
||||
set -eux
|
||||
rm -rf build-macos-arm64 stage/arm64
|
||||
|
||||
CFLAGS="-arch arm64" LDFLAGS="-arch arm64" meson setup build-macos-arm64 \
|
||||
--prefix="$PWD/stage/arm64" \
|
||||
-Dgtk3=true \
|
||||
-Dtext-frontend=true \
|
||||
-Dlibcanberra=disabled \
|
||||
-Dwith-perl=perl \
|
||||
-Dwith-python=python3 \
|
||||
-Dauto_features=enabled
|
||||
|
||||
CFLAGS="-arch arm64" LDFLAGS="-arch arm64" meson compile -C build-macos-arm64
|
||||
meson install -C build-macos-arm64
|
||||
|
||||
- name: Stage runtime dependencies for bundling (arm64)
|
||||
run: |
|
||||
set -eux
|
||||
STAGE_PREFIX="$PWD/stage/arm64"
|
||||
BREW_PREFIX="$(brew --prefix)"
|
||||
ENCHANT_PREFIX="$(brew --prefix enchant)"
|
||||
|
||||
mkdir -p "$STAGE_PREFIX/lib" "$STAGE_PREFIX/share"
|
||||
rsync -a "$BREW_PREFIX/lib/gtk-3.0" "$STAGE_PREFIX/lib/"
|
||||
rsync -a "$BREW_PREFIX/lib/gdk-pixbuf-2.0" "$STAGE_PREFIX/lib/"
|
||||
rsync -a "$BREW_PREFIX/share/locale/" "$STAGE_PREFIX/share/locale/"
|
||||
|
||||
mkdir -p "$STAGE_PREFIX/opt"
|
||||
rm -rf "$STAGE_PREFIX/opt/enchant"
|
||||
rsync -aL "$ENCHANT_PREFIX/" "$STAGE_PREFIX/opt/enchant/"
|
||||
|
||||
- name: Package unsigned .app (arm64)
|
||||
run: |
|
||||
set -eux
|
||||
VERSION="$(git describe --tags --always)"
|
||||
export VERSION
|
||||
|
||||
(
|
||||
cd osx
|
||||
BUNDLE_PREFIX="$PWD/../stage/arm64/" \
|
||||
ENCHANT_PREFIX="$PWD/../stage/arm64/opt/enchant" \
|
||||
TARGET_ARCHES="arm64" \
|
||||
./makebundle.sh
|
||||
)
|
||||
|
||||
mv osx/ZoiteChat-*.app.zip ./ZoiteChat-arm64.app.zip
|
||||
|
||||
- name: Upload arm64 macOS app artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zoitechat-macos-arm64
|
||||
path: ZoiteChat-arm64.app.zip
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
|
||||
macos_build_x86_64:
|
||||
runs-on: macos-15-intel
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
set -eux
|
||||
brew update
|
||||
brew install \
|
||||
meson ninja pkg-config gettext perl \
|
||||
gtk+3 gdk-pixbuf pango adwaita-icon-theme \
|
||||
hicolor-icon-theme glib dbus \
|
||||
enchant gtk-mac-integration
|
||||
|
||||
if ! command -v gtk-mac-bundler >/dev/null 2>&1 && ! python3 -c 'import gtk_mac_bundler' >/dev/null 2>&1; then
|
||||
curl -fsSL https://codeload.github.com/jralls/gtk-mac-bundler/tar.gz/refs/heads/master -o /tmp/gtk-mac-bundler.tar.gz
|
||||
rm -rf /tmp/gtk-mac-bundler
|
||||
mkdir -p /tmp/gtk-mac-bundler
|
||||
tar -xzf /tmp/gtk-mac-bundler.tar.gz -C /tmp/gtk-mac-bundler --strip-components=1
|
||||
(cd /tmp/gtk-mac-bundler && make install)
|
||||
fi
|
||||
|
||||
- name: Configure and build (x86_64)
|
||||
run: |
|
||||
set -eux
|
||||
rm -rf build-macos-x86_64 stage/x86_64
|
||||
|
||||
CFLAGS="-arch x86_64" LDFLAGS="-arch x86_64" meson setup build-macos-x86_64 \
|
||||
--prefix="$PWD/stage/x86_64" \
|
||||
-Dgtk3=true \
|
||||
-Dtext-frontend=true \
|
||||
-Dlibcanberra=disabled \
|
||||
-Ddarwin-arch-sanity-check=true \
|
||||
-Dwith-perl=perl \
|
||||
-Dwith-python=python3 \
|
||||
-Dauto_features=enabled
|
||||
|
||||
CFLAGS="-arch x86_64" LDFLAGS="-arch x86_64" meson compile -C build-macos-x86_64
|
||||
meson install -C build-macos-x86_64
|
||||
|
||||
|
||||
- name: Stage runtime dependencies for bundling (x86_64)
|
||||
run: |
|
||||
set -eux
|
||||
STAGE_PREFIX="$PWD/stage/x86_64"
|
||||
BREW_PREFIX="$(brew --prefix)"
|
||||
ENCHANT_PREFIX="$(brew --prefix enchant)"
|
||||
|
||||
mkdir -p "$STAGE_PREFIX/lib" "$STAGE_PREFIX/share"
|
||||
rsync -a "$BREW_PREFIX/lib/gtk-3.0" "$STAGE_PREFIX/lib/"
|
||||
rsync -a "$BREW_PREFIX/lib/gdk-pixbuf-2.0" "$STAGE_PREFIX/lib/"
|
||||
rsync -a "$BREW_PREFIX/share/locale/" "$STAGE_PREFIX/share/locale/"
|
||||
|
||||
mkdir -p "$STAGE_PREFIX/opt"
|
||||
rm -rf "$STAGE_PREFIX/opt/enchant"
|
||||
rsync -aL "$ENCHANT_PREFIX/" "$STAGE_PREFIX/opt/enchant/"
|
||||
|
||||
- name: Package unsigned .app (x86_64)
|
||||
run: |
|
||||
set -eux
|
||||
VERSION="$(git describe --tags --always)"
|
||||
export VERSION
|
||||
|
||||
(
|
||||
cd osx
|
||||
BUNDLE_PREFIX="$PWD/../stage/x86_64/" \
|
||||
ENCHANT_PREFIX="$PWD/../stage/x86_64/opt/enchant" \
|
||||
TARGET_ARCHES="x86_64" \
|
||||
./makebundle.sh
|
||||
)
|
||||
|
||||
mv osx/ZoiteChat-*.app.zip ./ZoiteChat-x86_64.app.zip
|
||||
|
||||
- name: Upload x86_64 macOS app artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zoitechat-macos-x86_64
|
||||
path: ZoiteChat-x86_64.app.zip
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
|
||||
macos_assemble_universal_unsigned:
|
||||
needs:
|
||||
- macos_build_arm64
|
||||
- macos_build_x86_64
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- name: Download arm64 app artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: zoitechat-macos-arm64
|
||||
path: dist/arm64
|
||||
|
||||
- name: Download x86_64 app artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: zoitechat-macos-x86_64
|
||||
path: dist/x86_64
|
||||
|
||||
- name: Merge app bundles into universal
|
||||
run: |
|
||||
set -eux
|
||||
unzip -q dist/arm64/ZoiteChat-arm64.app.zip -d dist/arm64
|
||||
unzip -q dist/x86_64/ZoiteChat-x86_64.app.zip -d dist/x86_64
|
||||
|
||||
ARM_APP="$(find dist/arm64 -maxdepth 2 -name 'ZoiteChat.app' -type d | head -n 1)"
|
||||
X86_APP="$(find dist/x86_64 -maxdepth 2 -name 'ZoiteChat.app' -type d | head -n 1)"
|
||||
UNIVERSAL_APP="dist/universal/ZoiteChat.app"
|
||||
|
||||
rm -rf "$UNIVERSAL_APP"
|
||||
mkdir -p dist/universal
|
||||
cp -a "$ARM_APP" "$UNIVERSAL_APP"
|
||||
|
||||
while IFS= read -r relpath; do
|
||||
arm_file="$ARM_APP/$relpath"
|
||||
x86_file="$X86_APP/$relpath"
|
||||
out_file="$UNIVERSAL_APP/$relpath"
|
||||
|
||||
if [ -f "$x86_file" ] && file -b "$arm_file" | grep -q 'Mach-O'; then
|
||||
mkdir -p "$(dirname "$out_file")"
|
||||
lipo -create "$arm_file" "$x86_file" -output "$out_file"
|
||||
fi
|
||||
done < <(cd "$ARM_APP" && find . -type f | sed 's|^./||')
|
||||
|
||||
while IFS= read -r macho_path; do
|
||||
archs="$(lipo -archs "$macho_path")"
|
||||
echo "$macho_path -> $archs"
|
||||
echo " $archs " | grep -q ' arm64 '
|
||||
echo " $archs " | grep -q ' x86_64 '
|
||||
done < <(find "$UNIVERSAL_APP" -type f -exec sh -c 'file -b "$1" | grep -q "Mach-O" && printf "%s\n" "$1"' _ {} \;)
|
||||
|
||||
VERSION="$(git -C "$GITHUB_WORKSPACE" describe --tags --always)"
|
||||
ditto -c -k --sequesterRsrc --keepParent "$UNIVERSAL_APP" "dist/ZoiteChat-$VERSION.app.zip"
|
||||
- name: Upload unsigned macOS app artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zoitechat-macos-unsigned
|
||||
|
||||
path: dist/ZoiteChat-*.app.zip
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
|
||||
macos_release_signed:
|
||||
needs: macos_assemble_universal_unsigned
|
||||
runs-on: macos-latest
|
||||
if: >-
|
||||
github.event_name == 'push' &&
|
||||
github.ref == 'refs/heads/master'
|
||||
|
||||
steps:
|
||||
- name: Check signing secrets availability
|
||||
id: signing_secrets
|
||||
env:
|
||||
APPLE_DEVELOPER_ID_APPLICATION: ${{ secrets.APPLE_DEVELOPER_ID_APPLICATION }}
|
||||
APPLE_DEVELOPER_ID_CERT_P12: ${{ secrets.APPLE_DEVELOPER_ID_CERT_P12 }}
|
||||
APPLE_DEVELOPER_ID_CERT_P12_PASSWORD: ${{ secrets.APPLE_DEVELOPER_ID_CERT_P12_PASSWORD }}
|
||||
APPLE_NOTARY_API_KEY: ${{ secrets.APPLE_NOTARY_API_KEY }}
|
||||
APPLE_NOTARY_API_KEY_ID: ${{ secrets.APPLE_NOTARY_API_KEY_ID }}
|
||||
APPLE_NOTARY_ISSUER_ID: ${{ secrets.APPLE_NOTARY_ISSUER_ID }}
|
||||
run: |
|
||||
set -eu
|
||||
required_secrets=(
|
||||
APPLE_DEVELOPER_ID_APPLICATION
|
||||
APPLE_DEVELOPER_ID_CERT_P12
|
||||
APPLE_DEVELOPER_ID_CERT_P12_PASSWORD
|
||||
APPLE_NOTARY_API_KEY
|
||||
APPLE_NOTARY_API_KEY_ID
|
||||
APPLE_NOTARY_ISSUER_ID
|
||||
)
|
||||
|
||||
missing=0
|
||||
for key in "${required_secrets[@]}"; do
|
||||
if [ -z "${!key:-}" ]; then
|
||||
echo "Missing secret: $key"
|
||||
missing=1
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$missing" -eq 1 ]; then
|
||||
echo "ready=false" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "ready=true" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Skip signing because required secrets are missing
|
||||
if: steps.signing_secrets.outputs.ready != 'true'
|
||||
run: echo "Signing and notarization skipped due to missing required secrets."
|
||||
|
||||
- name: Download unsigned app artifact
|
||||
if: steps.signing_secrets.outputs.ready == 'true'
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: zoitechat-macos-unsigned
|
||||
path: dist
|
||||
|
||||
- name: Import Developer ID certificate
|
||||
if: steps.signing_secrets.outputs.ready == 'true'
|
||||
env:
|
||||
CERT_P12_BASE64: ${{ secrets.APPLE_DEVELOPER_ID_CERT_P12 }}
|
||||
CERT_PASSWORD: ${{ secrets.APPLE_DEVELOPER_ID_CERT_P12_PASSWORD }}
|
||||
run: |
|
||||
set -eux
|
||||
echo "$CERT_P12_BASE64" | base64 --decode > certificate.p12
|
||||
|
||||
security create-keychain -p "" build.keychain
|
||||
security set-keychain-settings -lut 21600 build.keychain
|
||||
security unlock-keychain -p "" build.keychain
|
||||
security import certificate.p12 -k build.keychain -P "$CERT_PASSWORD" -A -T /usr/bin/codesign
|
||||
security list-keychains -d user -s build.keychain $(security list-keychains -d user | tr -d '"')
|
||||
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
|
||||
|
||||
- name: Codesign app bundle
|
||||
if: steps.signing_secrets.outputs.ready == 'true'
|
||||
env:
|
||||
CODESIGN_IDENTITY: ${{ secrets.APPLE_DEVELOPER_ID_APPLICATION }}
|
||||
run: |
|
||||
set -eux
|
||||
unzip -q dist/ZoiteChat-*.app.zip -d dist
|
||||
APP_PATH="$(find dist -maxdepth 1 -name 'ZoiteChat.app' -type d | head -n 1)"
|
||||
|
||||
codesign --force --deep --options runtime --timestamp \
|
||||
--sign "$CODESIGN_IDENTITY" "$APP_PATH"
|
||||
|
||||
codesign --verify --deep --strict --verbose=2 "$APP_PATH"
|
||||
spctl --assess --type execute --verbose "$APP_PATH"
|
||||
|
||||
- name: Notarize and staple
|
||||
if: steps.signing_secrets.outputs.ready == 'true'
|
||||
env:
|
||||
NOTARY_API_KEY_BASE64: ${{ secrets.APPLE_NOTARY_API_KEY }}
|
||||
NOTARY_KEY_ID: ${{ secrets.APPLE_NOTARY_API_KEY_ID }}
|
||||
NOTARY_ISSUER_ID: ${{ secrets.APPLE_NOTARY_ISSUER_ID }}
|
||||
run: |
|
||||
set -eux
|
||||
APP_PATH="$(find dist -maxdepth 1 -name 'ZoiteChat.app' -type d | head -n 1)"
|
||||
NOTARY_ZIP="dist/ZoiteChat-notarize.zip"
|
||||
SIGNED_ZIP="dist/ZoiteChat-signed.app.zip"
|
||||
|
||||
echo "$NOTARY_API_KEY_BASE64" | base64 --decode > AuthKey_${NOTARY_KEY_ID}.p8
|
||||
ditto -c -k --keepParent "$APP_PATH" "$NOTARY_ZIP"
|
||||
|
||||
xcrun notarytool submit "$NOTARY_ZIP" \
|
||||
--key "AuthKey_${NOTARY_KEY_ID}.p8" \
|
||||
--key-id "$NOTARY_KEY_ID" \
|
||||
--issuer "$NOTARY_ISSUER_ID" \
|
||||
--wait
|
||||
|
||||
xcrun stapler staple "$APP_PATH"
|
||||
xcrun stapler validate "$APP_PATH"
|
||||
|
||||
ditto -c -k --sequesterRsrc --keepParent "$APP_PATH" "$SIGNED_ZIP"
|
||||
|
||||
- name: Upload signed macOS app artifact
|
||||
if: steps.signing_secrets.outputs.ready == 'true'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zoitechat-macos-signed
|
||||
path: dist/ZoiteChat-signed.app.zip
|
||||
if-no-files-found: error
|
||||
retention-days: 30
|
||||
81
.github/workflows/manjaro-package-build.yml
vendored
Normal file
81
.github/workflows/manjaro-package-build.yml
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
name: Manjaro Package Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master, main]
|
||||
pull_request:
|
||||
branches: [master, main]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
manjaro-package:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: manjarolinux/base:latest
|
||||
|
||||
steps:
|
||||
- name: Install packaging toolchain
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
pacman -Syu --noconfirm
|
||||
pacman -S --noconfirm --needed \
|
||||
base-devel \
|
||||
git \
|
||||
namcap \
|
||||
meson \
|
||||
ninja \
|
||||
pkgconf \
|
||||
glib2 \
|
||||
glib2-devel \
|
||||
gtk3 \
|
||||
openssl \
|
||||
dbus-glib \
|
||||
libcanberra \
|
||||
libayatana-appindicator \
|
||||
luajit \
|
||||
iso-codes \
|
||||
lua \
|
||||
perl \
|
||||
python \
|
||||
python-cffi \
|
||||
pciutils
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: true
|
||||
|
||||
- name: Build package and generate .SRCINFO (non-root)
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
id -u builder >/dev/null 2>&1 || useradd -m builder
|
||||
chown -R builder:builder "$GITHUB_WORKSPACE"
|
||||
su builder -c "cd '$GITHUB_WORKSPACE/packaging/manjaro' && makepkg --noconfirm --syncdeps --cleanbuild"
|
||||
su builder -c "cd '$GITHUB_WORKSPACE/packaging/manjaro' && makepkg --printsrcinfo > .SRCINFO"
|
||||
|
||||
- name: Lint PKGBUILD and package with namcap
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
cd "$GITHUB_WORKSPACE/packaging/manjaro"
|
||||
namcap PKGBUILD
|
||||
pkg_file="$(find . -maxdepth 1 -type f -name '*.pkg.tar.*' | head -n1)"
|
||||
namcap "$pkg_file"
|
||||
|
||||
- name: Collect artifacts
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
mkdir -p artifacts
|
||||
cp -v "$GITHUB_WORKSPACE"/packaging/manjaro/*.pkg.tar.* artifacts/
|
||||
cp -v "$GITHUB_WORKSPACE"/packaging/manjaro/PKGBUILD artifacts/
|
||||
cp -v "$GITHUB_WORKSPACE"/packaging/manjaro/.SRCINFO artifacts/
|
||||
|
||||
- name: Upload package artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zoitechat-manjaro-package
|
||||
path: artifacts/*
|
||||
if-no-files-found: error
|
||||
15
.github/workflows/solus-eopkg-build.yml
vendored
15
.github/workflows/solus-eopkg-build.yml
vendored
@@ -10,7 +10,7 @@ on:
|
||||
solus_image:
|
||||
description: "Solus container image"
|
||||
required: false
|
||||
default: "ghcr.io/getsolus/solus:latest"
|
||||
default: "docker.io/silkeh/solus:latest"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
build-eopkg:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SOLUS_IMAGE: ${{ inputs.solus_image || 'ghcr.io/getsolus/solus:latest' }}
|
||||
SOLUS_IMAGE: ${{ inputs.solus_image || 'docker.io/silkeh/solus:latest' }}
|
||||
PACKAGE_YML: ${{ inputs.package_yml || 'packaging/solus/package.yml' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -48,7 +48,11 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker pull "$SOLUS_IMAGE"
|
||||
if ! docker pull "$SOLUS_IMAGE"; then
|
||||
echo "Failed to pull SOLUS_IMAGE=$SOLUS_IMAGE" >&2
|
||||
echo "Set workflow input 'solus_image' to a valid image that provides eopkg/ypkg." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker run --rm \
|
||||
-v "$PWD":/workspace \
|
||||
@@ -58,7 +62,10 @@ jobs:
|
||||
sh -lc '
|
||||
set -euo pipefail
|
||||
eopkg update-repo -y
|
||||
eopkg install -y ypkg git
|
||||
# Keep file-conflict handling on: some base images still carry
|
||||
# openssl-11 leftovers, and Meson tooling is not always preinstalled.
|
||||
eopkg install -y --ignore-file-conflicts \
|
||||
ypkg git meson ninja pkgconf gcc gettext
|
||||
ypkg build "$PACKAGE_YML"
|
||||
mkdir -p /workspace/artifacts
|
||||
find . -maxdepth 3 -name "*.eopkg" -type f -exec cp -v {} /workspace/artifacts/ \;
|
||||
|
||||
2
.github/workflows/windows-build.yml
vendored
2
.github/workflows/windows-build.yml
vendored
@@ -54,11 +54,9 @@ jobs:
|
||||
Invoke-WebRequest https://github.com/zoitechat/gvsbuild/releases/download/zoitechat-2.17.0/perl-5.20.0-${{ matrix.arch }}.7z -OutFile deps\perl-${{ matrix.arch }}.7z
|
||||
& 7z.exe x deps\perl-${{ matrix.arch }}.7z -oC:\gtk-build\perl-5.20\${{ matrix.platform }}
|
||||
|
||||
# Resolve python root from setup-python
|
||||
$pyRoot = $env:pythonLocation
|
||||
if (-not $pyRoot) { $pyRoot = & python -c "import sys; print(sys.prefix)" }
|
||||
|
||||
# Create BOTH paths because the .vcxproj hard-codes python-3.14\...
|
||||
foreach ($pyDir in @("C:\gtk-build\python-3.14.2", "C:\gtk-build\python-3.14")) {
|
||||
New-Item -Path $pyDir -ItemType Directory -Force | Out-Null
|
||||
$target = Join-Path $pyDir "${{ matrix.platform }}"
|
||||
|
||||
1
Makefile
1
Makefile
@@ -14,7 +14,6 @@ CONFIG_STAMP := $(BUILD_DIR)/build.ninja
|
||||
|
||||
all: build
|
||||
|
||||
# Only run initial meson setup if we don't have a configured build dir yet.
|
||||
$(CONFIG_STAMP):
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
@env NINJA=$(NINJA) $(MESON) setup $(BUILD_DIR) --prefix=$(PREFIX) $(MESON_SETUP_ARGS)
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
ZoiteChat ChangeLog
|
||||
=================
|
||||
|
||||
2.18.0~pre2 (2026-02-25)
|
||||
------------------------
|
||||
|
||||
- Added HexChat plugin compatibility improvements.
|
||||
- Fixed the user info right-click menu so it updates properly.
|
||||
- Added support for emoji characters in alert highlights.
|
||||
- clicking links in chat window with appimage build now works.
|
||||
- Removed remaining unused GTK2 code paths.
|
||||
- Continued GTK3 cleanup and packaging alignment work.
|
||||
|
||||
2.18.0-pre1 (2026-02-16)
|
||||
------------------------
|
||||
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
<url type="homepage">https://zoitechat.zoite.net/</url>
|
||||
<project_license>@LICENSE@</project_license>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<update_contact>tingping_AT_fedoraproject.org</update_contact>
|
||||
</component>
|
||||
<update_contact>deepend_AT_zoite.net</update_contact>
|
||||
</component>
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
<id>net.zoite.Zoitechat</id>
|
||||
<name>ZoiteChat</name>
|
||||
<launchable type="desktop-id">net.zoite.Zoitechat.desktop</launchable>
|
||||
<developer_name>ZoiteChat</developer_name>
|
||||
|
||||
<developer id="net.zoite">
|
||||
<name translate="no">ZoiteChat</name>
|
||||
</developer>
|
||||
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>GPL-2.0+</project_license>
|
||||
<translation type="gettext">zoitechat</translation>
|
||||
@@ -12,9 +16,9 @@
|
||||
<p>ZoiteChat is an easy to use yet extensible IRC Client based on Hexchat. It allows you to securely join multiple networks and talk to users privately or in channels using a customizable interface. You can even transfer files.</p>
|
||||
<p>ZoiteChat supports features such as: DCC, SASL, proxies, spellcheck, alerts, logging, custom themes, and Python/Perl scripts.</p>
|
||||
</description>
|
||||
<url type="homepage">http://zoitechat.zoite.net</url>
|
||||
<url type="homepage">https://zoitechat.zoite.net</url>
|
||||
<url type="bugtracker">https://github.com/zoitechat/zoitechat</url>
|
||||
<url type="help">https://zoitechat.zoite.net/docs</url>
|
||||
<url type="help">https://docs.zoitechat.zoite.net/en/latest/</url>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://zoitechat.zoite.net/assets/ZoiteChat.png</image>
|
||||
@@ -25,7 +29,18 @@
|
||||
<id>zoitechat.desktop</id>
|
||||
</provides>
|
||||
<releases>
|
||||
<release date="2026-02-16" version="2.18.0-pre1">
|
||||
<release date="2026-02-25" version="2.18.0~pre2">
|
||||
<description>
|
||||
<p>Compatibility and UI improvements:</p>
|
||||
<ul>
|
||||
<li>Added HexChat plugin compatibility improvements.</li>
|
||||
<li>Fixed the user info right-click menu so it updates properly.</li>
|
||||
<li>Added support for emoji characters in alert highlights.</li>
|
||||
<li>Removed remaining unused GTK2 code paths.</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release date="2026-02-16" version="2.18.0~pre1">
|
||||
<description>
|
||||
<p>Packaging and GTK3 improvements:</p>
|
||||
<ul>
|
||||
@@ -223,5 +238,5 @@
|
||||
<content_rating type="oars-1.1">
|
||||
<content_attribute id="social-chat">intense</content_attribute>
|
||||
</content_rating>
|
||||
<update_contact>tingping_at_fedoraproject.org</update_contact>
|
||||
<update_contact>deepend_at_zoite.net</update_contact>
|
||||
</component>
|
||||
|
||||
@@ -22,61 +22,117 @@
|
||||
<file alias="tree_util.png" preprocess="to-pixdata">icons/tree_util.png</file>
|
||||
|
||||
<file alias="menu/light/new.png" preprocess="to-pixdata">icons/menu/light/new.png</file>
|
||||
<file alias="menu/light/new.svg">icons/menu/light/new.svg</file>
|
||||
<file alias="menu/light/network-list.png" preprocess="to-pixdata">icons/menu/light/network-list.png</file>
|
||||
<file alias="menu/light/network-list.svg">icons/menu/light/network-list.svg</file>
|
||||
<file alias="menu/light/load-plugin.png" preprocess="to-pixdata">icons/menu/light/load-plugin.png</file>
|
||||
<file alias="menu/light/load-plugin.svg">icons/menu/light/load-plugin.svg</file>
|
||||
<file alias="menu/light/detach.png" preprocess="to-pixdata">icons/menu/light/detach.png</file>
|
||||
<file alias="menu/light/detach.svg">icons/menu/light/detach.svg</file>
|
||||
<file alias="menu/light/close.png" preprocess="to-pixdata">icons/menu/light/close.png</file>
|
||||
<file alias="menu/light/close.svg">icons/menu/light/close.svg</file>
|
||||
<file alias="menu/light/quit.png" preprocess="to-pixdata">icons/menu/light/quit.png</file>
|
||||
<file alias="menu/light/quit.svg">icons/menu/light/quit.svg</file>
|
||||
<file alias="menu/light/disconnect.png" preprocess="to-pixdata">icons/menu/light/disconnect.png</file>
|
||||
<file alias="menu/light/disconnect.svg">icons/menu/light/disconnect.svg</file>
|
||||
<file alias="menu/light/connect.png" preprocess="to-pixdata">icons/menu/light/connect.png</file>
|
||||
<file alias="menu/light/connect.svg">icons/menu/light/connect.svg</file>
|
||||
<file alias="menu/light/join.png" preprocess="to-pixdata">icons/menu/light/join.png</file>
|
||||
<file alias="menu/light/join.svg">icons/menu/light/join.svg</file>
|
||||
<file alias="menu/light/chanlist.png" preprocess="to-pixdata">icons/menu/light/chanlist.png</file>
|
||||
<file alias="menu/light/chanlist.svg">icons/menu/light/chanlist.svg</file>
|
||||
<file alias="menu/light/preferences.png" preprocess="to-pixdata">icons/menu/light/preferences.png</file>
|
||||
<file alias="menu/light/preferences.svg">icons/menu/light/preferences.svg</file>
|
||||
<file alias="menu/light/clear.png" preprocess="to-pixdata">icons/menu/light/clear.png</file>
|
||||
<file alias="menu/light/clear.svg">icons/menu/light/clear.svg</file>
|
||||
<file alias="menu/light/copy.png" preprocess="to-pixdata">icons/menu/light/copy.png</file>
|
||||
<file alias="menu/light/copy.svg">icons/menu/light/copy.svg</file>
|
||||
<file alias="menu/light/delete.png" preprocess="to-pixdata">icons/menu/light/delete.png</file>
|
||||
<file alias="menu/light/delete.svg">icons/menu/light/delete.svg</file>
|
||||
<file alias="menu/light/add.png" preprocess="to-pixdata">icons/menu/light/add.png</file>
|
||||
<file alias="menu/light/add.svg">icons/menu/light/add.svg</file>
|
||||
<file alias="menu/light/remove.png" preprocess="to-pixdata">icons/menu/light/remove.png</file>
|
||||
<file alias="menu/light/remove.svg">icons/menu/light/remove.svg</file>
|
||||
<file alias="menu/light/spell-check.png" preprocess="to-pixdata">icons/menu/light/spell-check.png</file>
|
||||
<file alias="menu/light/spell-check.svg">icons/menu/light/spell-check.svg</file>
|
||||
<file alias="menu/light/save.png" preprocess="to-pixdata">icons/menu/light/save.png</file>
|
||||
<file alias="menu/light/save.svg">icons/menu/light/save.svg</file>
|
||||
<file alias="menu/light/save-as.png" preprocess="to-pixdata">icons/menu/light/save-as.png</file>
|
||||
<file alias="menu/light/save-as.svg">icons/menu/light/save-as.svg</file>
|
||||
<file alias="menu/light/refresh.png" preprocess="to-pixdata">icons/menu/light/refresh.png</file>
|
||||
<file alias="menu/light/refresh.svg">icons/menu/light/refresh.svg</file>
|
||||
<file alias="menu/light/search.png" preprocess="to-pixdata">icons/menu/light/search.png</file>
|
||||
<file alias="menu/light/search.svg">icons/menu/light/search.svg</file>
|
||||
<file alias="menu/light/find.png" preprocess="to-pixdata">icons/menu/light/find.png</file>
|
||||
<file alias="menu/light/find.svg">icons/menu/light/find.svg</file>
|
||||
<file alias="menu/light/previous.png" preprocess="to-pixdata">icons/menu/light/previous.png</file>
|
||||
<file alias="menu/light/previous.svg">icons/menu/light/previous.svg</file>
|
||||
<file alias="menu/light/next.png" preprocess="to-pixdata">icons/menu/light/next.png</file>
|
||||
<file alias="menu/light/next.svg">icons/menu/light/next.svg</file>
|
||||
<file alias="menu/light/help.png" preprocess="to-pixdata">icons/menu/light/help.png</file>
|
||||
<file alias="menu/light/help.svg">icons/menu/light/help.svg</file>
|
||||
<file alias="menu/light/about.png" preprocess="to-pixdata">icons/menu/light/about.png</file>
|
||||
<file alias="menu/light/about.svg">icons/menu/light/about.svg</file>
|
||||
<file alias="menu/light/update.png" preprocess="to-pixdata">icons/menu/light/update.png</file>
|
||||
<file alias="menu/light/update.svg">icons/menu/light/update.svg</file>
|
||||
<file alias="menu/light/emoji.png" preprocess="to-pixdata">icons/menu/light/emoji.png</file>
|
||||
<file alias="menu/light/emoji.svg">icons/menu/light/emoji.svg</file>
|
||||
|
||||
<file alias="menu/dark/new.png" preprocess="to-pixdata">icons/menu/dark/new.png</file>
|
||||
<file alias="menu/dark/new.svg">icons/menu/dark/new.svg</file>
|
||||
<file alias="menu/dark/network-list.png" preprocess="to-pixdata">icons/menu/dark/network-list.png</file>
|
||||
<file alias="menu/dark/network-list.svg">icons/menu/dark/network-list.svg</file>
|
||||
<file alias="menu/dark/load-plugin.png" preprocess="to-pixdata">icons/menu/dark/load-plugin.png</file>
|
||||
<file alias="menu/dark/load-plugin.svg">icons/menu/dark/load-plugin.svg</file>
|
||||
<file alias="menu/dark/detach.png" preprocess="to-pixdata">icons/menu/dark/detach.png</file>
|
||||
<file alias="menu/dark/detach.svg">icons/menu/dark/detach.svg</file>
|
||||
<file alias="menu/dark/close.png" preprocess="to-pixdata">icons/menu/dark/close.png</file>
|
||||
<file alias="menu/dark/close.svg">icons/menu/dark/close.svg</file>
|
||||
<file alias="menu/dark/quit.png" preprocess="to-pixdata">icons/menu/dark/quit.png</file>
|
||||
<file alias="menu/dark/quit.svg">icons/menu/dark/quit.svg</file>
|
||||
<file alias="menu/dark/disconnect.png" preprocess="to-pixdata">icons/menu/dark/disconnect.png</file>
|
||||
<file alias="menu/dark/disconnect.svg">icons/menu/dark/disconnect.svg</file>
|
||||
<file alias="menu/dark/connect.png" preprocess="to-pixdata">icons/menu/dark/connect.png</file>
|
||||
<file alias="menu/dark/connect.svg">icons/menu/dark/connect.svg</file>
|
||||
<file alias="menu/dark/join.png" preprocess="to-pixdata">icons/menu/dark/join.png</file>
|
||||
<file alias="menu/dark/join.svg">icons/menu/dark/join.svg</file>
|
||||
<file alias="menu/dark/chanlist.png" preprocess="to-pixdata">icons/menu/dark/chanlist.png</file>
|
||||
<file alias="menu/dark/chanlist.svg">icons/menu/dark/chanlist.svg</file>
|
||||
<file alias="menu/dark/preferences.png" preprocess="to-pixdata">icons/menu/dark/preferences.png</file>
|
||||
<file alias="menu/dark/preferences.svg">icons/menu/dark/preferences.svg</file>
|
||||
<file alias="menu/dark/clear.png" preprocess="to-pixdata">icons/menu/dark/clear.png</file>
|
||||
<file alias="menu/dark/clear.svg">icons/menu/dark/clear.svg</file>
|
||||
<file alias="menu/dark/copy.png" preprocess="to-pixdata">icons/menu/dark/copy.png</file>
|
||||
<file alias="menu/dark/copy.svg">icons/menu/dark/copy.svg</file>
|
||||
<file alias="menu/dark/delete.png" preprocess="to-pixdata">icons/menu/dark/delete.png</file>
|
||||
<file alias="menu/dark/delete.svg">icons/menu/dark/delete.svg</file>
|
||||
<file alias="menu/dark/add.png" preprocess="to-pixdata">icons/menu/dark/add.png</file>
|
||||
<file alias="menu/dark/add.svg">icons/menu/dark/add.svg</file>
|
||||
<file alias="menu/dark/remove.png" preprocess="to-pixdata">icons/menu/dark/remove.png</file>
|
||||
<file alias="menu/dark/remove.svg">icons/menu/dark/remove.svg</file>
|
||||
<file alias="menu/dark/spell-check.png" preprocess="to-pixdata">icons/menu/dark/spell-check.png</file>
|
||||
<file alias="menu/dark/spell-check.svg">icons/menu/dark/spell-check.svg</file>
|
||||
<file alias="menu/dark/save.png" preprocess="to-pixdata">icons/menu/dark/save.png</file>
|
||||
<file alias="menu/dark/save.svg">icons/menu/dark/save.svg</file>
|
||||
<file alias="menu/dark/save-as.png" preprocess="to-pixdata">icons/menu/dark/save-as.png</file>
|
||||
<file alias="menu/dark/save-as.svg">icons/menu/dark/save-as.svg</file>
|
||||
<file alias="menu/dark/refresh.png" preprocess="to-pixdata">icons/menu/dark/refresh.png</file>
|
||||
<file alias="menu/dark/refresh.svg">icons/menu/dark/refresh.svg</file>
|
||||
<file alias="menu/dark/search.png" preprocess="to-pixdata">icons/menu/dark/search.png</file>
|
||||
<file alias="menu/dark/search.svg">icons/menu/dark/search.svg</file>
|
||||
<file alias="menu/dark/find.png" preprocess="to-pixdata">icons/menu/dark/find.png</file>
|
||||
<file alias="menu/dark/find.svg">icons/menu/dark/find.svg</file>
|
||||
<file alias="menu/dark/previous.png" preprocess="to-pixdata">icons/menu/dark/previous.png</file>
|
||||
<file alias="menu/dark/previous.svg">icons/menu/dark/previous.svg</file>
|
||||
<file alias="menu/dark/next.png" preprocess="to-pixdata">icons/menu/dark/next.png</file>
|
||||
<file alias="menu/dark/next.svg">icons/menu/dark/next.svg</file>
|
||||
<file alias="menu/dark/help.png" preprocess="to-pixdata">icons/menu/dark/help.png</file>
|
||||
<file alias="menu/dark/help.svg">icons/menu/dark/help.svg</file>
|
||||
<file alias="menu/dark/about.png" preprocess="to-pixdata">icons/menu/dark/about.png</file>
|
||||
<file alias="menu/dark/about.svg">icons/menu/dark/about.svg</file>
|
||||
<file alias="menu/dark/update.png" preprocess="to-pixdata">icons/menu/dark/update.png</file>
|
||||
<file alias="menu/dark/update.svg">icons/menu/dark/update.svg</file>
|
||||
<file alias="menu/dark/emoji.png" preprocess="to-pixdata">icons/menu/dark/emoji.png</file>
|
||||
<file alias="menu/dark/emoji.svg">icons/menu/dark/emoji.svg</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
||||
511
debian/changelog
vendored
511
debian/changelog
vendored
@@ -1,511 +0,0 @@
|
||||
zoitechat (2.18.0~pre1-1) unstable; urgency=medium
|
||||
|
||||
* New upstream pre-release 2.18.0~pre1.
|
||||
* Debian packaging updates in this branch:
|
||||
- switch package builds to GTK 3 and pass -Dgtk3=true to Meson.
|
||||
- add/install split-package manifests for generated binary packages.
|
||||
- include manpage and MIME package XML in package installs.
|
||||
- adjust CI artifact staging/upload paths for actions/upload-artifact@v4.
|
||||
|
||||
-- ZoiteChat Maintainers <zoitechat@users.noreply.github.com> Sun, 16 Feb 2026 00:00:00 +0000
|
||||
|
||||
zoitechat (2.17.0-1) unstable; urgency=medium
|
||||
|
||||
* Switch Debian build to GTK 3 packaging:
|
||||
- replace libgtk2.0-dev with libgtk-3-dev in Build-Depends.
|
||||
- pass -Dgtk3=true to Meson during package builds.
|
||||
- update package description to explicitly reference GTK 3.
|
||||
|
||||
-- ZoiteChat Maintainers <zoitechat@users.noreply.github.com> Sun, 16 Feb 2026 00:00:00 +0000
|
||||
|
||||
zoitechat (2.17.0-0) stable; urgency=medium
|
||||
|
||||
* Initial ZoiteChat packaging (forked from HexChat's Debian packaging).
|
||||
* Rename packages/binaries to zoitechat.
|
||||
* Move Python plugin package to Suggests (known to be unstable in Flatpak builds).
|
||||
|
||||
-- ZoiteChat Maintainers <zoitechat@users.noreply.github.com> Wed, 07 Jan 2026 00:00:00 +0000
|
||||
|
||||
hexchat (2.16.2-1) unstable; urgency=medium
|
||||
|
||||
* Update watch file for new github tarball location
|
||||
* New upstream version 2.16.2
|
||||
* Update copyright file
|
||||
* Update copyright years also for Debian packaging
|
||||
* Drop patch 0001-Be-even-more-picky-about-invalid-URLs.patch: upstream
|
||||
* Add three patches from <pabs>:
|
||||
- Add-channel-context-menu-item-to-close-the-channel,
|
||||
- Automatically-reconnect-when-there-is-a-TLS-error,
|
||||
- Do-not-insert-an-extra-space-on-all-lines-when-loading-scrollback-with-colours
|
||||
|
||||
-- Gianfranco Costamagna <locutusofborg@debian.org> Sat, 09 Mar 2024 11:51:16 +0100
|
||||
|
||||
hexchat (2.16.1-2) unstable; urgency=medium
|
||||
|
||||
[ Gianfranco Costamagna ]
|
||||
* Team upload
|
||||
|
||||
[ Debian Janitor ]
|
||||
* Drop versioned constraint on python3-dev.
|
||||
|
||||
[ Sudip Mukherjee ]
|
||||
* Fix hexchat crash for specific links. (LP: #2029314)
|
||||
+ This is an upstream cherry-pick
|
||||
|
||||
-- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 06 Mar 2024 07:30:56 +0100
|
||||
|
||||
hexchat (2.16.1-1) unstable; urgency=medium
|
||||
|
||||
* New upstream version 2.16.1.
|
||||
* Drop all patches, applied upstream.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Fri, 22 Apr 2022 21:52:27 +0200
|
||||
|
||||
hexchat (2.16.0-4) unstable; urgency=medium
|
||||
|
||||
* d/copyright: bump copyright year
|
||||
* Add some patches from upstream, while waiting for the new release:
|
||||
+ Fix build with OpenSSL 3.
|
||||
+ Improve the fishlim tests.
|
||||
+ Fix the URL opening to not double-encode already encoded URLs.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Mon, 17 Jan 2022 13:26:58 +0100
|
||||
|
||||
hexchat (2.16.0-3) unstable; urgency=medium
|
||||
|
||||
* Increase the tests timeout even more.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Sun, 31 Oct 2021 17:45:43 +0100
|
||||
|
||||
hexchat (2.16.0-2) unstable; urgency=medium
|
||||
|
||||
* Add patch to increase the tests timeout.
|
||||
* Update our copy of the upstream changelog.
|
||||
* Recommends:hexchat-lua from hexchat. Closes: #996172
|
||||
Thanks to Jesse Rhodes <jesse@sney.ca> for the patch!
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Fri, 15 Oct 2021 14:20:31 +0200
|
||||
|
||||
hexchat (2.16.0-1) unstable; urgency=medium
|
||||
|
||||
[ Mattia Rizzolo ]
|
||||
* New upstream version 2.16.0.
|
||||
+ Drop all patches applied upstream.
|
||||
+ Refresh the patches tweaking the default channels/networks.
|
||||
* Refresh the upstream signing key.
|
||||
* Update copyright.
|
||||
* Drop our patch renaming the Python plugin into Python3.
|
||||
There doesn't seem to be any transition needed.
|
||||
* d/control:
|
||||
+ Drop Build-Depends on libnotify-dev and libproxy-dev,
|
||||
not used anymore starting with v2.16.
|
||||
+ Have hexchat-python3 Depend on python3-cffi-backend;
|
||||
seems like I missed this dependency since v2.14.3-4.
|
||||
+ Bump Standards-Version to 4.6.0, no changes needed.
|
||||
|
||||
[ Debian Janitor ]
|
||||
* Remove constraints unnecessary since buster:
|
||||
* Build-Depends: Drop versioned constraint on meson.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Mon, 04 Oct 2021 17:12:52 +0200
|
||||
|
||||
hexchat (2.14.3-6) unstable; urgency=medium
|
||||
|
||||
* Add Recommends:ca-certificates.
|
||||
* Add patches from upstream to add Libera.Chat to the network list.
|
||||
* Adapt default servers patches for the upstream changes.
|
||||
* Ubuntu default server: LP: #1933681
|
||||
+ Change from Freenode to Libera.Chat.
|
||||
+ Pre-select the "join channel" button, like we do in Debian.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Wed, 26 May 2021 14:55:10 +0200
|
||||
|
||||
hexchat (2.14.3-5) unstable; urgency=medium
|
||||
|
||||
* Bump copyright for 2021.
|
||||
* Apply patch from upstream to fix font height calculation with Pango>=1.44.
|
||||
LP: #1920974
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Sat, 02 Jan 2021 16:31:39 +0100
|
||||
|
||||
hexchat (2.14.3-4) unstable; urgency=medium
|
||||
|
||||
[ Debian Janitor ]
|
||||
* Set upstream metadata fields: Bug-Submit.
|
||||
|
||||
[ Mattia Rizzolo ]
|
||||
* Bump Standards-Version to 4.5.1, no changes needed.
|
||||
* Bump debhelper compat version to 13.
|
||||
+ Drop dh_missing override, now that --fail-missing is the default.
|
||||
* Add a patch series from upstream to refactor the whole Python plugin,
|
||||
using CFFI. This fixes support for Python 3.9. Closes: #975393
|
||||
+ Replace my naive patch to fix the build with Python 3.8, using instead
|
||||
the fix that comes from upstream.
|
||||
+ Install the new files produced by cffi.
|
||||
+ Add new Build-Depends python3-cffi.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Wed, 16 Dec 2020 22:03:57 +0100
|
||||
|
||||
hexchat (2.14.3-3) unstable; urgency=medium
|
||||
|
||||
* Add patch to use the new -embed variant of python3.pc.
|
||||
Fix linking with Python 3.8. LP: #1866081
|
||||
* Swap the Recommends:hwdata with Recommends:pci.ids. Closes: #953300
|
||||
* Bump Standards-Version to 4.5.0, no changes needed.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Wed, 11 Mar 2020 17:08:25 +0100
|
||||
|
||||
hexchat (2.14.3-2) unstable; urgency=medium
|
||||
|
||||
[ Gianfranco Costamagna ]
|
||||
* Refresh the Ubuntu servlist patch.
|
||||
|
||||
[ Mattia Rizzolo ]
|
||||
* Import patch from upstream (from James Clarke) to properly prioritize
|
||||
MODE commands, that were delaying PINGs in some cases.
|
||||
|
||||
[ Debian Janitor ]
|
||||
* Set upstream metadata fields: Bug-Database, Repository,
|
||||
Repository-Browse.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Thu, 02 Jan 2020 09:46:24 +0100
|
||||
|
||||
hexchat (2.14.3-1) unstable; urgency=medium
|
||||
|
||||
* New upstream version 2.14.3.
|
||||
+ Drop patches applied upstream.
|
||||
* d/control:
|
||||
+ Bump build-dependency on meson to >= 0.40.
|
||||
+ Bump Standards-Version to 4.4.1, no changes needed.
|
||||
* Update the boundled upstream docs.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Tue, 31 Dec 2019 15:24:45 +0100
|
||||
|
||||
hexchat (2.14.2-5) unstable; urgency=medium
|
||||
|
||||
* Stop building the Python2 plugin. Closes: #936697
|
||||
Simplify the patch used to build py2 and py3; we need to keep it because
|
||||
we used to rename the 'python' plugin to 'python3'. We should check if
|
||||
some kind of transition should be done to go back to the upstream
|
||||
defaults.
|
||||
* d/control:
|
||||
+ Drop a bunch of old Breaks/Replaces that shouldn't be needed anymore.
|
||||
+ Bump Standards-Version to 4.4.0, no changes needed.
|
||||
+ Bump debhelper compat level to 12, no changes needed.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Sat, 31 Aug 2019 11:57:51 +0200
|
||||
|
||||
hexchat (2.14.2-4) unstable; urgency=medium
|
||||
|
||||
* Add a patch to fix a probable crash while unloading the Python plugin
|
||||
when using Python 3.7. LP: #1830246; Closes: #921208
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Sat, 25 May 2019 11:48:26 +0200
|
||||
|
||||
hexchat (2.14.2-3) unstable; urgency=medium
|
||||
|
||||
[ Ondřej Nový ]
|
||||
* d/copyright: Change Format URL to correct one.
|
||||
|
||||
[ Mattia Rizzolo ]
|
||||
* Move the patches tweaking the default servers out of d/patches, and inject
|
||||
them through d/rules. The ctte decided that vendored series files are not
|
||||
allowed in the Debian archive, see #904302. Closes: #915350
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Mon, 03 Dec 2018 14:17:35 +0100
|
||||
|
||||
hexchat (2.14.2-2) unstable; urgency=medium
|
||||
|
||||
* Add patch to fix FTBFS on !linux.
|
||||
* d/control: Use the new debhelper-compat(=11) build-dep and drop d/compat.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Sun, 23 Sep 2018 20:38:39 +0200
|
||||
|
||||
hexchat (2.14.2-1) unstable; urgency=medium
|
||||
|
||||
* New upstream version 2.14.2.
|
||||
* d/patches:
|
||||
+ Drop patches applied upstream.
|
||||
+ Refresh remaining patches.
|
||||
* d/control: Bump Standards-Version to 4.2.1, no changes needed.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Sat, 01 Sep 2018 22:28:20 +0200
|
||||
|
||||
hexchat (2.14.1-2) unstable; urgency=medium
|
||||
|
||||
* Add some patches from upstream:
|
||||
+ upstream/0003-Remove-shift-click-to-close-tab-binding.patch
|
||||
- LP: #1756402
|
||||
+ upstream/0004-build-Add-metainfo-files-for-addons.patch
|
||||
+ upstream/0005-build-Fix-id-in-plugin-metainfo-files.patch
|
||||
+ upstream/0006-build-Correctly-set-plugin-licenses.patch
|
||||
+ upstream/0007-build-Re-add-support-for-the-legacy-perl-api.patch
|
||||
+ upstream/0008-Deiconify-window-on-tray-click.-Closes-2136.patch
|
||||
* Fixup our py2+py3 patch after the above patches have been applied.
|
||||
* Install the new metainfo files representing the various plugins.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Tue, 20 Mar 2018 16:10:27 +0100
|
||||
|
||||
hexchat (2.14.1-1) unstable; urgency=medium
|
||||
|
||||
* New upstream version 2.14.1.
|
||||
* Drop all patches applied upstream.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Wed, 14 Mar 2018 03:35:41 +0100
|
||||
|
||||
hexchat (2.14.0-1) unstable; urgency=medium
|
||||
|
||||
* New upstream version 2.14.0. Closes: #892085
|
||||
* Refresh patches:
|
||||
+ drop 4c178782a779f013fafab476506f7d4dae372b8a.patch, applied upstream.
|
||||
+ Rewrite the local patch used to build for both python2 and python3 after
|
||||
the change of build system upstream.
|
||||
+ Add all the commits from upstream after the release:
|
||||
- 0003-build-Remove-pie-from-global-ldflags.patch
|
||||
- 0004-Fix-fscanf-usage-without-size-limit.patch
|
||||
- 0005-fix-typo-in-comment.patch
|
||||
- 0006-Revert-xtext-Always-use-Pango-to-get-correct-glyph-w.patch
|
||||
* d/control:
|
||||
+ Update build dependencies for the new upstream:
|
||||
- New build-deps: gettext, iso-codes, liblua5.3-dev, meson (>= 0.38).
|
||||
- Drop build-deps: dh-lua, intltool, libtool.
|
||||
- Drop version restriction from libgtk2.0-dev (>= 2.10.0).
|
||||
+ Set Rules-Requires-Root:no.
|
||||
* d/changelog.txt: Update from upstream.
|
||||
* d/hexchat.install: Slightly update the paths.
|
||||
* d/rules:
|
||||
+ Drop override_dh_install not needed anymore with meson.
|
||||
+ Explicitly build with lua 5.3. The new build system defaults on luajit
|
||||
only now.
|
||||
* d/copyright: Update.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Wed, 14 Mar 2018 02:36:37 +0100
|
||||
|
||||
hexchat (2.12.4-6) unstable; urgency=medium
|
||||
|
||||
* d/control:
|
||||
+ Move packaging to salsa.debian.org.
|
||||
+ Replace recomendency on gvfs-bin to libglib2.0-bin. Closes: #877746
|
||||
+ Bump Standards-Version to 4.1.3, no changes needed.
|
||||
* d/copyright: Bump copyright years for debian/*.
|
||||
* d/rules: Replace dh_install --fail-missing by dh_missing.
|
||||
* d/watch: Use HTTPS.
|
||||
* Bump debhelper compat level to 11.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Sat, 24 Feb 2018 18:26:41 +0100
|
||||
|
||||
hexchat (2.12.4-5) unstable; urgency=medium
|
||||
|
||||
* Add a short description to the previous changelog entry on how to manually
|
||||
preserve the scrollback that would otherwise get lost.
|
||||
* Remove the patch also for Ubuntu (fixing FTBFS there).
|
||||
* d/control:
|
||||
+ Add a bunch of Multi-Arch:same notation, suggested by the M-A hinter.
|
||||
+ Remove the transitional package hexchat-python.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Sat, 15 Jul 2017 18:34:27 +0200
|
||||
|
||||
hexchat (2.12.4-4) unstable; urgency=medium
|
||||
|
||||
* Stop reverting upstream commit 15600f405f2d5bda6ccf0dd73957395716e0d4d3.
|
||||
This means users will lose their scrollback right after updating, but
|
||||
that's what upstream did and we have no real reasons to undefinitely
|
||||
diverge from them just to wait for a nicer fix.
|
||||
Closes: #852275; CVE-2016-2087
|
||||
For users who care about their scrollback, it's enough to manually rename
|
||||
the directories in ~/.config/hexchat/scrollback to all-lowercase characters
|
||||
before restarting hexchat after the update.
|
||||
* d/control: Bump Standards-Version to 4.0.0, no changes needed
|
||||
* d/copyright: bump my copyright year for debian/ to cover 2017
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Fri, 14 Jul 2017 16:12:32 +0200
|
||||
|
||||
hexchat (2.12.4-3) unstable; urgency=medium
|
||||
|
||||
* Demote hexchat-otr from Recommends to Suggests.
|
||||
It reportely causes noise and problems for unexperienced users, and it's
|
||||
a mostly unmaintained plugin, so don't install it by default.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Tue, 30 May 2017 21:50:09 +0200
|
||||
|
||||
hexchat (2.12.4-2) unstable; urgency=medium
|
||||
|
||||
* Also apply patch 4c178782a779f013fafab476506f7d4dae372b8a.patch on ubuntu.
|
||||
* d/p/0001-Debian-server-defaults.patch: Add missing braces around the `if`.
|
||||
Thanks to Lauri Alanko <la@iki.fi> for the patch. Closes: #779892
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Thu, 26 Jan 2017 09:54:41 +0100
|
||||
|
||||
hexchat (2.12.4-1) unstable; urgency=medium
|
||||
|
||||
* New upstream version 2.12.4.
|
||||
* d/copyright: update (removal of the doat plugin).
|
||||
* d/watch: improve:
|
||||
+ Bump version to 4.
|
||||
+ Use substitution strings @ANY_VERSION@ and @ARCHIVE_EXT@.
|
||||
+ Ignore version 2.12.4-repack by mangling it into 2.12.4.
|
||||
* d/control: mark hexchat-dev and hexchat-lua as Multi-Arch:same.
|
||||
* d/patches/:
|
||||
+ openssl/*: drop, applied upstream.
|
||||
+ clean.patch: drop, applied upstream.
|
||||
+ 4c178782a779f013fafab476506f7d4dae372b8a.patch: include from upstream to
|
||||
work around a gdk-pixbuf bug which would prevent the hexchat icon from
|
||||
being displayed in panels/systrays. Closes: #848615
|
||||
* d/rules: add a 'udoc' target to update the bundled copy of upstream doc.
|
||||
* Update upstream documentation.
|
||||
* d/hexchat-plugins.install: upstream converted the 'doat' plugin into an
|
||||
internal command, so stop trying to install the plugin.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Mon, 26 Dec 2016 01:16:19 +0100
|
||||
|
||||
hexchat (2.12.3-4) unstable; urgency=medium
|
||||
|
||||
* Re-enable Lua support everywhere now that #845929 is fixed.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Mon, 19 Dec 2016 12:47:31 +0100
|
||||
|
||||
hexchat (2.12.3-3) unstable; urgency=medium
|
||||
|
||||
* Actually disable Lua support when building.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Mon, 05 Dec 2016 16:03:26 +0100
|
||||
|
||||
hexchat (2.12.3-2) unstable; urgency=medium
|
||||
|
||||
* Temporary restrict the build of hexchat-lua to the architectures where lua
|
||||
is usable right now (see #845929).
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Mon, 05 Dec 2016 14:02:40 +0100
|
||||
|
||||
hexchat (2.12.3-1) unstable; urgency=medium
|
||||
|
||||
[ Jesse Rhodes ]
|
||||
* Add hexchat-dev package for .pc and .h files.
|
||||
* Include dbus service file in hexchat-common.
|
||||
|
||||
[ Mattia Rizzolo ]
|
||||
* Take over maintenance from Jasse Rhodes.
|
||||
Thank you for all your work these years! Closes: #844574
|
||||
* debian/control:
|
||||
+ wrap-and-sort -ast.
|
||||
+ Bump Standards-Version to 3.9.8, no changes needed.
|
||||
+ Add proper Breaks/Replaces for the hexchat-dev addition-
|
||||
+ Have hexchat-plugins recommend hwdata for the sysinfo plugin.
|
||||
Closes: #845940
|
||||
+ Have hexchat recommend the hexchat-otr plugin.
|
||||
Thanks to Petter Reinholdtsen <pere@hungry.com> for the suggestion
|
||||
+ Bump the Breaks/Replaces of hexchat-plugins against hexchat;
|
||||
hexchat-plugin.pc has been moved from hexchat to hexchat-plugins
|
||||
in 2.12.0-1. LP: #1586239
|
||||
+ Set appropriate Breaks/Replaces to cope with the Ubuntu delta and
|
||||
make the package syncable.
|
||||
+ Mark hexchat-common as Multi-Arch:foreign (from the m-a hinter).
|
||||
* debian/rules:
|
||||
+ Remove huge override_dh_auto_clean: if anything of that is needed,
|
||||
it should be done on the upstream side.
|
||||
+ Remove *.la files before running dh_install.
|
||||
+ Use dh_install --fail-missing.
|
||||
* Package the Lua plugin. Closes: #834491
|
||||
* Update upstream changelog for 2.13.2.
|
||||
* Use dh_installchangelogs to install the upstream changelog, instead of
|
||||
manually compressing in rules and the install with d/*.docs.
|
||||
* Let the upstream build system put the manpage in place, instead of copying
|
||||
it of our own.
|
||||
* Add patch to properly clean the upstream sources and make possible to build
|
||||
the package twice in a row.
|
||||
* Bump debhelper compat level to 10.
|
||||
+ --with autoreconf is now default.
|
||||
* debian/copyright:
|
||||
+ Make it DEP-5 compliant.
|
||||
+ Update.
|
||||
* Drop nearly all lintian overrides; they are either fixed or unused.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Thu, 01 Dec 2016 18:30:03 +0100
|
||||
|
||||
hexchat (2.12.3-0.1) unstable; urgency=medium
|
||||
|
||||
* Non-maintainer upload, with maintainer ACK.
|
||||
|
||||
[ Jesse Rhodes ]
|
||||
* Fixed vcs-git url.
|
||||
|
||||
[ Mattia Rizzolo ]
|
||||
* Imported Upstream version 2.12.3. Closes: #836809
|
||||
* Refresh patches
|
||||
* d/rules: disable LUA bindings, as they would require a new binary package.
|
||||
* Add several patches from upstream to add support to OpenSSL 1.1.0.
|
||||
Closes: #828339
|
||||
* Revert upstream commit 15600f405f2d5bda6ccf0dd73957395716e0d4d3, which
|
||||
would cause users to lose their scrollback.
|
||||
|
||||
-- Mattia Rizzolo <mattia@debian.org> Sun, 27 Nov 2016 13:41:25 +0100
|
||||
|
||||
hexchat (2.12.0-2) unstable; urgency=medium
|
||||
|
||||
* Removed patch correcting for missing translations,
|
||||
as translations are no longer missing
|
||||
* Removed patch correcting spelling error that would break
|
||||
some scripts and themes
|
||||
* Updated ubuntu server/channel defaults
|
||||
|
||||
-- Jesse Rhodes <drubo@drubo.net> Wed, 30 Mar 2016 11:44:04 -0600
|
||||
|
||||
hexchat (2.12.0-1) unstable; urgency=medium
|
||||
|
||||
* New upstream release
|
||||
* Iceweasel no longer called Firefox in url dialog
|
||||
* Building both python2 and python3 plugins
|
||||
* Including hexchat-plugin.pc (Closes: 801767)
|
||||
|
||||
-- Jesse Rhodes <drubo@drubo.net> Fri, 25 Mar 2016 10:54:57 -0600
|
||||
|
||||
hexchat (2.10.2-1) unstable; urgency=medium
|
||||
|
||||
* New upstream release
|
||||
* Includes upstream fixes for POODLE vulnerability
|
||||
(CVE-2014-3566)
|
||||
* Split plugins into modular packages rather than having all
|
||||
binaries in the main hexchat package
|
||||
|
||||
-- Jesse Rhodes <drubo@drubo.net> Fri, 28 Nov 2014 18:35:39 -0700
|
||||
|
||||
hexchat (2.10.1-2) unstable; urgency=medium
|
||||
|
||||
* Fix ubuntu_defaults.patch (LP: #1390851)
|
||||
* Disable SSLv3
|
||||
|
||||
-- Jesse Rhodes <drubo@drubo.net> Sun, 16 Nov 2014 11:47:12 -0700
|
||||
|
||||
hexchat (2.10.1-1) unstable; urgency=medium
|
||||
|
||||
* New upstream release
|
||||
* No longer build-depend on libsexy-dev
|
||||
* URL handler dialog now labeled Iceweasel rather than Firefox
|
||||
|
||||
-- Jesse Rhodes <drubo@drubo.net> Mon, 18 Aug 2014 21:18:55 -0600
|
||||
|
||||
hexchat (2.10.0-1) unstable; urgency=medium
|
||||
|
||||
* New upstream release
|
||||
* Removed patches for issues fixed by upstream
|
||||
* Added default servers and recommended channels for debian
|
||||
and ubuntu (LP: #1294415)
|
||||
* Upstream commit fa955a0f fixes xdcc segfault (Closes: #745764)
|
||||
|
||||
-- Jesse Rhodes <drubo@drubo.net> Sun, 01 Jun 2014 16:45:22 -0600
|
||||
|
||||
hexchat (2.9.6.1-2) unstable; urgency=low
|
||||
|
||||
* Now using dh-autoreconf instead of autotools-dev (Closes: #739630)
|
||||
* Added gvfs-bin as Recommends so default url handlers work
|
||||
(Closes: #740006)
|
||||
* Added unifont as Suggests for unicode symbol support
|
||||
* Included png,svg icons in package
|
||||
|
||||
-- Jesse Rhodes <drubo@drubo.net> Tue, 25 Feb 2014 16:45:42 -0700
|
||||
|
||||
hexchat (2.9.6.1-1) unstable; urgency=low
|
||||
|
||||
* Initial release (Closes: #702075)
|
||||
|
||||
-- Jesse Rhodes <drubo@drubo.net> Mon, 03 Feb 2014 19:09:17 -0700
|
||||
126
debian/control
vendored
126
debian/control
vendored
@@ -1,126 +0,0 @@
|
||||
Source: zoitechat
|
||||
Section: net
|
||||
Priority: optional
|
||||
Maintainer: ZoiteChat Maintainers <zoitechat@users.noreply.github.com>
|
||||
Build-Depends:
|
||||
debhelper-compat (= 13),
|
||||
gettext,
|
||||
iso-codes,
|
||||
libcanberra-dev,
|
||||
libdbus-glib-1-dev,
|
||||
libglib2.0-dev,
|
||||
libgtk-3-dev,
|
||||
liblua5.3-dev,
|
||||
libpci-dev,
|
||||
libperl-dev,
|
||||
libssl-dev,
|
||||
meson,
|
||||
python3-cffi,
|
||||
python3-dev
|
||||
Standards-Version: 4.6.0
|
||||
Rules-Requires-Root: no
|
||||
Vcs-Git: https://github.com/zoitechat/zoitechat.git
|
||||
Vcs-Browser: https://github.com/zoitechat/zoitechat
|
||||
Homepage: https://zoitechat.zoite.net
|
||||
|
||||
Package: zoitechat
|
||||
Architecture: any
|
||||
Depends:
|
||||
zoitechat-common (= ${binary:Version}),
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Recommends:
|
||||
ca-certificates,
|
||||
zoitechat-lua,
|
||||
zoitechat-perl,
|
||||
zoitechat-plugins,
|
||||
libglib2.0-bin
|
||||
Suggests:
|
||||
zoitechat-python3,
|
||||
zoitechat-otr,
|
||||
unifont
|
||||
Description: IRC client for GNOME (fork of HexChat 2.18.0-pre1 base)
|
||||
ZoiteChat is a graphical IRC client with a GTK 3 GUI. Features include Python,
|
||||
Perl and Lua scripting support, a plugin API, multiple server/channel
|
||||
windows, spell checking, multiple authentication methods including SASL, and
|
||||
customizable notifications. For more information on IRC, see
|
||||
http://irchelp.org/.
|
||||
|
||||
Package: zoitechat-common
|
||||
Architecture: all
|
||||
Multi-Arch: foreign
|
||||
Provides: irc-client
|
||||
Depends: ${misc:Depends}
|
||||
Recommends:
|
||||
ca-certificates,
|
||||
zoitechat-lua,
|
||||
zoitechat-perl,
|
||||
zoitechat-plugins,
|
||||
libglib2.0-bin
|
||||
Suggests:
|
||||
zoitechat,
|
||||
zoitechat-python3,
|
||||
zoitechat-otr,
|
||||
unifont
|
||||
Description: Common data files for ZoiteChat
|
||||
This package includes architecture-independent files for ZoiteChat, such as
|
||||
translations, desktop integration, and shared data.
|
||||
|
||||
Package: zoitechat-perl
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Depends:
|
||||
zoitechat (= ${binary:Version}),
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Description: Perl plugin for ZoiteChat
|
||||
This package contains the Perl plugin for ZoiteChat. It is split out from the
|
||||
main package because it is optional.
|
||||
|
||||
Package: zoitechat-python3
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Depends:
|
||||
zoitechat (= ${binary:Version}),
|
||||
python3-cffi-backend,
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Description: Python 3 plugin for ZoiteChat
|
||||
This package contains the Python 3 plugin for ZoiteChat. It is split out from
|
||||
the main package because it is optional.
|
||||
.
|
||||
Known issue: the Python plugin may freeze the client in some builds.
|
||||
|
||||
Package: zoitechat-lua
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Depends:
|
||||
zoitechat (= ${binary:Version}),
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Description: Lua plugin for ZoiteChat
|
||||
This package contains the Lua plugin for ZoiteChat. It is split out from the
|
||||
main package because it is optional.
|
||||
|
||||
Package: zoitechat-plugins
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Depends:
|
||||
zoitechat (= ${binary:Version}),
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Suggests: pciutils
|
||||
Description: Extra plugins for ZoiteChat
|
||||
This package contains optional plugins (e.g. FiSHLiM, Sysinfo, Do At and
|
||||
Checksum). These are split out from the main package because they are not
|
||||
required for core functionality.
|
||||
|
||||
Package: zoitechat-dev
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Depends:
|
||||
zoitechat-common (= ${binary:Version}),
|
||||
${misc:Depends}
|
||||
Description: Development files for ZoiteChat plugins
|
||||
This package contains zoitechat-plugin.h and zoitechat-plugin.pc, which
|
||||
facilitate building binary plugins for ZoiteChat.
|
||||
188
debian/copyright
vendored
188
debian/copyright
vendored
@@ -1,188 +0,0 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: zoitechat
|
||||
Source: https://zoitechat.zoite.net
|
||||
|
||||
Files: *
|
||||
Copyright: 1998-2010 Peter Zelezny
|
||||
2009-2013 Berke Viktor
|
||||
2015-2021 Patrick Griffis
|
||||
License: GPL-2+ with OpenSSL exception
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2014 Jesse Rhodes <drubo@drubo.net>
|
||||
2016-2022 Mattia Rizzolo <mattia@debian.org>
|
||||
2020-2024 Gianfranco Costamagna <locutusofborg@debian.org>
|
||||
License: GPL-2+
|
||||
|
||||
Files: data/man/zoitechat.1.in
|
||||
Copyright: Davide Puricelli <evo@debian.org>
|
||||
License: GPL-2+
|
||||
|
||||
Files: osx/gtkrc
|
||||
Copyright: 2012 Xamarin Inc.
|
||||
License: GPL-2+
|
||||
|
||||
Files: plugins/checksum/* plugins/exec/*
|
||||
Copyright: 2010-2012 Berke Viktor
|
||||
License: Expat
|
||||
|
||||
Files: plugins/fishlim/*
|
||||
Copyright: 2010 Samuel Lidén Borell <samuel@kodafritt.se>
|
||||
2015 <the.cypher@gmail.com>
|
||||
2019-2020 <bakasura@protonmail.ch>
|
||||
License: Expat
|
||||
|
||||
Files: plugins/lua/*
|
||||
Copyright: 2015-2016 mniip
|
||||
License: Expat
|
||||
|
||||
Files: plugins/perl/*
|
||||
Copyright: 1998-2002 Peter Zelezny
|
||||
License: GPL-2+
|
||||
|
||||
Files: plugins/python/*
|
||||
Copyright: 2002-2003 Gustavo Niemeyer <niemeyer@conectiva.com>
|
||||
License: GPL-2+
|
||||
|
||||
Files: plugins/sysinfo/*
|
||||
Copyright: 2003-2005 Michael Shoup
|
||||
2005-2007 Tony Vroon
|
||||
2012 Berke Viktor
|
||||
2015 Patrick Griffis
|
||||
License: GPL-2+
|
||||
|
||||
Files: plugins/winamp/*
|
||||
Copyright: Leo <leo.nard@free.fr>
|
||||
Silverex <SilvereX@karklas.mif.vu.lt>
|
||||
Derek Buitenhuis <daemon404@gmail.com>
|
||||
Berke Viktor <berkeviktor@aol.com>
|
||||
License: GPL-1.0
|
||||
|
||||
Files: src/common/dbus/*
|
||||
Copyright: 2006 Claessens Xavier
|
||||
License: GPL-2+
|
||||
|
||||
Files: src/common/dbus/example.py
|
||||
Copyright: 1998-2010 Peter Zelezny
|
||||
2009-2013 Berke Viktor
|
||||
License: GPL-2+
|
||||
|
||||
Files: src/common/scram.*
|
||||
Copyright: 2023 Patrick Okraku
|
||||
License: GPL-2+
|
||||
|
||||
Files: src/common/ssl.c
|
||||
Copyright: 2000 DaP <profeta@freemail.c3.hu>
|
||||
License: GPL-2+ with OpenSSL exception
|
||||
|
||||
Files: src/dirent/dirent-win32.h
|
||||
Copyright: 2006-2012 Toni Ronkko
|
||||
License: Expat
|
||||
|
||||
Files: src/fe-gtk/sexy-iso-codes.c src/fe-gtk/sexy-iso-codes.h
|
||||
Copyright: 2008 Novell, Inc.
|
||||
2013 Sandro Mani
|
||||
License: GPL-2+
|
||||
|
||||
Files: src/fe-gtk/sexy-spell-entry.c src/fe-gtk/sexy-spell-entry.h
|
||||
Copyright: 2002 Evan Martin
|
||||
2004-2006 Christian Hammond
|
||||
License: LGPL-2.1+
|
||||
|
||||
License: GPL-2+ with OpenSSL exception
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
.
|
||||
In addition, as a special exception, the copyright holders give permission
|
||||
to link the code of portions of this program with the OpenSSL library.
|
||||
You must obey the GNU General Public License in all respects for all of
|
||||
the code used other than OpenSSL. If you modify file(s) with this
|
||||
exception, you may extend this exception to your version of the file(s),
|
||||
but you are not obligated to do so. If you do not wish to do so, delete
|
||||
this exception statement from your version. If you delete this exception
|
||||
statement from all source files in the program, then also delete it here.
|
||||
|
||||
License: Expat
|
||||
.
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
License: GPL-2+
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
|
||||
License: GPL-1.0
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 1, or (at your option)
|
||||
any later version.
|
||||
.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
02110-1301, USA.
|
||||
|
||||
License: LGPL-2.1+
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
.
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
02110-1301 USA
|
||||
40
debian/default_servers/debian
vendored
40
debian/default_servers/debian
vendored
@@ -1,40 +0,0 @@
|
||||
Description: Changed default network to OFTC,
|
||||
suggests to join #debian on OFTC and Freenode
|
||||
|
||||
diff --git a/src/common/servlist.c b/src/common/servlist.c
|
||||
index a203e702..22fcd92b 100644
|
||||
--- a/src/common/servlist.c
|
||||
+++ b/src/common/servlist.c
|
||||
@@ -902,7 +902,7 @@ servlist_load_defaults (void)
|
||||
{
|
||||
int i = 0, j = 0;
|
||||
ircnet *net = NULL;
|
||||
- guint def_hash = g_str_hash ("Libera.Chat");
|
||||
+ guint def_hash = g_str_hash ("OFTC");
|
||||
|
||||
while (1)
|
||||
{
|
||||
diff --git a/src/fe-gtk/joind.c b/src/fe-gtk/joind.c
|
||||
index ce3cbcae..7f6b1116 100644
|
||||
--- a/src/fe-gtk/joind.c
|
||||
+++ b/src/fe-gtk/joind.c
|
||||
@@ -247,10 +247,18 @@ joind_show_dialog (server *serv)
|
||||
G_CALLBACK (joind_ok_cb), serv);
|
||||
|
||||
if (serv->network)
|
||||
+ {
|
||||
+ if (g_ascii_strcasecmp(((ircnet*)serv->network)->name, "OFTC") == 0)
|
||||
+ {
|
||||
+ gtk_entry_set_text (GTK_ENTRY (entry1), "#debian");
|
||||
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(radiobutton2), TRUE);
|
||||
+ }
|
||||
if (g_ascii_strcasecmp(((ircnet*)serv->network)->name, "Libera.Chat") == 0)
|
||||
{
|
||||
- gtk_entry_set_text (GTK_ENTRY (entry1), "#hexchat");
|
||||
+ gtk_entry_set_text (GTK_ENTRY (entry1), "#debian");
|
||||
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(radiobutton2), TRUE);
|
||||
}
|
||||
+ }
|
||||
|
||||
gtk_widget_grab_focus (okbutton1);
|
||||
gtk_widget_show_all (dialog1);
|
||||
43
debian/default_servers/ubuntu
vendored
43
debian/default_servers/ubuntu
vendored
@@ -1,43 +0,0 @@
|
||||
Description: Changed default channel to join from #hexchat to #ubuntu
|
||||
Also adds a "Ubuntu servers" entry, same as connecting to libera.chat.
|
||||
|
||||
diff --git a/src/common/servlist.c b/src/common/servlist.c
|
||||
index a203e702..18a6c4b3 100644
|
||||
--- a/src/common/servlist.c
|
||||
+++ b/src/common/servlist.c
|
||||
@@ -206,6 +206,9 @@ static const struct defaultserver def[] =
|
||||
{"Libera.Chat", 0, 0, 0, LOGIN_SASL, 0, TRUE},
|
||||
{0, "irc.libera.chat"},
|
||||
|
||||
+ {"Ubuntu Servers (Libera.Chat)", 0, 0, 0, LOGIN_SASL, 0, TRUE},
|
||||
+ {0, "irc.libera.chat"},
|
||||
+
|
||||
#ifdef USE_OPENSSL
|
||||
{"LibertaCasa", 0, 0, 0, LOGIN_SASL, 0, TRUE},
|
||||
{0, "irc.liberta.casa"},
|
||||
@@ -902,7 +905,7 @@ servlist_load_defaults (void)
|
||||
{
|
||||
int i = 0, j = 0;
|
||||
ircnet *net = NULL;
|
||||
- guint def_hash = g_str_hash ("Libera.Chat");
|
||||
+ guint def_hash = g_str_hash ("Ubuntu Servers (Libera.Chat)");
|
||||
|
||||
while (1)
|
||||
{
|
||||
diff --git a/src/fe-gtk/joind.c b/src/fe-gtk/joind.c
|
||||
index ce3cbcae..e94e562a 100644
|
||||
--- a/src/fe-gtk/joind.c
|
||||
+++ b/src/fe-gtk/joind.c
|
||||
@@ -247,9 +247,10 @@ joind_show_dialog (server *serv)
|
||||
G_CALLBACK (joind_ok_cb), serv);
|
||||
|
||||
if (serv->network)
|
||||
- if (g_ascii_strcasecmp(((ircnet*)serv->network)->name, "Libera.Chat") == 0)
|
||||
+ if (g_ascii_strcasecmp(((ircnet*)serv->network)->name, "Ubuntu Servers (Libera.Chat)") == 0)
|
||||
{
|
||||
- gtk_entry_set_text (GTK_ENTRY (entry1), "#hexchat");
|
||||
+ gtk_entry_set_text (GTK_ENTRY (entry1), "#ubuntu");
|
||||
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(radiobutton2), TRUE);
|
||||
}
|
||||
|
||||
gtk_widget_grab_focus (okbutton1);
|
||||
20
debian/net.zoite.Zoitechat.appdata.xml
vendored
20
debian/net.zoite.Zoitechat.appdata.xml
vendored
@@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>net.zoite.Zoitechat</id>
|
||||
<name>ZoiteChat</name>
|
||||
<summary>IRC client for GNOME</summary>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>GPL-2.0-or-later</project_license>
|
||||
|
||||
<description>
|
||||
<p>ZoiteChat is a graphical IRC client based on HexChat.</p>
|
||||
<p>Current Flatpak builds have a known issue where the Python plugin can freeze the client.</p>
|
||||
</description>
|
||||
|
||||
<launchable type="desktop-id">net.zoite.Zoitechat.desktop</launchable>
|
||||
<provides>
|
||||
<binary>zoitechat</binary>
|
||||
</provides>
|
||||
|
||||
<url type="homepage">https://zoitechat.zoite.net/</url>
|
||||
</component>
|
||||
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@@ -1 +0,0 @@
|
||||
readmechanges.patch
|
||||
23
debian/rules
vendored
23
debian/rules
vendored
@@ -1,23 +0,0 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@ --buildsystem=meson
|
||||
|
||||
override_dh_auto_configure:
|
||||
dh_auto_configure -- \
|
||||
-Dgtk3=true \
|
||||
-Dinstall-plugin-metainfo=false \
|
||||
-Dwith-lua=lua53
|
||||
|
||||
override_dh_installchangelogs:
|
||||
install -m0755 -d \
|
||||
debian/zoitechat/usr/share/doc/zoitechat \
|
||||
debian/zoitechat-common/usr/share/doc/zoitechat-common \
|
||||
debian/zoitechat-perl/usr/share/doc/zoitechat-perl \
|
||||
debian/zoitechat-python3/usr/share/doc/zoitechat-python3 \
|
||||
debian/zoitechat-lua/usr/share/doc/zoitechat-lua \
|
||||
debian/zoitechat-plugins/usr/share/doc/zoitechat-plugins \
|
||||
debian/zoitechat-dev/usr/share/doc/zoitechat-dev
|
||||
dh_installchangelogs changelog.rst
|
||||
1
debian/source/format
vendored
1
debian/source/format
vendored
@@ -1 +0,0 @@
|
||||
3.0 (quilt)
|
||||
2
debian/source/lintian-overrides
vendored
2
debian/source/lintian-overrides
vendored
@@ -1,2 +0,0 @@
|
||||
# the upstream maintainer says that he doesn't have time to go fish out his GPG key for now
|
||||
orig-tarball-missing-upstream-signature
|
||||
4
debian/upstream/metadata
vendored
4
debian/upstream/metadata
vendored
@@ -1,4 +0,0 @@
|
||||
Bug-Database: https://github.com/zoitechat/zoitechat/issues
|
||||
Bug-Submit: https://github.com/zoitechat/zoitechat/issues/new
|
||||
Repository: https://github.com/zoitechat/zoitechat.git
|
||||
Repository-Browse: https://github.com/zoitechat/zoitechat
|
||||
72
debian/upstream/signing-key.asc
vendored
72
debian/upstream/signing-key.asc
vendored
@@ -1,72 +0,0 @@
|
||||
pub rsa4096 2014-02-13 [SC] [expires: 2024-02-08]
|
||||
108BF2212A051F4A72B18448B3C7CE210DE76DFC
|
||||
uid [ unknown] Patrick Griffis <tingping@tingping.se>
|
||||
uid [ unknown] TingPing <tingping@fedoraproject.org>
|
||||
sub rsa4096 2014-02-13 [E] [expires: 2024-02-08]
|
||||
C6CAF2A624B9C2ECBF83ACBF488A9319DABACE61
|
||||
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBFL9JHIBEADDKL+vc3MHctXCWxG0IcuLPm4i+WO9jH6MdF8p2bokaL5lilcJ
|
||||
o2i0RHImP83FpqCDj/hE7AeB3Ix3Oq3tIe6lpCz468OVbLivErX/yL8rYUhC+yba
|
||||
zlSJcBipTIezD3pZI/vpFyCIC8mSEI4PJGiLotioNJWQBStQuuPqMKo4cd6cRWx6
|
||||
WovQMKa85rQPvv+wYCseBqU6xBx1xSgpkjDJnAH7We5G6T8TYVM2gqXtii/JYyUC
|
||||
8E7Z2BBdSGkq1Dma1W6paOw7VOtLu6YbAH9v/VUVx0UdzwiyXHQ8qLKbxeXkex9d
|
||||
zoe+oy8wt3bvVHirxU42IlJJVLY4NcUYhr/xOq/YqT+3sWAqgdVM/WnzY3bPiMnQ
|
||||
XqQ3UZ0LKXXsF2+9u2qM6FTiAHIMLtH95IlOQo1qXmDl1HRJTNq3B41UduLDRUhP
|
||||
uGBaXbOtb6ql4nV3/BTxcHumisMh5ALhqXHRNOdn+mEjvT2HT6pp07ZfVhFwM4U0
|
||||
K78f52S+NppiS0cWtn9ibq+UmqZyvw9HMOHYt51lSUOueg/sOvsxrG1gjvcUMlJw
|
||||
nCgS3b+QUmZYo+pl/l13fiWPQpteVGZqKPMBBaQ4MCrwHgvikN8uppKDw8fFGs44
|
||||
LgbCsDoQA8wKxNzMEMTvuhFFgCiOxMCzR0XKxlcKr8CiHZjYwovJLFfLvwARAQAB
|
||||
tCVUaW5nUGluZyA8dGluZ3BpbmdAZmVkb3JhcHJvamVjdC5vcmc+iQJVBBMBAgA/
|
||||
AhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgBYhBBCL8iEqBR9KcrGESLPHziEN
|
||||
5238BQJcXuBtBQkSx717AAoJELPHziEN5238pfAP/331a2PASeS1toBRNbMVyXcB
|
||||
8zEb5Q4MFiTmgy7aOOo2MDzV4VBiYEUa93pmWrozWudqZl1u+Cm7XC0Kxv7b6HRC
|
||||
/2UBDKY0FUk7xALFQN+XycNDweflT9SlJ+4IcgfHX3/FcF0Obl0fnNfr8DXXqdsj
|
||||
hxWqlXRkyvRC8VuJJkkufi4CxUBQPSSG+dGgskACP6e210rogPq7LyUIMKkKqKSV
|
||||
69RUHDJZOsObNA6q1gTNcb8G/lIGaqbVTJ/d+6X/iDkgMrxRi++OyAUa7aXMHGBn
|
||||
5PnFjqPKBP7qrEEl1nA0LcXhr1hCEVVXGosuqR1WjbbyOTOq50oGvk8zbTy/1mOc
|
||||
UwkJYbaMv20wAYXx9QSbYoTDMx+DXrB3NCtBHeM7o9igoom8n9khoVmC1SPMOsQM
|
||||
1xLAk22RuyeDw3C3K3xoar4tcrwXKRmTyUxDBvkR7gtySiAKWFZOEPbeeRzprpG+
|
||||
Fg48Zh7buqh3Rdk5rmXOeATbyRq9+D0p6WhtO6UdEbi9yNCGo/eTTs2a9CcxfW6E
|
||||
7gGrX/wP6eKrP7KiT5NqcM01R961IxRpNLM0Uy15Jf5paP9VoJBtR0hO+94Vc9ZJ
|
||||
jS9yv5iJ62FIqSkqXZ7v+59XFZjm84pI7ywHuzjv9poBi3W19jM1eyYeryLj8362
|
||||
w2z5UgLfllZv1o2NTLx6tCZQYXRyaWNrIEdyaWZmaXMgPHRpbmdwaW5nQHRpbmdw
|
||||
aW5nLnNlPokCVAQTAQgAPgIbAwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgBYhBBCL
|
||||
8iEqBR9KcrGESLPHziEN5238BQJcXuBtBQkSx717AAoJELPHziEN5238J9cP/3SX
|
||||
UCZBFKf79LUfKVOxZYgAMKzL2CQdglNKrtE0aqMJwga6AUrSLEBWUqKHOFrcWYDi
|
||||
qKldpWGWv52lSlZL4YCIcgymOyYMbjQXkHUUaAH4tCzjT0yhFKKAAokJKBSinaO4
|
||||
cA6i3p3XdyUWbvjqnc8/2Mn31cyxiqj58EN5r7naS/5DaD+0q2dxhLW5/A+IKukk
|
||||
l12NhMpDbTkQ18brttBMCW5h5LPR7HDN5hVPCztj4BN5JqPeMyspemvGMT6G12vA
|
||||
5N+S83rAushIyu8Y88iKhPsNLbLgi3PCOZJDKeNlqdPoXJX7mau41U08/8NiORUP
|
||||
R4Dj9942c6rdHHXDyZ3puvsVK0YjwcmG5uSdG2tpyhNOBiyNQXgpPVHU5YKTob75
|
||||
vGs4uuxKYxNns/UULiC4fp/gGOIRh9f0veJG2DbMnEHXhnpQzIbsYSo1yeJ+8vFM
|
||||
FhbkHlylrkTUtOzQwFqybhgYGbfDvT4weMvCc9jEQXfIfI39/Tjx/JD0VVKu577X
|
||||
oZhtsb4rX2qEmiEnMrWAMM97LGyCNEi6DJipHse4Z5cc54/VswGF8Ze4VYF5hF8o
|
||||
DaIQfGXmuceMS3l4FXK0x6CYKpr7e0pY3zrsGIJ8Zwd11T9ubilAvK68Ix7j1puJ
|
||||
x8/ZD9NYP/NUNpriRVyFNiPlfKRqauDBnSKjiTiguQINBFL9JHIBEACx1FJWBK1R
|
||||
ORu+rHa52Uc0+Jkcr791A10Itwyv6fsA0RT6moob6s8Rvet8NQH6SZVRqiGy3d8g
|
||||
lxnedT32ZxHWRoLC8Pc6PnQhVXB3RSZoE9VVm9z+7nHOGXXCj0a0OsgyGSHLerE9
|
||||
7MvlMlkf2EsOTj6irZZDvJH4Eblbk1WzC4K5EC5r7FL/4sdHLbDWEUR3wemC7s0n
|
||||
9IusHwNBiTSSxpag/dq9+6eVyoA3opsqSU3wlSqfm3U/0G3MG4JkwDmS3nK4hmmq
|
||||
nCakdXZaqKZDGZjfaztTuO5RP73KfNHSNfsreOXY3ldX7Jy1qdHp/hBp6CFXhHul
|
||||
d4ZyWL+O6uMRcNQdfd/b8VBDe3z2LYw3AHnhjAnmwJqjfnhH3r7ibM2+HAtrj8J5
|
||||
Qwe/28QJOR3UfT1+tYW8I0bpnBesfzgm9Vp2t3IzkaGdXQOsB9KdcKRV4viiq4VP
|
||||
S1HdtvpLAxxrNxFguIlYAkLMJwwuaaK8X+K/kgAm3q5+txsxR/jDmDaFqqj0YnfT
|
||||
7s+czbSkkvXDG68sTVr1c2u71i8Q0XXSSrL30/j/+//CN9mP6oI6dYRDK5wCFaYw
|
||||
cQe5Td/biJDWXsXolOC0CHny1TTfNvaK+b0Yksas7aLypHOc5xfVJI1eovwkBpXA
|
||||
QQDFJoWlZudXXUvjPFsEyt9jd2LUl5fZcQARAQABiQI8BBgBAgAmAhsMFiEEEIvy
|
||||
ISoFH0pysYRIs8fOIQ3nbfwFAlxe4JAFCRLHvZ4ACgkQs8fOIQ3nbfwvsQ//QE7v
|
||||
neqZdFBq9PxIgu6S95PTchBI3BsCH6M3uv/hIpLgZwGzymHjCQlwYzjPYRAycphk
|
||||
VjsWP5T6hFPDfFhtAkdPuDd6LW+asUky1B8t802jGrVSmEA81s9jkjKBpdNR5JJr
|
||||
a8fAhUvZz9HW2SUwJyvVaO+q4GZep7VrNMKoCvC0K123V442wOYOLC3cldRgVRKY
|
||||
tXs4KHEjYaR0+zvX2zJvn/CIHWaxw2/qgArXIbTqwiqOWeXAkQWwcArZzkughGIb
|
||||
iv1DgkttTBLOZbiEUerwoMlGERlSTurhahoNInXD8vPPOrYMl7RSV8XUmgTKCJeN
|
||||
Xv/Jdg7ejfmPH9zABh8kh+eiL/yINwh2mmRK2aM+u8wghU7i0g72GSKBNgPHzw7X
|
||||
FDIN4diVX8MB93yeMOMzXGuyHzy3mQhj5LcqMKtTSOeqREAUTHoC0KvQ8kTeZ4N3
|
||||
czHndwBNEVxluR4ljQeqMdJHWoy6GxFGdrcAHqLZZyxbBQq2cYMwAdbscnQqIhhC
|
||||
luJgu4vA+7b8RQIZ725Ij+05J5vpHbPtEGACD09YChQL0OtLIZfS8RKP1lKLrmXC
|
||||
cnJzweMcISPi5PxPXlqXNFzwspK2PLHpmwZ1zSoARXB3BzzCYTE4Mw8UxsCqpbDG
|
||||
cBfbvGaxikGVOqMEoNo/umEhsyleb0gqXIoZJrc=
|
||||
=kssP
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
5
debian/watch
vendored
5
debian/watch
vendored
@@ -1,5 +0,0 @@
|
||||
version=4
|
||||
opts="searchmode=plain,\
|
||||
filenamemangle=s%.*/v?@ANY_VERSION@%@PACKAGE@-$1.tar.xz%" \
|
||||
https://api.github.com/repos/zoitechat/zoitechat/releases?per_page=50 \
|
||||
https://api.github.com/repos/[^/]+/[^/]+/tarball/v?@ANY_VERSION@
|
||||
7
debian/zoitechat-common.install
vendored
7
debian/zoitechat-common.install
vendored
@@ -1,7 +0,0 @@
|
||||
usr/share/applications/net.zoite.Zoitechat.desktop
|
||||
usr/share/dbus-1/services/org.zoitechat.service.service
|
||||
usr/share/icons/hicolor/48x48/apps/net.zoite.Zoitechat.png
|
||||
usr/share/icons/hicolor/scalable/apps/net.zoite.Zoitechat.svg
|
||||
usr/share/locale/*/LC_MESSAGES/zoitechat.mo
|
||||
usr/share/metainfo/net.zoite.Zoitechat.appdata.xml
|
||||
usr/share/mime/packages/net.zoite.Zoitechat.mime.xml
|
||||
2
debian/zoitechat-dev.install
vendored
2
debian/zoitechat-dev.install
vendored
@@ -1,2 +0,0 @@
|
||||
usr/include/zoitechat-plugin.h
|
||||
usr/lib/*/pkgconfig/zoitechat-plugin.pc
|
||||
1
debian/zoitechat-lua.install
vendored
1
debian/zoitechat-lua.install
vendored
@@ -1 +0,0 @@
|
||||
usr/lib/*/zoitechat/plugins/lua.so
|
||||
1
debian/zoitechat-perl.install
vendored
1
debian/zoitechat-perl.install
vendored
@@ -1 +0,0 @@
|
||||
usr/lib/*/zoitechat/plugins/perl.so
|
||||
3
debian/zoitechat-plugins.install
vendored
3
debian/zoitechat-plugins.install
vendored
@@ -1,3 +0,0 @@
|
||||
usr/lib/*/zoitechat/plugins/checksum.so
|
||||
usr/lib/*/zoitechat/plugins/fishlim.so
|
||||
usr/lib/*/zoitechat/plugins/sysinfo.so
|
||||
4
debian/zoitechat-python3.install
vendored
4
debian/zoitechat-python3.install
vendored
@@ -1,4 +0,0 @@
|
||||
usr/lib/*/zoitechat/plugins/python.so
|
||||
usr/lib/*/zoitechat/python/_zoitechat.py
|
||||
usr/lib/*/zoitechat/python/xchat.py
|
||||
usr/lib/*/zoitechat/python/zoitechat.py
|
||||
1
debian/zoitechat.debhelper.log
vendored
1
debian/zoitechat.debhelper.log
vendored
@@ -1 +0,0 @@
|
||||
dh_installchangelogs
|
||||
2
debian/zoitechat.install
vendored
2
debian/zoitechat.install
vendored
@@ -1,2 +0,0 @@
|
||||
usr/bin/zoitechat
|
||||
usr/share/man/man1/zoitechat.1
|
||||
6
debian/zoitechat.lintian-overrides
vendored
6
debian/zoitechat.lintian-overrides
vendored
@@ -1,6 +0,0 @@
|
||||
# intentional typo as example for autoreplace function
|
||||
zoitechat: spelling-error-in-binary usr/bin/zoitechat teh the
|
||||
# upstream will not correct misspelled variable names
|
||||
zoitechat: spelling-error-in-binary usr/bin/zoitechat hilight highlight
|
||||
# fixing this spelling error would break scripting/theming
|
||||
zoitechat: spelling-error-in-binary usr/bin/zoitechat Conection Connection
|
||||
@@ -1,24 +1,31 @@
|
||||
{
|
||||
"app-id": "net.zoite.Zoitechat",
|
||||
"branch": "stable",
|
||||
"branch": "master",
|
||||
"runtime": "org.gnome.Platform",
|
||||
"runtime-version": "49",
|
||||
"sdk": "org.gnome.Sdk",
|
||||
"command": "zoitechat",
|
||||
"finish-args": [
|
||||
"--share=ipc",
|
||||
"--socket=wayland",
|
||||
"--socket=x11",
|
||||
"--share=network",
|
||||
"--socket=pulseaudio",
|
||||
"--filesystem=xdg-download",
|
||||
"--filesystem=xdg-data/themes:ro",
|
||||
"--filesystem=xdg-data/icons:ro",
|
||||
"--filesystem=~/.themes:ro",
|
||||
"--filesystem=~/.icons:ro",
|
||||
"--filesystem=xdg-run/tray-icon:create",
|
||||
|
||||
"--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": "20.08",
|
||||
"version": "49",
|
||||
"directory": "extensions",
|
||||
"add-ld-path": "lib",
|
||||
"merge-dirs": "lib/zoitechat/plugins",
|
||||
@@ -29,7 +36,7 @@
|
||||
},
|
||||
"modules": [
|
||||
"shared-modules/dbus-glib/dbus-glib.json",
|
||||
"shared-modules/lua5.3/lua-5.3.5.json",
|
||||
"shared-modules/lua5.4/lua-5.4.json",
|
||||
"shared-modules/libcanberra/libcanberra.json",
|
||||
"shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json",
|
||||
"python3-cffi.json",
|
||||
@@ -40,7 +47,7 @@
|
||||
{
|
||||
"type": "git",
|
||||
"url": "https://github.com/pavouk/lgi.git",
|
||||
"commit": "95418635aa8151a516d43166227ea2b9d4c4403f"
|
||||
"commit": "c9b8e4473c6421f2a215d8c06c0d94b86eb0b26a"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -48,8 +55,6 @@
|
||||
"name": "zoitechat",
|
||||
"buildsystem": "meson",
|
||||
"config-opts": [
|
||||
"--buildtype=release",
|
||||
"-Dgtk3=true",
|
||||
"-Ddbus-service-use-appid=true",
|
||||
"-Dwith-perl=false",
|
||||
"-Dwith-python=false",
|
||||
|
||||
Submodule flatpak/shared-modules updated: 137a4f488c...55a86b3da4
90
meson.build
90
meson.build
@@ -1,5 +1,5 @@
|
||||
project('zoitechat', 'c',
|
||||
version: '2.18.0-pre1',
|
||||
version: '2.18.0~pre2',
|
||||
meson_version: '>= 0.55.0',
|
||||
default_options: [
|
||||
'c_std=c17',
|
||||
@@ -10,7 +10,6 @@ project('zoitechat', 'c',
|
||||
|
||||
i18n = import('i18n')
|
||||
gnome = import('gnome')
|
||||
fs = import('fs')
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
|
||||
@@ -19,14 +18,7 @@ libgmodule_dep = dependency('gmodule-2.0')
|
||||
|
||||
libcanberra_dep = dependency('libcanberra', version: '>= 0.22',
|
||||
required: get_option('libcanberra'))
|
||||
dbus_required = get_option('dbus')
|
||||
if host_machine.system() == 'darwin'
|
||||
if dbus_required.enabled()
|
||||
warning('dbus-glib is not available on macOS; disabling DBus support')
|
||||
endif
|
||||
dbus_required = false
|
||||
endif
|
||||
dbus_glib_dep = dependency('dbus-glib-1', required: dbus_required)
|
||||
dbus_glib_dep = dependency('dbus-glib-1', required: get_option('dbus'))
|
||||
|
||||
global_deps = []
|
||||
if cc.get_id() == 'msvc'
|
||||
@@ -36,82 +28,6 @@ else
|
||||
required: get_option('tls'))
|
||||
endif
|
||||
|
||||
darwin_arch_sanity_check = get_option('darwin-arch-sanity-check')
|
||||
if host_machine.system() == 'darwin' and darwin_arch_sanity_check
|
||||
darwin_arch_sanity_check_env = run_command('sh', '-c', 'printf %s "$ZOITECHAT_DARWIN_ARCH_SANITY_CHECK"', check: false).stdout().strip().to_lower()
|
||||
if ['0', 'false', 'no', 'off'].contains(darwin_arch_sanity_check_env)
|
||||
darwin_arch_sanity_check = false
|
||||
endif
|
||||
endif
|
||||
|
||||
if host_machine.system() == 'darwin' and darwin_arch_sanity_check
|
||||
cflags_env = run_command('sh', '-c', 'printf %s "$CFLAGS"', check: false).stdout().strip()
|
||||
ldflags_env = run_command('sh', '-c', 'printf %s "$LDFLAGS"', check: false).stdout().strip()
|
||||
c_args_opt = ' ' + ' '.join(get_option('c_args')) + ' '
|
||||
c_link_args_opt = ' ' + ' '.join(get_option('c_link_args')) + ' '
|
||||
all_cflags = cflags_env + ' ' + c_args_opt
|
||||
all_ldflags = ldflags_env + ' ' + c_link_args_opt
|
||||
pkgconfig_glib = run_command('pkg-config', '--libs-only-L', 'glib-2.0', check: false)
|
||||
|
||||
targeting_x86_64 = all_cflags.contains('-arch x86_64') or all_ldflags.contains('-arch x86_64')
|
||||
targeting_arm64 = all_cflags.contains('-arch arm64') or all_ldflags.contains('-arch arm64')
|
||||
targeting_universal = targeting_x86_64 and targeting_arm64
|
||||
using_arm_homebrew = pkgconfig_glib.returncode() == 0 and pkgconfig_glib.stdout().contains('/opt/homebrew/')
|
||||
|
||||
if targeting_x86_64 and not targeting_universal and using_arm_homebrew
|
||||
error('Detected x86_64 build flags (-arch x86_64) while pkg-config resolves glib from /opt/homebrew (arm64). ' +
|
||||
'Use arm64 build flags with /opt/homebrew, use a universal build (-arch arm64 -arch x86_64) with universal dependencies, or run an x86_64/Rosetta environment with an x86_64 dependency stack (typically /usr/local). ' +
|
||||
'To bypass this safety check, configure with -Ddarwin-arch-sanity-check=false or set ZOITECHAT_DARWIN_ARCH_SANITY_CHECK=0.')
|
||||
endif
|
||||
|
||||
if targeting_x86_64
|
||||
# When building x86_64-only or universal binaries on Apple Silicon,
|
||||
# pkg-config can still resolve arm64-only Homebrew libraries.
|
||||
# Detect this at configure time and fail fast with a clear message.
|
||||
macos_link_deps = [
|
||||
['gio-2.0', 'libgio-2.0.dylib'],
|
||||
['gobject-2.0', 'libgobject-2.0.dylib'],
|
||||
['glib-2.0', 'libglib-2.0.dylib'],
|
||||
['gmodule-2.0', 'libgmodule-2.0.dylib'],
|
||||
['openssl', 'libssl.dylib'],
|
||||
['openssl', 'libcrypto.dylib'],
|
||||
['libintl', 'libintl.dylib'],
|
||||
]
|
||||
|
||||
foreach dep_spec : macos_link_deps
|
||||
dep_pkg = dep_spec[0]
|
||||
dep_lib = dep_spec[1]
|
||||
dep_libdir_cmd = run_command('pkg-config', '--libs-only-L', dep_pkg, check: false)
|
||||
if dep_libdir_cmd.returncode() != 0
|
||||
continue
|
||||
endif
|
||||
|
||||
foreach dep_libdir_arg : dep_libdir_cmd.stdout().strip().split()
|
||||
if not dep_libdir_arg.startswith('-L')
|
||||
continue
|
||||
endif
|
||||
|
||||
dep_lib_path = join_paths(dep_libdir_arg.substring(2), dep_lib)
|
||||
if not fs.exists(dep_lib_path)
|
||||
continue
|
||||
endif
|
||||
|
||||
dep_archs = run_command('lipo', '-archs', dep_lib_path, check: false)
|
||||
if dep_archs.returncode() != 0
|
||||
continue
|
||||
endif
|
||||
|
||||
if not dep_archs.stdout().contains('x86_64')
|
||||
error('Detected x86_64 build flags, but dependency ' + dep_lib_path +
|
||||
' does not contain x86_64 architecture (archs: ' + dep_archs.stdout().strip() + '). ' +
|
||||
'Use dependencies that include x86_64 (or universal) slices, or build only arm64. ' +
|
||||
'To bypass this safety check, configure with -Ddarwin-arch-sanity-check=false or set ZOITECHAT_DARWIN_ARCH_SANITY_CHECK=0.')
|
||||
endif
|
||||
endforeach
|
||||
endforeach
|
||||
endif
|
||||
endif
|
||||
|
||||
config_h = configuration_data()
|
||||
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
|
||||
config_h.set_quoted('PACKAGE_NAME', meson.project_name())
|
||||
@@ -126,6 +42,7 @@ config_h.set('USE_OPENSSL', libssl_dep.found())
|
||||
config_h.set('USE_LIBCANBERRA', libcanberra_dep.found())
|
||||
config_h.set('USE_DBUS', dbus_glib_dep.found())
|
||||
config_h.set('USE_PLUGIN', get_option('plugin'))
|
||||
config_h.set('USE_GTK_FRONTEND', get_option('gtk-frontend'))
|
||||
|
||||
config_h.set('G_DISABLE_SINGLE_INCLUDES', true)
|
||||
config_h.set('GTK_DISABLE_DEPRECATED', true)
|
||||
@@ -261,6 +178,7 @@ if meson.version().version_compare('>= 0.55.0')
|
||||
}, section: 'Directories')
|
||||
|
||||
summary({
|
||||
'GTK Frontend': get_option('gtk-frontend') ? 'enabled (GTK+ 3.22+)' : 'disabled',
|
||||
'TLS (openssl)': libssl_dep.found(),
|
||||
'Plugin Support': get_option('plugin'),
|
||||
'DBus Support': dbus_glib_dep.found(),
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
option('gtk-frontend', type: 'boolean',
|
||||
description: 'Main graphical interface'
|
||||
)
|
||||
option('gtk3', type: 'boolean', value: false,
|
||||
description: 'Build GTK frontend against GTK 3'
|
||||
)
|
||||
option('text-frontend', type: 'boolean', value: false,
|
||||
description: 'Text interface (not generally useful)'
|
||||
)
|
||||
@@ -22,8 +19,8 @@ option('dbus', type: 'feature', value: 'auto',
|
||||
option('libcanberra', type: 'feature', value: 'auto',
|
||||
description: 'Support for sound alerts, Unix only'
|
||||
)
|
||||
option('darwin-arch-sanity-check', type: 'boolean', value: true,
|
||||
description: 'Fail fast when macOS build flags and Homebrew dependency architectures are mixed'
|
||||
option('appindicator', type: 'feature', value: 'auto',
|
||||
description: 'Use Ayatana/AppIndicator-based tray backend for GTK frontend (non-Windows only)'
|
||||
)
|
||||
|
||||
# Install options
|
||||
|
||||
@@ -3,24 +3,16 @@
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
import shutil
|
||||
|
||||
prefix = os.environ.get('MESON_INSTALL_PREFIX', '/usr/local')
|
||||
datadir = os.path.join(prefix, 'share')
|
||||
|
||||
# Packaging tools define DESTDIR and this isn't needed for them
|
||||
if 'DESTDIR' not in os.environ:
|
||||
def run_if_available(command, *args):
|
||||
if shutil.which(command) is None:
|
||||
print(f'Skipping {command}: command not found')
|
||||
return
|
||||
|
||||
subprocess.call([command, *args])
|
||||
|
||||
print('Updating icon cache...')
|
||||
run_if_available('gtk-update-icon-cache', '-qtf',
|
||||
os.path.join(datadir, 'icons', 'hicolor'))
|
||||
subprocess.call(['gtk-update-icon-cache', '-qtf',
|
||||
os.path.join(datadir, 'icons', 'hicolor')])
|
||||
|
||||
print('Updating desktop database...')
|
||||
run_if_available('update-desktop-database', '-q',
|
||||
os.path.join(datadir, 'applications'))
|
||||
subprocess.call(['update-desktop-database', '-q',
|
||||
os.path.join(datadir, 'applications')])
|
||||
|
||||
207
osx/DEBUGGING.md
207
osx/DEBUGGING.md
@@ -1,207 +0,0 @@
|
||||
# Debugging ZoiteChat on macOS (Xcode + CLI)
|
||||
|
||||
If the unsigned `.app` launches but does nothing (or immediately exits), use the steps below to get actionable logs and a debugger session.
|
||||
|
||||
## 1) Build with debug symbols
|
||||
|
||||
ZoiteChat uses Meson. Build a debug configuration first so LLDB can show useful backtraces.
|
||||
|
||||
```bash
|
||||
meson setup build-macos-debug --buildtype=debug
|
||||
meson compile -C build-macos-debug
|
||||
```
|
||||
|
||||
This project default is `debugoptimized`, but a full `debug` build is better while diagnosing crashes/startup issues.
|
||||
|
||||
## 2) Bundle the app and verify deployment target
|
||||
|
||||
Use the existing bundle script:
|
||||
|
||||
```bash
|
||||
cd osx
|
||||
./makebundle.sh
|
||||
```
|
||||
|
||||
The generated `Info.plist` should keep:
|
||||
|
||||
- `LSMinimumSystemVersion = 11.0`
|
||||
|
||||
That is the project’s explicit minimum runtime target for macOS 11+.
|
||||
|
||||
## 3) Sanity-check the Mach-O binary in the bundle
|
||||
|
||||
Confirm architecture(s), deployment target, and linked libraries:
|
||||
|
||||
```bash
|
||||
file ZoiteChat.app/Contents/MacOS/ZoiteChat-bin
|
||||
otool -l ZoiteChat.app/Contents/MacOS/ZoiteChat-bin | rg -n "LC_BUILD_VERSION|minos|sdk"
|
||||
otool -L ZoiteChat.app/Contents/MacOS/ZoiteChat-bin
|
||||
```
|
||||
|
||||
For widest compatibility, build universal (`arm64` + `x86_64`) or build separately per arch and test each on matching hosts.
|
||||
|
||||
## 4) Ad-hoc sign for local debugging
|
||||
|
||||
Unsigned GUI binaries can fail in unhelpful ways because of hardened runtime/quarantine/Gatekeeper interactions. For local debugging, ad-hoc sign the app:
|
||||
|
||||
```bash
|
||||
xattr -dr com.apple.quarantine ZoiteChat.app
|
||||
codesign --force --deep --sign - ZoiteChat.app
|
||||
codesign --verify --deep --strict --verbose=2 ZoiteChat.app
|
||||
```
|
||||
|
||||
## 5) Launch from Terminal first (before Xcode)
|
||||
|
||||
Direct launch exposes stdout/stderr and validates the launcher environment:
|
||||
|
||||
```bash
|
||||
./ZoiteChat.app/Contents/MacOS/ZoiteChat
|
||||
```
|
||||
|
||||
The launcher script sets GTK/Pango/GDK environment variables. If direct launch fails, capture that output first.
|
||||
|
||||
## 6) Debug with LLDB (reliable baseline)
|
||||
|
||||
Debug the real executable inside the bundle:
|
||||
|
||||
```bash
|
||||
lldb -- ZoiteChat.app/Contents/MacOS/ZoiteChat-bin
|
||||
(lldb) run
|
||||
(lldb) bt
|
||||
```
|
||||
|
||||
If it exits instantly, set breakpoints on startup entry points (for example `main`) and re-run.
|
||||
|
||||
## 7) Debug with Xcode (if you prefer GUI)
|
||||
|
||||
Xcode works best when opening the executable directly instead of importing build scripts.
|
||||
|
||||
1. **File → Open…** and select `ZoiteChat.app/Contents/MacOS/ZoiteChat-bin`.
|
||||
2. In **Product → Scheme → Edit Scheme…**
|
||||
- Executable: `ZoiteChat-bin`
|
||||
- Working directory: repo root (or `osx/`)
|
||||
- Add environment variables equivalent to the launcher if needed.
|
||||
3. Run under debugger.
|
||||
|
||||
If Xcode “runs” but no UI appears, compare its environment to `osx/launcher.sh` and copy missing GTK-related variables into the scheme.
|
||||
|
||||
## 8) Capture macOS crash diagnostics
|
||||
|
||||
Even if no dialog appears, macOS usually logs termination reasons:
|
||||
|
||||
```bash
|
||||
log stream --style compact --predicate 'process == "ZoiteChat-bin"'
|
||||
```
|
||||
|
||||
Also check:
|
||||
|
||||
- `~/Library/Logs/DiagnosticReports/`
|
||||
|
||||
## 9) Frequent root causes for “silent” startup failures
|
||||
|
||||
- Missing GTK runtime libraries in app bundle (`otool -L` shows unresolved paths).
|
||||
- Incorrect `@rpath`/install names after bundling.
|
||||
- Running under Rosetta mismatch (x86_64 binary with arm64-only deps or vice versa).
|
||||
- Quarantine/signature issues on unsigned artifacts.
|
||||
- Missing `GDK_PIXBUF_MODULE_FILE`, `GTK_IM_MODULE_FILE`, or schema paths.
|
||||
|
||||
|
||||
### "Bad CPU type in executable"
|
||||
|
||||
This means the bundled `ZoiteChat-bin` architecture does not match the Mac you are running on.
|
||||
|
||||
- Intel Mac requires `x86_64`
|
||||
- Apple Silicon requires `arm64` (or Rosetta + `x86_64`)
|
||||
|
||||
Check the binary quickly:
|
||||
|
||||
```bash
|
||||
file ZoiteChat.app/Contents/MacOS/ZoiteChat-bin
|
||||
```
|
||||
|
||||
Build for Intel explicitly when needed:
|
||||
|
||||
```bash
|
||||
export CFLAGS="-arch x86_64"
|
||||
export LDFLAGS="-arch x86_64"
|
||||
meson setup build-macos-intel --buildtype=debug
|
||||
meson compile -C build-macos-intel
|
||||
```
|
||||
|
||||
If your dependency stack supports it, build universal (`arm64` + `x86_64`) and verify with `lipo -info`.
|
||||
|
||||
### Linker says `found architecture 'arm64', required architecture 'x86_64'`
|
||||
|
||||
If you see warnings like this during `meson compile`:
|
||||
|
||||
```text
|
||||
ld: warning: ignoring file '/opt/homebrew/.../libgio-2.0.dylib': found architecture 'arm64', required architecture 'x86_64'
|
||||
Undefined symbols for architecture x86_64: ...
|
||||
```
|
||||
|
||||
your compile target architecture and dependency architecture do not match.
|
||||
|
||||
On Apple Silicon, this usually means you are trying to build `x86_64` while linking against ARM Homebrew libraries from `/opt/homebrew`.
|
||||
|
||||
Quick checks:
|
||||
|
||||
```bash
|
||||
echo "$CFLAGS" "$LDFLAGS"
|
||||
pkg-config --libs glib-2.0
|
||||
lipo -info "$(brew --prefix glib)/lib/libglib-2.0.dylib"
|
||||
```
|
||||
|
||||
Use one of these consistent setups:
|
||||
|
||||
- Native Apple Silicon build (`arm64`) with `/opt/homebrew` dependencies.
|
||||
- Intel build (`x86_64`) with an x86_64 dependency stack (typically Homebrew under `/usr/local` run under Rosetta).
|
||||
|
||||
Example x86_64 setup on Apple Silicon:
|
||||
|
||||
```bash
|
||||
# Open a Rosetta shell first (or prefix commands with `arch -x86_64`)
|
||||
arch -x86_64 /bin/bash -lc '
|
||||
export PATH="/usr/local/bin:$PATH"
|
||||
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig"
|
||||
export CFLAGS="-arch x86_64"
|
||||
export LDFLAGS="-arch x86_64"
|
||||
meson setup build-macos-x86_64 --prefix="/usr/local"
|
||||
meson compile -C build-macos-x86_64
|
||||
'
|
||||
```
|
||||
|
||||
If you do not specifically need Intel compatibility, remove any forced `-arch x86_64` flags and build native `arm64`.
|
||||
|
||||
Example with this repo's scripts:
|
||||
|
||||
```bash
|
||||
PREFIX="$(brew --prefix)"
|
||||
|
||||
CFLAGS="-arch arm64" LDFLAGS="-arch arm64" meson setup build-macos-arm64 --prefix="$PREFIX"
|
||||
CFLAGS="-arch x86_64" LDFLAGS="-arch x86_64" meson setup build-macos-x86_64 --prefix="$PREFIX"
|
||||
|
||||
CFLAGS="-arch arm64" LDFLAGS="-arch arm64" meson compile -C build-macos-arm64
|
||||
CFLAGS="-arch x86_64" LDFLAGS="-arch x86_64" meson compile -C build-macos-x86_64
|
||||
|
||||
sudo meson install -C build-macos-arm64
|
||||
|
||||
cd osx
|
||||
UNIVERSAL=1 \
|
||||
UNIVERSAL_BINARIES="../build-macos-arm64/src/fe-gtk/zoitechat ../build-macos-x86_64/src/fe-gtk/zoitechat" \
|
||||
./makebundle.sh
|
||||
```
|
||||
|
||||
## 10) Recommended compatibility settings for macOS 11+
|
||||
|
||||
- Keep `LSMinimumSystemVersion` at `11.0`.
|
||||
- Build on the oldest macOS SDK/toolchain that still supports your dependencies, or explicitly set:
|
||||
|
||||
```bash
|
||||
export MACOSX_DEPLOYMENT_TARGET=11.0
|
||||
```
|
||||
|
||||
- Verify with `otool -l` that `minos` is actually `11.0` in the final executable.
|
||||
|
||||
---
|
||||
|
||||
If you want, we can add an Xcode scheme file to this repo that mirrors `osx/launcher.sh` so “Run” in Xcode behaves exactly like launching the app bundle from Finder/Terminal.
|
||||
@@ -11,7 +11,7 @@
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>zoitechat.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>net.zoite.Zoitechat</string>
|
||||
<string>org.zoitechat</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
@@ -41,6 +41,6 @@
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string></string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>11.0</string>
|
||||
<string>10.4</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/sh
|
||||
|
||||
if test "x$GTK_DEBUG_LAUNCHER" != x; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
if test "x$GTK_DEBUG_GDB" != x; then
|
||||
EXEC_PREFIX=(gdb --args)
|
||||
EXEC="gdb --args"
|
||||
else
|
||||
EXEC_PREFIX=()
|
||||
EXEC=exec
|
||||
fi
|
||||
|
||||
name=`basename "$0"`
|
||||
@@ -23,34 +23,25 @@ bundle_data="$bundle_res"/share
|
||||
bundle_etc="$bundle_res"/etc
|
||||
|
||||
export PREFIX="$bundle_res"
|
||||
|
||||
# launcher-script: runtime environment for bundled GTK3 on macOS.
|
||||
# Expected package prefixes when building the app bundle:
|
||||
# Homebrew: /opt/homebrew (Apple Silicon) or /usr/local (Intel)
|
||||
# MacPorts: /opt/local
|
||||
# Required libraries include GTK3, Pango, GDK-Pixbuf and enchant.
|
||||
|
||||
# Keep DYLD path hacks to a minimum; install_name_tool should resolve most libs.
|
||||
if test -n "${DYLD_LIBRARY_PATH:-}"; then
|
||||
export DYLD_LIBRARY_PATH="$bundle_lib:$DYLD_LIBRARY_PATH"
|
||||
fi
|
||||
|
||||
export DYLD_LIBRARY_PATH="$bundle_lib"
|
||||
export XDG_CONFIG_DIRS="$bundle_etc"/xdg
|
||||
export XDG_DATA_DIRS="$bundle_data"
|
||||
export GTK_DATA_PREFIX="$bundle_res"
|
||||
export GTK_EXE_PREFIX="$bundle_res"
|
||||
export GTK_PATH="$bundle_res"
|
||||
|
||||
export GTK_THEME="Mac"
|
||||
export GTK_KEY_THEME="Mac"
|
||||
export GTK_IM_MODULE_FILE="$bundle_etc/gtk-3.0/gtk.immodules"
|
||||
export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-3.0/gdk-pixbuf.loaders"
|
||||
export PANGO_LIBDIR="$bundle_lib"
|
||||
export PANGO_SYSCONFDIR="$bundle_etc"
|
||||
export GSETTINGS_SCHEMA_DIR="$bundle_data/glib-2.0/schemas"
|
||||
|
||||
export OPENSSL_CONF="/System/Library/OpenSSL/openssl.cnf"
|
||||
|
||||
export ZOITECHAT_LIBDIR="$bundle_lib/zoitechat/plugins"
|
||||
|
||||
APP=zoitechat
|
||||
APP=name
|
||||
I18NDIR="$bundle_data/locale"
|
||||
# Set the locale-related variables appropriately:
|
||||
unset LANG LC_MESSAGES LC_MONETARY LC_COLLATE
|
||||
@@ -58,7 +49,7 @@ unset LANG LC_MESSAGES LC_MONETARY LC_COLLATE
|
||||
# Has a language ordering been set?
|
||||
# If so, set LC_MESSAGES and LANG accordingly; otherwise skip it.
|
||||
# First step uses sed to clean off the quotes and commas, to change - to _, and change the names for the chinese scripts from "Hans" to CN and "Hant" to TW.
|
||||
APPLELANGUAGES=`defaults read .GlobalPreferences AppleLanguages 2>/dev/null | sed -En -e 's/\-/_/' -e 's/Hant/TW/' -e 's/Hans/CN/' -e 's/[[:space:]]*\"?([[:alnum:]_]+)\"?,?/\1/p' `
|
||||
APPLELANGUAGES=`defaults read .GlobalPreferences AppleLanguages | sed -En -e 's/\-/_/' -e 's/Hant/TW/' -e 's/Hans/CN/' -e 's/[[:space:]]*\"?([[:alnum:]_]+)\"?,?/\1/p' `
|
||||
if test "$APPLELANGUAGES"; then
|
||||
# A language ordering exists.
|
||||
# Test, item per item, to see whether there is an corresponding locale.
|
||||
@@ -89,26 +80,26 @@ fi
|
||||
unset APPLELANGUAGES L
|
||||
|
||||
# If we didn't get a language from the language list, try the Collation preference, in case it's the only setting that exists.
|
||||
APPLECOLLATION=`defaults read .GlobalPreferences AppleCollationOrder 2>/dev/null || true`
|
||||
if test -z "${LANG:-}" -a -n "${APPLECOLLATION:-}"; then
|
||||
APPLECOLLATION=`defaults read .GlobalPreferences AppleCollationOrder`
|
||||
if test -z ${LANG} -a -n $APPLECOLLATION; then
|
||||
if test -f "$I18NDIR/${APPLECOLLATION:0:2}/LC_MESSAGES/$APP.mo"; then
|
||||
export LANG=${APPLECOLLATION:0:2}
|
||||
fi
|
||||
fi
|
||||
if test -n "${APPLECOLLATION:-}"; then
|
||||
if test ! -z $APPLECOLLATION; then
|
||||
export LC_COLLATE=$APPLECOLLATION
|
||||
fi
|
||||
unset APPLECOLLATION
|
||||
|
||||
# Continue by attempting to find the Locale preference.
|
||||
APPLELOCALE=`defaults read .GlobalPreferences AppleLocale 2>/dev/null || true`
|
||||
APPLELOCALE=`defaults read .GlobalPreferences AppleLocale`
|
||||
|
||||
if test -f "$I18NDIR/${APPLELOCALE:0:5}/LC_MESSAGES/$APP.mo"; then
|
||||
if test -z "${LANG:-}"; then
|
||||
if test -z $LANG; then
|
||||
export LANG="${APPLELOCALE:0:5}"
|
||||
fi
|
||||
|
||||
elif test -z "${LANG:-}" -a -f "$I18NDIR/${APPLELOCALE:0:2}/LC_MESSAGES/$APP.mo"; then
|
||||
elif test -z $LANG -a -f "$I18NDIR/${APPLELOCALE:0:2}/LC_MESSAGES/$APP.mo"; then
|
||||
export LANG="${APPLELOCALE:0:2}"
|
||||
fi
|
||||
|
||||
@@ -116,20 +107,20 @@ fi
|
||||
#5-character locale to avoid the "Locale not supported by C library"
|
||||
#warning from Gtk -- even though Gtk will translate with a
|
||||
#two-character code.
|
||||
if test -n "${LANG:-}"; then
|
||||
if test -n $LANG; then
|
||||
#If the language code matches the applelocale, then that's the message
|
||||
#locale; otherwise, if it's longer than two characters, then it's
|
||||
#probably a good message locale and we'll go with it.
|
||||
if test "$LANG" = "${APPLELOCALE:0:5}" -o "$LANG" != "${LANG:0:2}"; then
|
||||
if test $LANG == ${APPLELOCALE:0:5} -o $LANG != ${LANG:0:2}; then
|
||||
export LC_MESSAGES=$LANG
|
||||
#Next try if the Applelocale is longer than 2 chars and the language
|
||||
#bit matches $LANG
|
||||
elif test "$LANG" = "${APPLELOCALE:0:2}" -a "$APPLELOCALE" \> "${APPLELOCALE:0:2}"; then
|
||||
elif test $LANG == ${APPLELOCALE:0:2} -a $APPLELOCALE > ${APPLELOCALE:0:2}; then
|
||||
export LC_MESSAGES=${APPLELOCALE:0:5}
|
||||
#Fail. Get a list of the locales in $PREFIX/share/locale that match
|
||||
#our two letter language code and pick the first one, special casing
|
||||
#english to set en_US
|
||||
elif test "$LANG" = "en"; then
|
||||
elif test $LANG == "en"; then
|
||||
export LC_MESSAGES="en_US"
|
||||
else
|
||||
LOC=`find $PREFIX/share/locale -name $LANG???`
|
||||
@@ -181,18 +172,4 @@ if /bin/expr "x$1" : '^x-psn_' > /dev/null; then
|
||||
shift 1
|
||||
fi
|
||||
|
||||
BIN_PATH="$bundle_contents/MacOS/$name-bin"
|
||||
if test ${#EXEC_PREFIX[@]} -gt 0; then
|
||||
"${EXEC_PREFIX[@]}" "$BIN_PATH" "$@" $EXTRA_ARGS
|
||||
else
|
||||
"$BIN_PATH" "$@" $EXTRA_ARGS
|
||||
fi
|
||||
status=$?
|
||||
if test "$status" -eq 126; then
|
||||
echo "error: $BIN_PATH could not execute on this Mac (possible architecture mismatch)." >&2
|
||||
if command -v file >/dev/null 2>&1; then
|
||||
file "$BIN_PATH" >&2 || true
|
||||
fi
|
||||
echo "hint: build ZoiteChat for this architecture (x86_64 on Intel, arm64 on Apple Silicon) or as a universal binary." >&2
|
||||
fi
|
||||
exit "$status"
|
||||
$EXEC "$bundle_contents/MacOS/$name-bin" "$@" $EXTRA_ARGS
|
||||
|
||||
@@ -1,210 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
rm -rf ZoiteChat.app
|
||||
rm -f *.app.zip
|
||||
|
||||
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
BUNDLE_DEF="zoitechat.bundle"
|
||||
APP_NAME="ZoiteChat.app"
|
||||
|
||||
HOST_ARCH="$(uname -m 2>/dev/null || echo unknown)"
|
||||
if [ -z "${TARGET_ARCHES+x}" ]; then
|
||||
TARGET_ARCHES="$HOST_ARCH"
|
||||
fi
|
||||
UNIVERSAL_BINARIES="${UNIVERSAL_BINARIES:-}"
|
||||
UNIVERSAL_BUILD_DIRS="${UNIVERSAL_BUILD_DIRS:-../build-macos-arm64 ../build-macos-x86_64}"
|
||||
|
||||
if [ "${UNIVERSAL:-0}" = "1" ]; then
|
||||
TARGET_ARCHES="arm64 x86_64"
|
||||
fi
|
||||
|
||||
# Expected prefixes for macOS GTK dependencies:
|
||||
# - Homebrew: /opt/homebrew (Apple Silicon) or /usr/local (Intel)
|
||||
# - MacPorts: /opt/local
|
||||
# Required runtime stack includes GTK3, Pango, GDK-Pixbuf and enchant.
|
||||
|
||||
if command -v gtk-mac-bundler >/dev/null 2>&1; then
|
||||
BUNDLER_CMD="gtk-mac-bundler"
|
||||
elif command -v python3 >/dev/null 2>&1 && python3 -c 'import gtk_mac_bundler' >/dev/null 2>&1; then
|
||||
BUNDLER_CMD="python3 -m gtk_mac_bundler"
|
||||
else
|
||||
cat >&2 <<'MSG'
|
||||
error: gtk-mac-bundler not found.
|
||||
Install one of the following before running osx/makebundle.sh:
|
||||
- executable: gtk-mac-bundler
|
||||
- python module: gtk_mac_bundler (invoked via: python3 -m gtk_mac_bundler)
|
||||
MSG
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf "$APP_NAME"
|
||||
rm -f ./*.app.zip
|
||||
|
||||
# Enchant packaging changed between releases/package managers:
|
||||
# - some installs provide share/enchant
|
||||
# - others provide share/enchant-2
|
||||
# - some have no share-level config dir at all
|
||||
# Keep the bundle definition in sync with what's actually available so
|
||||
# gtk-mac-bundler doesn't fail on a missing source path.
|
||||
|
||||
# Resolve package-manager prefix dynamically so Intel (/usr/local) and
|
||||
# Apple Silicon (/opt/homebrew) hosts both bundle correctly.
|
||||
BUNDLE_PREFIX="${BUNDLE_PREFIX:-}"
|
||||
if [ -z "$BUNDLE_PREFIX" ] && command -v brew >/dev/null 2>&1; then
|
||||
BUNDLE_PREFIX="$(brew --prefix 2>/dev/null || true)"
|
||||
fi
|
||||
if [ -z "$BUNDLE_PREFIX" ]; then
|
||||
BUNDLE_PREFIX="/usr/local"
|
||||
fi
|
||||
|
||||
# Keep a caller-provided trailing slash so gtk-mac-bundler path concatenation
|
||||
# does not produce malformed locale paths like ".../x86_64locale/...".
|
||||
# CI explicitly sets BUNDLE_PREFIX with a trailing slash.
|
||||
BUNDLE_PREFIX_XML="$BUNDLE_PREFIX"
|
||||
|
||||
ENCHANT_PREFIX_DEFAULT="${BUNDLE_PREFIX}/opt/enchant"
|
||||
ENCHANT_PREFIX_PATH="${ENCHANT_PREFIX:-$ENCHANT_PREFIX_DEFAULT}"
|
||||
|
||||
perl -0pi -e 's|(<prefix\s+name="default">)[^<]+(</prefix>)|$1'"$BUNDLE_PREFIX_XML"'$2|s' "$BUNDLE_DEF"
|
||||
perl -0pi -e 's|(<prefix\s+name="enchant">)[^<]+(</prefix>)|$1'"$ENCHANT_PREFIX_PATH"'$2|s' "$BUNDLE_DEF"
|
||||
|
||||
if command -v brew >/dev/null 2>&1; then
|
||||
BREW_ENCHANT_PREFIX="$(brew --prefix enchant 2>/dev/null || true)"
|
||||
if [ -n "$BREW_ENCHANT_PREFIX" ]; then
|
||||
ENCHANT_PREFIX_PATH="$BREW_ENCHANT_PREFIX"
|
||||
perl -0pi -e 's|(<prefix\s+name="enchant">)[^<]+(</prefix>)|$1'"$ENCHANT_PREFIX_PATH"'$2|s' "$BUNDLE_DEF"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$ENCHANT_PREFIX_PATH" ]; then
|
||||
if [ -d "$ENCHANT_PREFIX_PATH/share/enchant" ]; then
|
||||
perl -0pi -e 's|(<data>\s*)\$\{prefix:enchant\}/share/enchant(?:-2)?(\s*</data>)|$1\$\{prefix:enchant\}/share/enchant$2|s' "$BUNDLE_DEF"
|
||||
elif [ -d "$ENCHANT_PREFIX_PATH/share/enchant-2" ]; then
|
||||
perl -0pi -e 's|(<data>\s*)\$\{prefix:enchant\}/share/enchant(?:-2)?(\s*</data>)|$1\$\{prefix:enchant\}/share/enchant-2$2|s' "$BUNDLE_DEF"
|
||||
else
|
||||
perl -0pi -e 's|\n\s*<data>\s*\$\{prefix:enchant\}/share/enchant(?:-2)?\s*</data>\n|\n|s' "$BUNDLE_DEF"
|
||||
fi
|
||||
fi
|
||||
|
||||
# GTK module extension differs across package manager builds:
|
||||
# - Homebrew commonly installs .dylib modules
|
||||
# - Some environments still ship .so modules
|
||||
# Detect what exists in the staged prefix and rewrite the bundle definition
|
||||
# so gtk-mac-bundler does not fail on a missing glob.
|
||||
GTK_MODULE_EXT="so"
|
||||
if find "$BUNDLE_PREFIX/lib/gtk-3.0" -type f \( -path '*/immodules/*.dylib' -o -path '*/printbackends/*.dylib' \) -print -quit 2>/dev/null | grep -q . \
|
||||
|| find "$BUNDLE_PREFIX/lib/gdk-pixbuf-2.0" -type f -path '*/loaders/*.dylib' -print -quit 2>/dev/null | grep -q .; then
|
||||
GTK_MODULE_EXT="dylib"
|
||||
fi
|
||||
if [ "$GTK_MODULE_EXT" = "dylib" ]; then
|
||||
perl -0pi -e 's|(/immodules/)\*\.so|$1*.dylib|g; s|(/printbackends/)\*\.so|$1*.dylib|g; s|(/loaders/)\*\.so|$1*.dylib|g' "$BUNDLE_DEF"
|
||||
else
|
||||
perl -0pi -e 's|(/immodules/)\*\.dylib|$1*.so|g; s|(/printbackends/)\*\.dylib|$1*.so|g; s|(/loaders/)\*\.dylib|$1*.so|g' "$BUNDLE_DEF"
|
||||
fi
|
||||
|
||||
# Some staged builds omit GTK runtime module directories entirely
|
||||
# (for example stripped-down CI artifacts). Remove bundle entries for
|
||||
# missing globs so gtk-mac-bundler does not abort.
|
||||
if ! find "$BUNDLE_PREFIX/lib/gtk-3.0" -type f -path "*/immodules/*.${GTK_MODULE_EXT}" -print -quit 2>/dev/null | grep -q .; then
|
||||
perl -0pi -e 's#\n\s*<binary>\s*\$\{prefix\}/lib/\$\{gtkdir\}/\$\{pkg:\$\{gtk\}:gtk_binary_version\}/immodules/\*\.(?:so|dylib)\s*</binary>\n#\n#g' "$BUNDLE_DEF"
|
||||
fi
|
||||
if ! find "$BUNDLE_PREFIX/lib/gtk-3.0" -type f -path "*/printbackends/*.${GTK_MODULE_EXT}" -print -quit 2>/dev/null | grep -q .; then
|
||||
perl -0pi -e 's#\n\s*<binary>\s*\$\{prefix\}/lib/\$\{gtkdir\}/\$\{pkg:\$\{gtk\}:gtk_binary_version\}/printbackends/\*\.(?:so|dylib)\s*</binary>\n#\n#g' "$BUNDLE_DEF"
|
||||
fi
|
||||
if ! find "$BUNDLE_PREFIX/lib/gdk-pixbuf-2.0" -type f -path "*/loaders/*.${GTK_MODULE_EXT}" -print -quit 2>/dev/null | grep -q .; then
|
||||
perl -0pi -e 's#\n\s*<binary>\s*\$\{prefix\}/lib/gdk-pixbuf-2\.0/\$\{pkg:gdk-pixbuf-2\.0:gdk_pixbuf_binary_version\}/loaders/\*\.(?:so|dylib)\s*</binary>\n#\n#g' "$BUNDLE_DEF"
|
||||
fi
|
||||
|
||||
|
||||
# Keep Info.plist generation deterministic by always rendering from template
|
||||
# using a single, explicit version source.
|
||||
VERSION_STRING="${VERSION:-$(sed -n "s/^ version: '\([^']*\)',$/\1/p" ../meson.build | head -n1)}"
|
||||
if [ -z "$VERSION_STRING" ]; then
|
||||
echo "error: unable to determine VERSION_STRING for Info.plist" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TMP_PLIST="Info.plist.tmp"
|
||||
LC_ALL=C sed "s/@VERSION@/$VERSION_STRING/g" Info.plist.in > "$TMP_PLIST"
|
||||
mv -f "$TMP_PLIST" Info.plist
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
$BUNDLER_CMD "$BUNDLE_DEF"
|
||||
|
||||
if [ ! -d "$APP_NAME" ]; then
|
||||
echo "error: bundler finished but $APP_NAME was not created" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BIN_PATH="$APP_NAME/Contents/MacOS/ZoiteChat-bin"
|
||||
|
||||
if [ "${UNIVERSAL:-0}" = "1" ] && [ -z "$UNIVERSAL_BINARIES" ]; then
|
||||
for build_dir in $UNIVERSAL_BUILD_DIRS; do
|
||||
candidate="$build_dir/src/fe-gtk/zoitechat"
|
||||
if [ -f "$candidate" ]; then
|
||||
UNIVERSAL_BINARIES="${UNIVERSAL_BINARIES:+$UNIVERSAL_BINARIES }$candidate"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -z "$UNIVERSAL_BINARIES" ]; then
|
||||
cat >&2 <<'MSG'
|
||||
error: UNIVERSAL=1 requested, but no source binaries were found.
|
||||
Set UNIVERSAL_BINARIES to one or more architecture-specific zoitechat binaries,
|
||||
or place builds at:
|
||||
../build-macos-arm64/src/fe-gtk/zoitechat
|
||||
../build-macos-x86_64/src/fe-gtk/zoitechat
|
||||
MSG
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$UNIVERSAL_BINARIES" ]; then
|
||||
if ! command -v lipo >/dev/null 2>&1; then
|
||||
echo "error: UNIVERSAL_BINARIES requires lipo, but lipo is unavailable" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for binary in $UNIVERSAL_BINARIES; do
|
||||
if [ ! -f "$binary" ]; then
|
||||
echo "error: universal source binary not found: $binary" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Creating universal ZoiteChat-bin from: $UNIVERSAL_BINARIES"
|
||||
# shellcheck disable=SC2086
|
||||
lipo -create $UNIVERSAL_BINARIES -output "$BIN_PATH"
|
||||
fi
|
||||
|
||||
if command -v lipo >/dev/null 2>&1; then
|
||||
BIN_ARCHS="$(lipo -archs "$BIN_PATH" 2>/dev/null || true)"
|
||||
if [ -z "$BIN_ARCHS" ]; then
|
||||
echo "error: unable to detect architectures for $BIN_PATH" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for required_arch in $TARGET_ARCHES; do
|
||||
if ! echo " $BIN_ARCHS " | grep -q " $required_arch "; then
|
||||
cat >&2 <<MSG
|
||||
error: bundled binary architecture mismatch.
|
||||
required: $TARGET_ARCHES
|
||||
actual: $BIN_ARCHS
|
||||
hint: rebuild ZoiteChat-bin with matching architecture(s) before bundling.
|
||||
MSG
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if command -v file >/dev/null 2>&1; then
|
||||
echo "Bundled binary architecture:"
|
||||
file "$BIN_PATH" || true
|
||||
fi
|
||||
python $HOME/.local/bin/gtk-mac-bundler zoitechat.bundle
|
||||
|
||||
echo "Compressing bundle"
|
||||
ARCHIVE_VERSION="$(git describe --tags --always 2>/dev/null || true)"
|
||||
if [ -z "$ARCHIVE_VERSION" ]; then
|
||||
ARCHIVE_VERSION="$VERSION_STRING"
|
||||
fi
|
||||
zip -9rXq "./ZoiteChat-$ARCHIVE_VERSION.app.zip" "./$APP_NAME"
|
||||
zip -9rXq ./ZoiteChat-$(git describe --tags).app.zip ./ZoiteChat.app
|
||||
|
||||
5
osx/settings.ini
Normal file
5
osx/settings.ini
Normal file
@@ -0,0 +1,5 @@
|
||||
[Settings]
|
||||
gtk-theme-name=Mac
|
||||
gtk-key-theme-name=Mac
|
||||
gtk-menu-images=0
|
||||
gtk-button-images=0
|
||||
@@ -2,15 +2,12 @@
|
||||
<app-bundle>
|
||||
|
||||
<meta>
|
||||
<!-- Expected prefixes:
|
||||
Homebrew: /opt/homebrew (Apple Silicon) or /usr/local (Intel)
|
||||
MacPorts: /opt/local -->
|
||||
<prefix name="default">/usr/local</prefix>
|
||||
<prefix name="enchant">/usr/local/opt/enchant</prefix>
|
||||
<prefix name="enchant">/usr/local/opt/enchant-applespell</prefix>
|
||||
<destination overwrite="yes">${project}</destination>
|
||||
|
||||
<run-install-name-tool>yes</run-install-name-tool>
|
||||
<launcher-script>${project}/launcher.sh</launcher-script>
|
||||
<run-install-name-tool/>
|
||||
<launcher-script>${project}/launcher.sh</launcher-script >
|
||||
<gtk>gtk+-3.0</gtk>
|
||||
</meta>
|
||||
|
||||
@@ -24,31 +21,35 @@
|
||||
${prefix}/lib/zoitechat/plugins/*.so
|
||||
</binary>
|
||||
|
||||
<!-- Enchant 2 runtime layout (Homebrew/MacPorts):
|
||||
- core dylib in lib/
|
||||
- provider modules in lib/enchant-2/ loaded via dlopen()
|
||||
- config files in share/enchant/ -->
|
||||
<binary>
|
||||
${prefix:enchant}/lib/libenchant-2*.dylib
|
||||
${prefix:enchant}/lib/libenchant.dylib
|
||||
</binary>
|
||||
<binary>
|
||||
${prefix:enchant}/lib/enchant-2
|
||||
${prefix:enchant}/lib/enchant/libenchant_applespell.so
|
||||
</binary>
|
||||
<data>
|
||||
${prefix:enchant}/share/enchant
|
||||
</data>
|
||||
|
||||
<!-- GTK3 runtime modules: ${prefix}/lib/${gtkdir} -->
|
||||
<binary>
|
||||
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/immodules/*.so
|
||||
${prefix}/lib/${gtkdir}/modules/*.so
|
||||
</binary>
|
||||
<binary>
|
||||
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/engines/libquartz.so
|
||||
</binary>
|
||||
<binary>
|
||||
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/engines/libxamarin.so
|
||||
</binary>
|
||||
<binary>
|
||||
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so
|
||||
</binary>
|
||||
|
||||
<binary>
|
||||
${prefix}/lib/gdk-pixbuf-2.0/${pkg:gdk-pixbuf-2.0:gdk_pixbuf_binary_version}/loaders/*.so
|
||||
${prefix}/lib/gdk-pixbuf-2.0/${pkg:${gtk}:gtk_binary_version}/loaders/*.so
|
||||
</binary>
|
||||
<binary>
|
||||
${prefix}/lib/pango/${pkg:pango:pango_module_version}/modules/
|
||||
</binary>
|
||||
<data>
|
||||
${prefix}/share/themes/Mac/gtk-3.0/gtk-keys.css
|
||||
</data>
|
||||
|
||||
<translations name="gtk30">
|
||||
${prefix}/share/locale
|
||||
</translations>
|
||||
@@ -56,6 +57,10 @@
|
||||
${prefix}/share/locale
|
||||
</translations>
|
||||
|
||||
<data dest="${bundle}/Contents/Resources/etc/${gtkdir}/settings.ini">
|
||||
${project}/settings.ini
|
||||
</data>
|
||||
|
||||
<data dest="${bundle}/Contents/Resources">
|
||||
${project}/zoitechat.icns
|
||||
</data>
|
||||
|
||||
Binary file not shown.
70
packaging/manjaro/PKGBUILD
Normal file
70
packaging/manjaro/PKGBUILD
Normal file
@@ -0,0 +1,70 @@
|
||||
# Maintainer: ZoiteChat Maintainers <zoitechat@users.noreply.github.com>
|
||||
|
||||
pkgname=zoitechat-git
|
||||
pkgver=0
|
||||
pkgrel=1
|
||||
pkgdesc='IRC client for GNOME (ZoiteChat development snapshot)'
|
||||
arch=('x86_64')
|
||||
url='https://github.com/zoitechat/zoitechat'
|
||||
license=('GPL-2.0-or-later')
|
||||
depends=(
|
||||
'dbus-glib'
|
||||
'glib2'
|
||||
'gtk3'
|
||||
'iso-codes'
|
||||
'libcanberra'
|
||||
'lua'
|
||||
'openssl'
|
||||
'perl'
|
||||
'python-cffi'
|
||||
)
|
||||
makedepends=(
|
||||
'git'
|
||||
'meson'
|
||||
'ninja'
|
||||
'pkgconf'
|
||||
'python'
|
||||
)
|
||||
optdepends=(
|
||||
'libayatana-appindicator: Ayatana/AppIndicator tray backend'
|
||||
'pciutils: sysinfo plugin hardware detection details'
|
||||
)
|
||||
provides=('zoitechat')
|
||||
conflicts=('zoitechat')
|
||||
|
||||
_repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
source=("zoitechat::git+file://${_repo_root}")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/zoitechat"
|
||||
|
||||
if git describe --long --tags --abbrev=7 >/dev/null 2>&1; then
|
||||
git describe --long --tags --abbrev=7 \
|
||||
| sed 's/^v//' \
|
||||
| sed -E 's/([^-]+)-([0-9]+)-g/\1.r\2.g/' \
|
||||
| sed 's/-/./g'
|
||||
else
|
||||
printf '0.r%s.%s\n' \
|
||||
"$(git rev-list --count HEAD)" \
|
||||
"$(git rev-parse --short=7 HEAD)"
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
arch-meson zoitechat build \
|
||||
-Dtext-frontend=false \
|
||||
-Dwith-checksum=true \
|
||||
-Dwith-fishlim=true \
|
||||
-Dwith-lua=lua \
|
||||
-Dwith-perl=perl \
|
||||
-Dwith-python=python3 \
|
||||
-Dwith-sysinfo=true \
|
||||
-Dinstall-plugin-metainfo=true
|
||||
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
name : zoitechat
|
||||
version : 2.18.0-pre1
|
||||
release : 1
|
||||
version : 2.18.0~pre2
|
||||
release : 2
|
||||
source :
|
||||
- https://github.com/ZoiteChat/zoitechat/archive/refs/tags/zoitechat-2.18.0-pre1.tar.gz : 77d787cf00abd533326440eab01ca077c21cdfd2eb56807fc21d6fb70f34ada6
|
||||
- https://github.com/ZoiteChat/zoitechat/archive/e060d57baee1be22bee1f9c3b047be3fa71c6d35.tar.gz : ed315a0b1c46e798912fd830d3845427972857c43ccaa16284969c6f542add38
|
||||
homepage : https://zoitechat.zoite.net/
|
||||
license : GPL-2.0-only
|
||||
component : network.irc
|
||||
@@ -20,13 +20,12 @@ builddeps :
|
||||
- pkgconfig(iso-codes)
|
||||
- meson
|
||||
- ninja
|
||||
- pkgconfig
|
||||
- pkgconf
|
||||
- gcc
|
||||
- gettext
|
||||
setup : |
|
||||
%meson_configure \
|
||||
-Dgtk-frontend=true \
|
||||
-Dgtk3=true \
|
||||
-Dinstall-appdata=true
|
||||
build : |
|
||||
%ninja_build
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include "zoitechat-plugin.h"
|
||||
|
||||
static zoitechat_plugin *ph; /* plugin handle */
|
||||
static zoitechat_plugin *ph;
|
||||
static char name[] = "Checksum";
|
||||
static char desc[] = "Calculate checksum for DCC file transfers";
|
||||
static char version[] = "4.0";
|
||||
@@ -42,18 +42,14 @@ typedef struct {
|
||||
static void
|
||||
print_sha256_result (ChecksumCallbackInfo *info, const char *checksum, const char *filename, GError *error)
|
||||
{
|
||||
// So then we get the next best available channel, since we always want to print at least somewhere, it's fine
|
||||
zoitechat_context *ctx = zoitechat_find_context(ph, info->servername, info->channel);
|
||||
if (!ctx) {
|
||||
// before we print a private message to the wrong channel, we exit early
|
||||
if (info->send_message) {
|
||||
return;
|
||||
}
|
||||
|
||||
// if the context isn't found the first time, we search in the server
|
||||
ctx = zoitechat_find_context(ph, info->servername, NULL);
|
||||
if (!ctx) {
|
||||
// The second time we exit early, since printing in another server isn't desireable
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include "zoitechat-plugin.h"
|
||||
|
||||
static zoitechat_plugin *ph; /* plugin handle */
|
||||
static zoitechat_plugin *ph;
|
||||
static char name[] = "Exec";
|
||||
static char desc[] = "Execute commands inside ZoiteChat";
|
||||
static char version[] = "1.2";
|
||||
@@ -71,7 +71,7 @@ run_command (char *word[], char *word_eol[], void *userdata)
|
||||
strcat (commandLine, word_eol[2]);
|
||||
}
|
||||
|
||||
CreatePipe (&readPipe, &writePipe, &secattr, 0); /* might be replaced with MyCreatePipeEx */
|
||||
CreatePipe (&readPipe, &writePipe, &secattr, 0);
|
||||
|
||||
ZeroMemory (&sInfo, sizeof (sInfo));
|
||||
ZeroMemory (&pInfo, sizeof (pInfo));
|
||||
@@ -91,12 +91,10 @@ run_command (char *word[], char *word_eol[], void *userdata)
|
||||
{
|
||||
if (ReadFile (readPipe, buffer, sizeof (buffer) - 1, &dwRead, NULL) && dwRead != 0 )
|
||||
{
|
||||
/* avoid garbage */
|
||||
buffer[dwRead] = '\0';
|
||||
|
||||
if (announce)
|
||||
{
|
||||
/* Say each line seperately, TODO: improve... */
|
||||
token = strtok_s (buffer, "\n", &context);
|
||||
while (token != NULL)
|
||||
{
|
||||
@@ -110,13 +108,11 @@ run_command (char *word[], char *word_eol[], void *userdata)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* this way we'll more likely get full lines */
|
||||
SleepEx (100, TRUE);
|
||||
}
|
||||
timeElapsed = difftime (time (0), start);
|
||||
}
|
||||
|
||||
/* display a newline to separate things */
|
||||
if (!announce)
|
||||
zoitechat_printf (ph, "\n");
|
||||
|
||||
@@ -149,7 +145,7 @@ zoitechat_plugin_init (zoitechat_plugin *plugin_handle, char **plugin_name, char
|
||||
zoitechat_hook_command (ph, "EXEC", ZOITECHAT_PRI_NORM, run_command, "Usage: /EXEC [-O] - execute commands inside ZoiteChat", 0);
|
||||
zoitechat_printf (ph, "%s plugin loaded\n", name);
|
||||
|
||||
return 1; /* return 1 for success */
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -75,7 +75,7 @@ dh1080_init (void)
|
||||
|
||||
BN_set_word (g, 2);
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#ifndef HAVE_DH_SET0_PQG
|
||||
g_dh->p = p;
|
||||
g_dh->g = g;
|
||||
#else
|
||||
@@ -163,7 +163,7 @@ dh1080_generate_key (char **priv_key, char **pub_key)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#ifndef HAVE_DH_GET0_KEY
|
||||
dh_pub_key = dh->pub_key;
|
||||
dh_priv_key = dh->priv_key;
|
||||
#else
|
||||
@@ -190,6 +190,9 @@ dh1080_compute_key (const char *priv_key, const char *pub_key, char **secret_key
|
||||
gsize pub_key_len;
|
||||
BIGNUM *pk;
|
||||
DH *dh;
|
||||
#ifdef HAVE_DH_SET0_KEY
|
||||
BIGNUM *temp_pub_key = BN_new();
|
||||
#endif
|
||||
|
||||
g_assert (secret_key != NULL);
|
||||
|
||||
@@ -214,10 +217,10 @@ dh1080_compute_key (const char *priv_key, const char *pub_key, char **secret_key
|
||||
|
||||
priv_key_data = dh1080_decode_b64 (priv_key, &priv_key_len);
|
||||
priv_key_num = BN_bin2bn(priv_key_data, priv_key_len, NULL);
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#ifndef HAVE_DH_SET0_KEY
|
||||
dh->priv_key = priv_key_num;
|
||||
#else
|
||||
DH_set0_key (dh, NULL, priv_key_num);
|
||||
DH_set0_key (dh, temp_pub_key, priv_key_num);
|
||||
#endif
|
||||
|
||||
shared_len = DH_compute_key (shared_key, pk, dh);
|
||||
|
||||
@@ -39,13 +39,11 @@ gboolean irc_parse_message(const char *words[],
|
||||
if (prefix) *prefix = NULL;
|
||||
if (command) *command = NULL;
|
||||
|
||||
/* See if the message starts with a prefix (sender user) */
|
||||
if (words[w][0] == ':') {
|
||||
if (prefix) *prefix = &words[w][1];
|
||||
w++;
|
||||
}
|
||||
|
||||
/* Check command */
|
||||
|
||||
if (words[w][0] == '\0') return FALSE;
|
||||
if (command) *command = words[w];
|
||||
w++;
|
||||
@@ -72,11 +70,9 @@ char *irc_prefix_get_nick(const char *prefix) {
|
||||
|
||||
if (!prefix) return NULL;
|
||||
|
||||
/* Find end of nick */
|
||||
end = prefix;
|
||||
while (*end != '\0' && *end != '!' && *end != '@') end++;
|
||||
|
||||
/* Allocate string */
|
||||
|
||||
length = end - prefix;
|
||||
return g_strndup (prefix, length);
|
||||
}
|
||||
|
||||
@@ -277,15 +277,6 @@ char *decrypt_raw_message(const char *message, const char *key) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*static int handle_debug(char *word[], char *word_eol[], void *userdata) {
|
||||
zoitechat_printf(ph, "debug incoming: ");
|
||||
for (size_t i = 1; word[i] != NULL && word[i][0] != '\0'; i++) {
|
||||
zoitechat_printf(ph, ">%s< ", word[i]);
|
||||
}
|
||||
zoitechat_printf(ph, "\n");
|
||||
return ZOITECHAT_EAT_NONE;
|
||||
}*/
|
||||
|
||||
/**
|
||||
* Called when a message is to be sent.
|
||||
*/
|
||||
@@ -811,7 +802,6 @@ int zoitechat_plugin_init(zoitechat_plugin *plugin_handle,
|
||||
zoitechat_hook_server(ph, "NOTICE", ZOITECHAT_PRI_HIGHEST, handle_keyx_notice, NULL);
|
||||
zoitechat_hook_server_attrs(ph, "NOTICE", ZOITECHAT_PRI_NORM, handle_incoming, NULL);
|
||||
zoitechat_hook_server_attrs(ph, "PRIVMSG", ZOITECHAT_PRI_NORM, handle_incoming, NULL);
|
||||
/* zoitechat_hook_server(ph, "RAW LINE", ZOITECHAT_PRI_NORM, handle_debug, NULL); */
|
||||
zoitechat_hook_server_attrs(ph, "TOPIC", ZOITECHAT_PRI_NORM, handle_incoming, NULL);
|
||||
zoitechat_hook_server_attrs(ph, "332", ZOITECHAT_PRI_NORM, handle_incoming, NULL);
|
||||
|
||||
@@ -836,4 +826,3 @@ int zoitechat_plugin_deinit(void) {
|
||||
zoitechat_printf(ph, "%s plugin unloaded\n", plugin_name);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -1105,6 +1105,8 @@ static int luaopen_zoitechat(lua_State *L)
|
||||
lua_pushinteger(L, ZOITECHAT_PRI_LOWEST); lua_setfield(L, -2, "PRI_LOWEST");
|
||||
lua_pushinteger(L, ZOITECHAT_EAT_NONE); lua_setfield(L, -2, "EAT_NONE");
|
||||
lua_pushinteger(L, ZOITECHAT_EAT_ZOITECHAT); lua_setfield(L, -2, "EAT_ZOITECHAT");
|
||||
lua_pushinteger(L, ZOITECHAT_EAT_ZOITECHAT); lua_setfield(L, -2, "EAT_XCHAT");
|
||||
lua_pushinteger(L, ZOITECHAT_EAT_ZOITECHAT); lua_setfield(L, -2, "EAT_HEXCHAT");
|
||||
lua_pushinteger(L, ZOITECHAT_EAT_PLUGIN); lua_setfield(L, -2, "EAT_PLUGIN");
|
||||
lua_pushinteger(L, ZOITECHAT_EAT_ALL); lua_setfield(L, -2, "EAT_ALL");
|
||||
|
||||
@@ -1271,6 +1273,13 @@ static void prepare_state(lua_State *L, script_info *info)
|
||||
lua_setfield(L, LUA_REGISTRYINDEX, registry_field);
|
||||
luaopen_zoitechat(L);
|
||||
lua_setglobal(L, "zoitechat");
|
||||
|
||||
lua_getglobal(L, "zoitechat");
|
||||
lua_setglobal(L, "xchat");
|
||||
|
||||
lua_getglobal(L, "zoitechat");
|
||||
lua_setglobal(L, "hexchat");
|
||||
|
||||
lua_getglobal(L, "zoitechat");
|
||||
lua_getfield(L, -1, "print");
|
||||
lua_setglobal(L, "print");
|
||||
|
||||
@@ -22,31 +22,7 @@ if get_option('with-fishlim')
|
||||
subdir('fishlim')
|
||||
endif
|
||||
|
||||
lua_option = get_option('with-lua')
|
||||
if lua_option == 'auto' or lua_option == 'luajit'
|
||||
lua_auto_dep = dependency('luajit', required: false)
|
||||
if not lua_auto_dep.found()
|
||||
lua_auto_dep = dependency('lua-5.4', required: false)
|
||||
endif
|
||||
if not lua_auto_dep.found()
|
||||
lua_auto_dep = dependency('lua5.4', required: false)
|
||||
endif
|
||||
if not lua_auto_dep.found()
|
||||
lua_auto_dep = dependency('lua-5.3', required: false)
|
||||
endif
|
||||
if not lua_auto_dep.found()
|
||||
lua_auto_dep = dependency('lua5.3', required: false)
|
||||
endif
|
||||
if not lua_auto_dep.found()
|
||||
lua_auto_dep = dependency('lua', required: false)
|
||||
endif
|
||||
|
||||
if lua_auto_dep.found()
|
||||
subdir('lua')
|
||||
else
|
||||
warning('LuaJIT/Lua development files not found, disabling Lua plugin')
|
||||
endif
|
||||
elif lua_option != 'false'
|
||||
if get_option('with-lua') != 'false'
|
||||
subdir('lua')
|
||||
endif
|
||||
|
||||
|
||||
1
plugins/perl/lib/HexChat.pm
Normal file
1
plugins/perl/lib/HexChat.pm
Normal file
@@ -0,0 +1 @@
|
||||
require ZoiteChat;
|
||||
@@ -53,14 +53,16 @@ sub ZoiteChat::Internal::print;
|
||||
|
||||
#keep compatibility with Xchat scripts
|
||||
sub EAT_XCHAT ();
|
||||
sub EAT_HEXCHAT ();
|
||||
BEGIN {
|
||||
*Xchat:: = *ZoiteChat::;
|
||||
*HexChat:: = *ZoiteChat::;
|
||||
}
|
||||
|
||||
our %EXPORT_TAGS = (
|
||||
constants => [
|
||||
qw(PRI_HIGHEST PRI_HIGH PRI_NORM PRI_LOW PRI_LOWEST), # priorities
|
||||
qw(EAT_NONE EAT_ZOITECHAT EAT_XCHAT EAT_PLUGIN EAT_ALL), # callback return values
|
||||
qw(EAT_NONE EAT_ZOITECHAT EAT_XCHAT EAT_HEXCHAT EAT_PLUGIN EAT_ALL), # callback return values
|
||||
qw(FD_READ FD_WRITE FD_EXCEPTION FD_NOTSOCKET), # fd flags
|
||||
qw(KEEP REMOVE), # timers
|
||||
],
|
||||
|
||||
@@ -4,6 +4,7 @@ zoitechat_perl_module = custom_target('zoitechat-perl-header',
|
||||
input: [
|
||||
'lib/ZoiteChat.pm',
|
||||
'lib/Xchat.pm',
|
||||
'lib/HexChat.pm',
|
||||
'lib/ZoiteChat/Embed.pm',
|
||||
'lib/ZoiteChat/List/Network.pm',
|
||||
'lib/ZoiteChat/List/Network/Entry.pm',
|
||||
@@ -27,10 +28,9 @@ endif
|
||||
|
||||
perl = find_program(get_option('with-perl'))
|
||||
|
||||
ret = run_command([perl, '-MExtUtils::Embed', '-e', 'ccopts'], check: false)
|
||||
ret = run_command([perl, '-MExtUtils::Embed', '-e', 'ccopts'])
|
||||
if ret.returncode() != 0
|
||||
warning('Perl development files not found, disabling Perl plugin')
|
||||
subdir_done()
|
||||
error('perl: Failed to get cflags')
|
||||
endif
|
||||
foreach flag : ret.stdout().strip().split(' ')
|
||||
if flag.startswith('-I') or flag.startswith('-D')
|
||||
@@ -38,10 +38,9 @@ foreach flag : ret.stdout().strip().split(' ')
|
||||
endif
|
||||
endforeach
|
||||
|
||||
ret = run_command([perl, '-MExtUtils::Embed', '-e', 'ldopts'], check: false)
|
||||
ret = run_command([perl, '-MExtUtils::Embed', '-e', 'ldopts'])
|
||||
if ret.returncode() != 0
|
||||
warning('Perl development files not found, disabling Perl plugin')
|
||||
subdir_done()
|
||||
error('perl: Failed to get ldflags')
|
||||
endif
|
||||
perl_ldflags = []
|
||||
perl_rpath = ''
|
||||
@@ -75,8 +74,7 @@ int main(void) {
|
||||
return 0;
|
||||
}
|
||||
''', args: perl_cflags + perl_ldflags)
|
||||
warning('Found perl is not suitable for plugin, disabling Perl plugin')
|
||||
subdir_done()
|
||||
error('found perl not suitable for plugin')
|
||||
endif
|
||||
|
||||
perl_dep = declare_dependency(
|
||||
|
||||
@@ -440,8 +440,6 @@ server_cb (char *word[], char *word_eol[], void *userdata)
|
||||
if (data->depth)
|
||||
return ZOITECHAT_EAT_NONE;
|
||||
|
||||
/* zoitechat_printf (ph, */
|
||||
/* "Received %d words in server callback", av_len (wd)); */
|
||||
PUSHMARK (SP);
|
||||
XPUSHs (newRV_noinc ((SV *) array2av (word)));
|
||||
XPUSHs (newRV_noinc ((SV *) array2av (word_eol)));
|
||||
@@ -489,8 +487,6 @@ command_cb (char *word[], char *word_eol[], void *userdata)
|
||||
if (data->depth)
|
||||
return ZOITECHAT_EAT_NONE;
|
||||
|
||||
/* zoitechat_printf (ph, "Received %d words in command callback", */
|
||||
/* av_len (wd)); */
|
||||
PUSHMARK (SP);
|
||||
XPUSHs (newRV_noinc ((SV *) array2av (word)));
|
||||
XPUSHs (newRV_noinc ((SV *) array2av (word_eol)));
|
||||
@@ -567,7 +563,6 @@ print_cb (char *word[], void *userdata)
|
||||
}
|
||||
}
|
||||
|
||||
/*zoitechat_printf (ph, "Received %d words in print callback", av_len (wd)+1); */
|
||||
PUSHMARK (SP);
|
||||
XPUSHs (newRV_noinc ((SV *) wd));
|
||||
XPUSHs (data->userdata);
|
||||
@@ -1365,6 +1360,7 @@ xs_init (pTHX)
|
||||
newCONSTSUB (stash, "EAT_NONE", newSViv (ZOITECHAT_EAT_NONE));
|
||||
newCONSTSUB (stash, "EAT_ZOITECHAT", newSViv (ZOITECHAT_EAT_ZOITECHAT));
|
||||
newCONSTSUB (stash, "EAT_XCHAT", newSViv (ZOITECHAT_EAT_ZOITECHAT)); /* for compatibility */
|
||||
newCONSTSUB (stash, "EAT_HEXCHAT", newSViv (ZOITECHAT_EAT_ZOITECHAT)); /* for compatibility */
|
||||
newCONSTSUB (stash, "EAT_PLUGIN", newSViv (ZOITECHAT_EAT_PLUGIN));
|
||||
newCONSTSUB (stash, "EAT_ALL", newSViv (ZOITECHAT_EAT_ALL));
|
||||
newCONSTSUB (stash, "FD_READ", newSViv (ZOITECHAT_FD_READ));
|
||||
|
||||
@@ -5,7 +5,7 @@ from contextlib import contextmanager
|
||||
from _zoitechat_embedded import ffi, lib
|
||||
|
||||
__all__ = [
|
||||
'EAT_ALL', 'EAT_ZOITECHAT', 'EAT_NONE', 'EAT_PLUGIN', 'EAT_XCHAT',
|
||||
'EAT_ALL', 'EAT_ZOITECHAT', 'EAT_NONE', 'EAT_PLUGIN', 'EAT_XCHAT', 'EAT_HEXCHAT',
|
||||
'PRI_HIGH', 'PRI_HIGHEST', 'PRI_LOW', 'PRI_LOWEST', 'PRI_NORM',
|
||||
'__doc__', '__version__', 'command', 'del_pluginpref', 'emit_print',
|
||||
'find_context', 'get_context', 'get_info',
|
||||
@@ -22,6 +22,7 @@ __license__ = 'GPL-2.0+'
|
||||
EAT_NONE = 0
|
||||
EAT_ZOITECHAT = 1
|
||||
EAT_XCHAT = EAT_ZOITECHAT
|
||||
EAT_HEXCHAT = EAT_ZOITECHAT
|
||||
EAT_PLUGIN = 2
|
||||
EAT_ALL = EAT_ZOITECHAT | EAT_PLUGIN
|
||||
|
||||
@@ -78,7 +79,6 @@ def emit_print(event_name, *args, **kwargs):
|
||||
return ret
|
||||
|
||||
|
||||
# TODO: this shadows itself. command should be changed to cmd
|
||||
def command(command):
|
||||
lib.zoitechat_command(lib.ph, command.encode())
|
||||
|
||||
@@ -220,7 +220,6 @@ def get_list(name):
|
||||
return ret
|
||||
|
||||
|
||||
# TODO: 'command' here shadows command above, and should be renamed to cmd
|
||||
def hook_command(command, callback, userdata=None, priority=PRI_NORM, help=None):
|
||||
plugin = __get_current_plugin()
|
||||
hook = plugin.add_hook(callback, userdata)
|
||||
|
||||
@@ -5,11 +5,9 @@ import cffi
|
||||
|
||||
builder = cffi.FFI()
|
||||
|
||||
# zoitechat-plugin.h
|
||||
with open(sys.argv[1]) as f:
|
||||
output = []
|
||||
eat_until_endif = 0
|
||||
# This is very specific to zoitechat-plugin.h, it is not a cpp
|
||||
for line in f:
|
||||
if line.startswith('#define'):
|
||||
continue
|
||||
@@ -81,9 +79,7 @@ int zoitechat_plugin_deinit(void)
|
||||
}
|
||||
''')
|
||||
|
||||
# python.py
|
||||
with open(sys.argv[2]) as f:
|
||||
builder.embedding_init_code(f.read())
|
||||
|
||||
# python.c
|
||||
builder.emit_c_code(sys.argv[3])
|
||||
|
||||
1
plugins/python/hexchat.py
Normal file
1
plugins/python/hexchat.py
Normal file
@@ -0,0 +1 @@
|
||||
from _zoitechat import *
|
||||
@@ -19,7 +19,7 @@ python3_source = custom_target('python-bindings',
|
||||
command: [find_program('generate_plugin.py'), '@INPUT@', '@OUTPUT@']
|
||||
)
|
||||
|
||||
install_data(['_zoitechat.py', 'zoitechat.py', 'xchat.py'],
|
||||
install_data(['_zoitechat.py', 'zoitechat.py', 'xchat.py', 'hexchat.py'],
|
||||
install_dir: join_paths(get_option('libdir'), 'zoitechat/python')
|
||||
)
|
||||
|
||||
|
||||
@@ -19,12 +19,11 @@ else:
|
||||
if not hasattr(sys, 'argv'):
|
||||
sys.argv = ['<zoitechat>']
|
||||
|
||||
VERSION = b'2.18.0-pre1' # Sync with zoitechat.__version__
|
||||
VERSION = b'2.18.0~pre2'
|
||||
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)
|
||||
|
||||
# TODO: Constants should be screaming snake case
|
||||
zoitechat = None
|
||||
local_interp = None
|
||||
zoitechat_stdout = None
|
||||
@@ -106,8 +105,6 @@ if sys.version_info[0] == 2:
|
||||
return compile(string, '<string>', 'eval', dont_inherit=True)
|
||||
|
||||
except SyntaxError:
|
||||
# For some reason `print` is invalid for eval
|
||||
# This will hide any return value though
|
||||
return compile(string, '<string>', 'exec', dont_inherit=True)
|
||||
else:
|
||||
def compile_file(data, filename):
|
||||
@@ -115,7 +112,6 @@ else:
|
||||
|
||||
|
||||
def compile_line(string):
|
||||
# newline appended to solve unexpected EOF issues
|
||||
return compile(string + '\n', '<string>', 'single', optimize=2, dont_inherit=True)
|
||||
|
||||
|
||||
@@ -200,8 +196,6 @@ else:
|
||||
return string.decode()
|
||||
|
||||
|
||||
# There can be empty entries between non-empty ones so find the actual last value
|
||||
|
||||
def _cstr(ptr):
|
||||
"""Safely convert a C char* (possibly NULL) to bytes."""
|
||||
if ptr == ffi.NULL:
|
||||
@@ -212,7 +206,6 @@ def _cstr(ptr):
|
||||
return b''
|
||||
|
||||
def wordlist_len(words):
|
||||
# ZoiteChat passes a fixed-size array (typically 32) where unused entries may be NULL.
|
||||
for i in range(31, 0, -1):
|
||||
if _cstr(words[i]):
|
||||
return i
|
||||
@@ -299,12 +292,8 @@ def _on_timer_hook(userdata):
|
||||
return 1
|
||||
|
||||
try:
|
||||
# Avoid calling zoitechat_unhook twice if unnecessary
|
||||
hook.is_unload = True
|
||||
except ReferenceError:
|
||||
# hook is a weak reference, it might have been destroyed by the callback
|
||||
# in which case it has already been removed from hook.plugin.hooks and
|
||||
# we wouldn't be able to test it with h == hook anyway.
|
||||
return 0
|
||||
|
||||
for h in hook.plugin.hooks:
|
||||
@@ -338,11 +327,9 @@ def _on_say_command(word, word_eol, userdata):
|
||||
if not python:
|
||||
return 1
|
||||
|
||||
# Don’t let exceptions here swallow core commands or wedge the UI.
|
||||
try:
|
||||
exec_in_interp(python)
|
||||
except Exception:
|
||||
# Best effort: surface the traceback in the python tab.
|
||||
exc = traceback.format_exc().encode('utf-8', errors='replace')
|
||||
lib.zoitechat_print(lib.ph, exc)
|
||||
return 1
|
||||
@@ -397,11 +384,10 @@ def autoload():
|
||||
configdir = __decode(_cstr(lib.zoitechat_get_info(lib.ph, b'configdir')))
|
||||
addondir = os.path.join(configdir, 'addons')
|
||||
try:
|
||||
with change_cwd(addondir): # Maintaining old behavior
|
||||
with change_cwd(addondir):
|
||||
for f in os.listdir(addondir):
|
||||
if f.endswith('.py'):
|
||||
log('Autoloading', f)
|
||||
# TODO: Set cwd
|
||||
load_filename(os.path.join(addondir, f))
|
||||
|
||||
except FileNotFoundError as e:
|
||||
@@ -538,8 +524,28 @@ def _on_plugin_init(plugin_name, plugin_desc, plugin_version, arg, libdir):
|
||||
|
||||
try:
|
||||
libdir = __decode(_cstr(libdir))
|
||||
modpath = os.path.join(libdir, '..', 'python')
|
||||
sys.path.append(os.path.abspath(modpath))
|
||||
modpaths = [
|
||||
os.path.abspath(os.path.join(libdir, '..', 'python')),
|
||||
os.path.abspath(os.path.join(libdir, 'python')),
|
||||
]
|
||||
|
||||
appdir = os.getenv('APPDIR')
|
||||
if appdir:
|
||||
modpaths.extend([
|
||||
os.path.join(appdir, 'usr', 'lib', 'zoitechat', 'python'),
|
||||
os.path.join(appdir, 'usr', 'lib', 'x86_64-linux-gnu', 'zoitechat', 'python'),
|
||||
])
|
||||
|
||||
if os.getenv('FLATPAK_ID'):
|
||||
modpaths.extend([
|
||||
'/app/lib/zoitechat/python',
|
||||
'/app/lib/x86_64-linux-gnu/zoitechat/python',
|
||||
])
|
||||
|
||||
for modpath in modpaths:
|
||||
if os.path.isdir(modpath) and modpath not in sys.path:
|
||||
sys.path.append(modpath)
|
||||
|
||||
zoitechat = importlib.import_module('zoitechat')
|
||||
|
||||
except (UnicodeDecodeError, ImportError) as e:
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
<None Include="python.def" />
|
||||
<None Include="python.py" />
|
||||
<None Include="xchat.py" />
|
||||
<None Include="hexchat.py" />
|
||||
<None Include="_zoitechat.py" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -30,5 +30,8 @@
|
||||
<None Include="xchat.py">
|
||||
<Filter>Source Files</Filter>
|
||||
</None>
|
||||
<None Include="hexchat.py">
|
||||
<Filter>Source Files</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@@ -10,7 +10,7 @@ sysinfo_deps = [
|
||||
]
|
||||
|
||||
sysinfo_includes = []
|
||||
sysinfo_cargs = []
|
||||
sysinfo_cargs = ['-DHAVE_CONFIG_H']
|
||||
|
||||
system = host_machine.system()
|
||||
if system == 'linux' or system == 'gnu' or system.startswith('gnu/') or system == 'darwin' or system == 'freebsd'
|
||||
@@ -19,6 +19,10 @@ if system == 'linux' or system == 'gnu' or system.startswith('gnu/') or system =
|
||||
'shared/df.c'
|
||||
]
|
||||
|
||||
if get_option('gtk-frontend')
|
||||
sysinfo_cargs += '-DUSE_GTK_FRONTEND'
|
||||
endif
|
||||
|
||||
if system == 'linux' or system == 'gnu' or system.startswith('gnu/') or system == 'freebsd'
|
||||
libpci = dependency('libpci', required: false, method: 'pkg-config')
|
||||
if libpci.found()
|
||||
@@ -30,6 +34,10 @@ if system == 'linux' or system == 'gnu' or system.startswith('gnu/') or system =
|
||||
pciids = join_paths(picidsdir, 'pci.ids')
|
||||
sysinfo_cargs += '-DPCIIDS_FILE="@0@"'.format(pciids)
|
||||
endif
|
||||
if get_option('gtk-frontend')
|
||||
sysinfo_deps += dependency('gtk+-3.0', version: '>= 3.22')
|
||||
endif
|
||||
|
||||
sysinfo_includes += 'unix'
|
||||
sysinfo_sources += [
|
||||
'unix/backend.c',
|
||||
@@ -52,7 +60,7 @@ endif
|
||||
|
||||
shared_module('sysinfo', sysinfo_sources,
|
||||
dependencies: sysinfo_deps,
|
||||
include_directories: include_directories(sysinfo_includes),
|
||||
include_directories: [config_h_include, include_directories(sysinfo_includes)],
|
||||
c_args: sysinfo_cargs,
|
||||
install: true,
|
||||
install_dir: plugindir,
|
||||
|
||||
@@ -32,6 +32,10 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "format.h"
|
||||
#include "df.h"
|
||||
|
||||
@@ -276,12 +280,8 @@ sysinfo_backend_get_network(void)
|
||||
|
||||
static const char *sysinfo_detect_toolkit(void)
|
||||
{
|
||||
#if defined(HAVE_GTK3)
|
||||
#if defined(USE_GTK_FRONTEND)
|
||||
return "GTK3";
|
||||
#elif defined(HAVE_GTK2)
|
||||
return "GTK2";
|
||||
#elif defined(HAVE_GTK)
|
||||
return "GTK";
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
|
||||
@@ -32,7 +32,7 @@ char *sysinfo_backend_get_network(void);
|
||||
|
||||
/*
|
||||
* Short description of the UI/toolkit + display backend.
|
||||
* Examples: "GTK3 / Wayland", "GTK2 / X11", "Windows / GTK3".
|
||||
* Examples: "GTK3 / Wayland", "Windows / GTK3".
|
||||
*/
|
||||
char *sysinfo_backend_get_ui(void);
|
||||
|
||||
|
||||
@@ -208,7 +208,6 @@ sysinfo_cb (char *word[], char *word_eol[], void *userdata)
|
||||
int offset = 0, channel_type;
|
||||
char *cmd;
|
||||
|
||||
/* Allow overriding global announce setting */
|
||||
if (!strcmp ("-e", word[2]))
|
||||
{
|
||||
announce = FALSE;
|
||||
@@ -220,7 +219,6 @@ sysinfo_cb (char *word[], char *word_eol[], void *userdata)
|
||||
offset++;
|
||||
}
|
||||
|
||||
/* Cannot send to server tab */
|
||||
channel_type = zoitechat_list_int (ph, NULL, "type");
|
||||
if (channel_type != 2 /* SESS_CHANNEL */ && channel_type != 3 /* SESS_DIALOG */)
|
||||
announce = FALSE;
|
||||
@@ -246,7 +244,6 @@ zoitechat_plugin_init (zoitechat_plugin *plugin_handle, char **plugin_name, char
|
||||
|
||||
zoitechat_hook_command (ph, "SYSINFO", ZOITECHAT_PRI_NORM, sysinfo_cb, sysinfo_help, NULL);
|
||||
|
||||
/* Match the classic label from HexChat so people can actually find it. */
|
||||
zoitechat_command (ph, "MENU ADD \"Window/Display System Info\" \"SYSINFO\"");
|
||||
zoitechat_printf (ph, _("%s plugin loaded\n"), name);
|
||||
return 1;
|
||||
@@ -255,7 +252,6 @@ zoitechat_plugin_init (zoitechat_plugin *plugin_handle, char **plugin_name, char
|
||||
int
|
||||
zoitechat_plugin_deinit (void)
|
||||
{
|
||||
/* Keep both in case older builds used a different label. */
|
||||
zoitechat_command (ph, "MENU DEL \"Window/Send System Info\"");
|
||||
zoitechat_command (ph, "MENU DEL \"Window/Display System Info\"");
|
||||
zoitechat_printf (ph, _("%s plugin unloaded\n"), name);
|
||||
|
||||
@@ -19,7 +19,11 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#if defined(HAVE_GTK3) || defined(HAVE_GTK2) || defined(HAVE_GTK)
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if defined(USE_GTK_FRONTEND)
|
||||
#include <gdk/gdk.h>
|
||||
#endif
|
||||
#include "parse.h"
|
||||
@@ -175,12 +179,8 @@ char *sysinfo_backend_get_network(void)
|
||||
|
||||
static const char *sysinfo_detect_toolkit(void)
|
||||
{
|
||||
#if defined(HAVE_GTK3)
|
||||
#if defined(USE_GTK_FRONTEND)
|
||||
return "GTK3";
|
||||
#elif defined(HAVE_GTK2)
|
||||
return "GTK2";
|
||||
#elif defined(HAVE_GTK)
|
||||
return "GTK";
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
@@ -194,7 +194,7 @@ static const char *sysinfo_detect_display_backend(void)
|
||||
const gboolean session_wayland = session && g_ascii_strcasecmp(session, "wayland") == 0;
|
||||
|
||||
/* Best-effort: ask GDK what it actually opened, if available. */
|
||||
#if defined(HAVE_GTK3) || defined(HAVE_GTK2) || defined(HAVE_GTK)
|
||||
#if defined(USE_GTK_FRONTEND)
|
||||
{
|
||||
GdkDisplay *display = gdk_display_get_default();
|
||||
if (display)
|
||||
|
||||
@@ -132,7 +132,6 @@ void pci_find_fullname(char *fullname, char *vendor, char *device)
|
||||
if(fp == NULL)
|
||||
{
|
||||
g_snprintf(fullname, bsize, "%s:%s", vendor, device);
|
||||
//sysinfo_print_error ("pci.ids file not found! You might want to adjust your pciids setting with /SYSINFO SET pciids (you can query its current value with /SYSINFO LIST).\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -26,6 +26,10 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "../../../src/common/sysinfo/sysinfo.h"
|
||||
|
||||
#include "../format.h"
|
||||
@@ -106,12 +110,8 @@ static char *get_memory_info (void)
|
||||
|
||||
static const char *sysinfo_detect_toolkit(void)
|
||||
{
|
||||
#if defined(HAVE_GTK3)
|
||||
#if defined(USE_GTK_FRONTEND)
|
||||
return "GTK3";
|
||||
#elif defined(HAVE_GTK2)
|
||||
return "GTK2";
|
||||
#elif defined(HAVE_GTK)
|
||||
return "GTK";
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#define APPCAST_URL "https://zoitechat.zoite.net/appcast.xml"
|
||||
|
||||
static zoitechat_plugin *ph; /* plugin handle */
|
||||
static zoitechat_plugin *ph;
|
||||
static char name[] = "Update Checker";
|
||||
static char desc[] = "Check for ZoiteChat updates automatically";
|
||||
static char version[] = "5.0";
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#define PLAYING 1
|
||||
#define PAUSED 3
|
||||
|
||||
static zoitechat_plugin *ph; /* plugin handle */
|
||||
static zoitechat_plugin *ph;
|
||||
|
||||
static int
|
||||
winamp(char *word[], char *word_eol[], void *userdata)
|
||||
@@ -130,7 +130,6 @@ zoitechat_plugin_init(zoitechat_plugin *plugin_handle,
|
||||
char **plugin_version,
|
||||
char *arg)
|
||||
{
|
||||
/* we need to save this for use with any zoitechat_* functions */
|
||||
ph = plugin_handle;
|
||||
|
||||
*plugin_name = "Winamp";
|
||||
@@ -142,7 +141,7 @@ zoitechat_plugin_init(zoitechat_plugin *plugin_handle,
|
||||
|
||||
zoitechat_print (ph, "Winamp plugin loaded\n");
|
||||
|
||||
return 1; /* return 1 for success */
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
10
readme.md
10
readme.md
@@ -1,11 +1,10 @@
|
||||
<div align="center">
|
||||
<img src="data/icons/zoitechat.svg" height="230">
|
||||
|
||||
[](https://github.com/ZoiteChat/zoitechat/actions/workflows/debian-build.yml)
|
||||
[](https://github.com/ZoiteChat/zoitechat/actions/workflows/flatpak-build.yml)
|
||||
[](https://github.com/ZoiteChat/zoitechat/actions/workflows/appimage-build.yml)
|
||||
[](https://github.com/ZoiteChat/zoitechat/actions/workflows/windows-build.yml)
|
||||
[](https://github.com/ZoiteChat/zoitechat/actions/workflows/openbsd-build.yml)
|
||||
[](https://github.com/ZoiteChat/zoitechat/actions/workflows/manjaro-package-build.yml)
|
||||
|
||||
[![Version][github-version-img]][github-version-uri] [![Downloads][github-downloads-img]][github-downloads-uri] [![Size][github-size-img]][github-size-img] [![Last Commit][github-commit-img]][github-commit-img] [![Contributors][contribs-all-img]](#contributors-)
|
||||
|
||||
@@ -37,6 +36,9 @@ See [IRCHelp.org](http://irchelp.org) for information about IRC in general.
|
||||
For more information on ZoiteChat please read our [documentation](https://docs.zoitechat.zoite.net/):
|
||||
- [Downloads](https://zoitechat.zoite.net/download)
|
||||
|
||||
- [Troubleshooting](troubleshooting.md)
|
||||
|
||||
|
||||
---
|
||||
|
||||
<sub>
|
||||
@@ -52,7 +54,3 @@ provide binary packages linked to the OpenSSL libraries, provided that
|
||||
all other requirements of the GPL are met.
|
||||
See file COPYING for details.
|
||||
</sub>
|
||||
|
||||
## macOS debugging
|
||||
|
||||
If you are troubleshooting local macOS build/run/debug issues (including Xcode setup), see `osx/DEBUGGING.md`.
|
||||
|
||||
@@ -419,6 +419,7 @@ const struct prefs vars[] =
|
||||
{"gui_input_nick", P_OFFINT (hex_gui_input_nick), TYPE_BOOL},
|
||||
{"gui_input_spell", P_OFFINT (hex_gui_input_spell), TYPE_BOOL},
|
||||
{"gui_input_style", P_OFFINT (hex_gui_input_style), TYPE_BOOL},
|
||||
{"gui_gtk3_theme_name", P_OFFSET (hex_gui_gtk3_theme_name), TYPE_STR},
|
||||
{"gui_join_dialog", P_OFFINT (hex_gui_join_dialog), TYPE_BOOL},
|
||||
{"gui_lagometer", P_OFFINT (hex_gui_lagometer), TYPE_INT},
|
||||
{"gui_lang", P_OFFINT (hex_gui_lang), TYPE_INT},
|
||||
@@ -764,7 +765,6 @@ load_default_config(void)
|
||||
prefs.hex_gui_input_style = 1;
|
||||
prefs.hex_gui_join_dialog = 1;
|
||||
prefs.hex_gui_quit_dialog = 1;
|
||||
/* prefs.hex_gui_slist_skip = 1; */
|
||||
prefs.hex_gui_tab_chans = 1;
|
||||
prefs.hex_gui_tab_dialogs = 1;
|
||||
prefs.hex_gui_tab_icons = 1;
|
||||
@@ -788,7 +788,7 @@ load_default_config(void)
|
||||
prefs.hex_irc_reconnect_rejoin = 1;
|
||||
prefs.hex_irc_cap_server_time = 1;
|
||||
prefs.hex_irc_logging = 1;
|
||||
prefs.hex_irc_who_join = 1; /* Can kick with inordinate amount of channels, required for some of our features though, TODO: add cap like away check? */
|
||||
prefs.hex_irc_who_join = 1;
|
||||
prefs.hex_irc_whois_front = 1;
|
||||
prefs.hex_net_auto_reconnect = 1;
|
||||
prefs.hex_net_throttle = 1;
|
||||
@@ -819,7 +819,7 @@ load_default_config(void)
|
||||
prefs.hex_flood_ctcp_num = 5;
|
||||
prefs.hex_flood_ctcp_time = 30;
|
||||
prefs.hex_flood_msg_num = 5;
|
||||
/*FIXME*/ prefs.hex_flood_msg_time = 30;
|
||||
prefs.hex_flood_msg_time = 30;
|
||||
prefs.hex_gui_chanlist_maxusers = 9999;
|
||||
prefs.hex_gui_chanlist_minusers = 5;
|
||||
prefs.hex_gui_dialog_height = 256;
|
||||
|
||||
@@ -99,8 +99,6 @@ str_to_chanopt (const char *str)
|
||||
return SET_DEFAULT;
|
||||
}
|
||||
|
||||
/* handle the /CHANOPT command */
|
||||
|
||||
int
|
||||
chanopt_command (session *sess, char *tbuf, char *word[], char *word_eol[])
|
||||
{
|
||||
@@ -135,13 +133,13 @@ chanopt_command (session *sess, char *tbuf, char *word[], char *word_eol[])
|
||||
{
|
||||
if (find[0] == 0 || match (find, chanopt[i].name) || (chanopt[i].alias && match (find, chanopt[i].alias)))
|
||||
{
|
||||
if (newval != -1) /* set new value */
|
||||
if (newval != -1)
|
||||
{
|
||||
*(guint8 *)G_STRUCT_MEMBER_P(sess, chanopt[i].offset) = newval;
|
||||
chanopt_changed = TRUE;
|
||||
}
|
||||
|
||||
if (!quiet) /* print value */
|
||||
if (!quiet)
|
||||
{
|
||||
strcpy (tbuf, chanopt[i].name);
|
||||
p = strlen (tbuf);
|
||||
@@ -177,18 +175,13 @@ chanopt_is_set (unsigned int global, guint8 per_chan_setting)
|
||||
return global;
|
||||
}
|
||||
|
||||
/* === below is LOADING/SAVING stuff only === */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/* Per-Channel Alerts */
|
||||
/* use a byte, because we need a pointer to each element */
|
||||
guint8 alert_balloon;
|
||||
guint8 alert_beep;
|
||||
guint8 alert_taskbar;
|
||||
guint8 alert_tray;
|
||||
|
||||
/* Per-Channel Settings */
|
||||
guint8 text_hidejoinpart;
|
||||
guint8 text_logging;
|
||||
guint8 text_scrollback;
|
||||
@@ -218,12 +211,10 @@ chanopt_find (char *network, char *channel, gboolean add_new)
|
||||
if (!add_new)
|
||||
return NULL;
|
||||
|
||||
/* allocate a new one */
|
||||
co = g_new0 (chanopt_in_memory, 1);
|
||||
co->channel = g_strdup (channel);
|
||||
co->network = g_strdup (network);
|
||||
|
||||
/* set all values to SET_DEFAULT */
|
||||
i = 0;
|
||||
while (i < sizeof (chanopt) / sizeof (channel_options))
|
||||
{
|
||||
@@ -254,8 +245,6 @@ chanopt_add_opt (chanopt_in_memory *co, char *var, int new_value)
|
||||
}
|
||||
}
|
||||
|
||||
/* load chanopt.conf from disk into our chanopt_list GSList */
|
||||
|
||||
static void
|
||||
chanopt_load_all (void)
|
||||
{
|
||||
@@ -265,7 +254,6 @@ chanopt_load_all (void)
|
||||
char *network = NULL;
|
||||
chanopt_in_memory *current = NULL;
|
||||
|
||||
/* 1. load the old file into our GSList */
|
||||
fh = zoitechat_open_file ("chanopt.conf", O_RDONLY, 0, 0);
|
||||
if (fh != -1)
|
||||
{
|
||||
@@ -326,7 +314,6 @@ chanopt_load (session *sess)
|
||||
if (!co)
|
||||
return;
|
||||
|
||||
/* fill in all the sess->xxxxx fields */
|
||||
i = 0;
|
||||
while (i < sizeof (chanopt) / sizeof (channel_options))
|
||||
{
|
||||
@@ -352,8 +339,6 @@ chanopt_save (session *sess)
|
||||
if (!network)
|
||||
return;
|
||||
|
||||
/* 2. reconcile sess with what we loaded from disk */
|
||||
|
||||
co = chanopt_find (network, sess->session_name, TRUE);
|
||||
|
||||
i = 0;
|
||||
|
||||
@@ -743,9 +743,6 @@ dcc_read (GIOChannel *source, GIOCondition condition, struct DCC *dcc)
|
||||
EMIT_SIGNAL (XP_TE_DCCRECVERR, dcc->serv->front_session, dcc->file,
|
||||
dcc->destfile, dcc->nick,
|
||||
errorstring ((n < 0) ? sock_error () : 0), 0);
|
||||
/* send ack here? but the socket is dead */
|
||||
/*if (need_ack)
|
||||
dcc_send_ack (dcc);*/
|
||||
dcc_close (dcc, STAT_FAILED, FALSE);
|
||||
return TRUE;
|
||||
}
|
||||
@@ -1383,7 +1380,6 @@ dcc_connect (struct DCC *dcc)
|
||||
dcc_close (dcc, STAT_FAILED, FALSE);
|
||||
return;
|
||||
}
|
||||
/* possible problems with filenames containing spaces? */
|
||||
if (dcc->type == TYPE_RECV)
|
||||
g_snprintf (tbuf, sizeof (tbuf), strchr (dcc->file, ' ') ?
|
||||
"DCC SEND \"%s\" %u %d %" G_GUINT64_FORMAT " %d" :
|
||||
@@ -1660,17 +1656,14 @@ dcc_listen_init (struct DCC *dcc, session *sess)
|
||||
|
||||
SAddr.sin_family = AF_INET;
|
||||
|
||||
/*if local_ip is specified use that*/
|
||||
if (prefs.local_ip != 0xffffffff)
|
||||
{
|
||||
my_addr = prefs.local_ip;
|
||||
SAddr.sin_addr.s_addr = prefs.local_ip;
|
||||
}
|
||||
/*otherwise use the default*/
|
||||
else
|
||||
my_addr = SAddr.sin_addr.s_addr;
|
||||
|
||||
/*if we have a valid portrange try to use that*/
|
||||
if (prefs.hex_dcc_port_first > 0)
|
||||
{
|
||||
SAddr.sin_port = 0;
|
||||
@@ -1680,7 +1673,6 @@ dcc_listen_init (struct DCC *dcc, session *sess)
|
||||
{
|
||||
SAddr.sin_port = htons (prefs.hex_dcc_port_first + i);
|
||||
i++;
|
||||
/*printf("Trying to bind against port: %d\n",ntohs(SAddr.sin_port));*/
|
||||
bindretval = bind (dcc->sok, (struct sockaddr *) &SAddr, sizeof (SAddr));
|
||||
}
|
||||
|
||||
@@ -1707,12 +1699,8 @@ dcc_listen_init (struct DCC *dcc, session *sess)
|
||||
|
||||
dcc->port = ntohs (SAddr.sin_port);
|
||||
|
||||
/*if we have a dcc_ip, we use that, so the remote client can connect*/
|
||||
/*else we try to take an address from hex_dcc_ip*/
|
||||
/*if something goes wrong we tell the client to connect to our LAN ip*/
|
||||
dcc->addr = dcc_get_my_address (sess);
|
||||
|
||||
/*if nothing else worked we use the address we bound to*/
|
||||
if (dcc->addr == 0)
|
||||
dcc->addr = my_addr;
|
||||
|
||||
@@ -1728,7 +1716,7 @@ dcc_listen_init (struct DCC *dcc, session *sess)
|
||||
}
|
||||
|
||||
static struct session *dccsess;
|
||||
static char *dccto; /* lame!! */
|
||||
static char *dccto;
|
||||
static gint64 dccmaxcps;
|
||||
static int recursive = FALSE;
|
||||
|
||||
|
||||
@@ -153,8 +153,6 @@ ignore_showlist (session *sess)
|
||||
strcat (tbuf, _("NO "));
|
||||
strcat (tbuf, "\n");
|
||||
PrintText (sess, tbuf);
|
||||
/*EMIT_SIGNAL (XP_TE_IGNORELIST, sess, ig->mask, 0, 0, 0, 0); */
|
||||
/* use this later, when TE's support 7 args */
|
||||
list = list->next;
|
||||
}
|
||||
|
||||
@@ -413,4 +411,3 @@ flood_check (char *nick, char *ip, server *serv, session *sess, int what) /*0=ct
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -108,7 +108,6 @@ find_session_from_nick (char *nick, server *serv)
|
||||
|
||||
if (serv->front_session)
|
||||
{
|
||||
// If we are here for ChanServ, then it is usually a reply for the user
|
||||
if (!g_ascii_strcasecmp(nick, "ChanServ") || userlist_find (serv->front_session, nick))
|
||||
return serv->front_session;
|
||||
}
|
||||
@@ -222,15 +221,51 @@ inbound_privmsg (server *serv, char *from, char *ip, char *text, int id,
|
||||
|
||||
/* used for Alerts section. Masks can be separated by commas and spaces. */
|
||||
|
||||
static char *
|
||||
alert_normalize_word (const char *text)
|
||||
{
|
||||
GString *normalized;
|
||||
char *composed;
|
||||
const char *p;
|
||||
|
||||
composed = g_utf8_normalize (text, -1, G_NORMALIZE_ALL_COMPOSE);
|
||||
if (!composed)
|
||||
composed = g_strdup (text);
|
||||
|
||||
normalized = g_string_sized_new (strlen (composed));
|
||||
p = composed;
|
||||
|
||||
while (*p)
|
||||
{
|
||||
gunichar ch = g_utf8_get_char ((const guchar *)p);
|
||||
|
||||
/* Ignore selector/joiner codepoints that vary by input method. */
|
||||
if (ch != 0x200D && ch != 0xFE0E && ch != 0xFE0F)
|
||||
g_string_append_unichar (normalized, ch);
|
||||
|
||||
p = g_utf8_next_char (p);
|
||||
}
|
||||
|
||||
g_free (composed);
|
||||
return g_string_free (normalized, FALSE);
|
||||
}
|
||||
|
||||
gboolean
|
||||
alert_match_word (char *word, char *masks)
|
||||
{
|
||||
char *p = masks;
|
||||
char endchar;
|
||||
char *word_normalized;
|
||||
char *mask_normalized;
|
||||
int res;
|
||||
|
||||
word_normalized = alert_normalize_word (word);
|
||||
|
||||
if (masks[0] == 0)
|
||||
{
|
||||
g_free (word_normalized);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
while (1)
|
||||
{
|
||||
@@ -239,15 +274,23 @@ alert_match_word (char *word, char *masks)
|
||||
{
|
||||
endchar = *p;
|
||||
*p = 0;
|
||||
res = match (g_strchug (masks), word);
|
||||
mask_normalized = alert_normalize_word (g_strchug (masks));
|
||||
res = match (mask_normalized, word_normalized);
|
||||
g_free (mask_normalized);
|
||||
*p = endchar;
|
||||
|
||||
if (res)
|
||||
{
|
||||
g_free (word_normalized);
|
||||
return TRUE; /* yes, matched! */
|
||||
}
|
||||
|
||||
masks = p + 1;
|
||||
if (*p == 0)
|
||||
{
|
||||
g_free (word_normalized);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
p++;
|
||||
}
|
||||
@@ -258,6 +301,8 @@ alert_match_text (char *text, char *masks)
|
||||
{
|
||||
unsigned char *p = text;
|
||||
unsigned char endchar;
|
||||
gunichar ch;
|
||||
GUnicodeType ch_type;
|
||||
int res;
|
||||
|
||||
if (masks[0] == 0)
|
||||
@@ -265,26 +310,38 @@ alert_match_text (char *text, char *masks)
|
||||
|
||||
while (1)
|
||||
{
|
||||
if (*p >= '0' && *p <= '9')
|
||||
ch = g_utf8_get_char (p);
|
||||
ch_type = g_unichar_type (ch);
|
||||
|
||||
if (g_unichar_isdigit (ch) || g_unichar_isalpha (ch))
|
||||
{
|
||||
p++;
|
||||
p += g_utf8_skip [p[0]];
|
||||
continue;
|
||||
}
|
||||
|
||||
/* if it's RFC1459 <special>, it can be inside a word */
|
||||
switch (*p)
|
||||
switch (ch)
|
||||
{
|
||||
case '-': case '[': case ']': case '\\':
|
||||
case '`': case '^': case '{': case '}':
|
||||
case '_': case '|':
|
||||
p++;
|
||||
p += g_utf8_skip [p[0]];
|
||||
continue;
|
||||
}
|
||||
|
||||
/* if it's a 0, space or comma, the word has ended. */
|
||||
if (*p == 0 || *p == ' ' || *p == ',' ||
|
||||
/* if it's anything BUT a letter, the word has ended. */
|
||||
(!g_unichar_isalpha (g_utf8_get_char (p))))
|
||||
/* Symbols (including emoji) can be part of highlighted words. */
|
||||
if (ch_type == G_UNICODE_MATH_SYMBOL ||
|
||||
ch_type == G_UNICODE_CURRENCY_SYMBOL ||
|
||||
ch_type == G_UNICODE_MODIFIER_SYMBOL ||
|
||||
ch_type == G_UNICODE_OTHER_SYMBOL)
|
||||
{
|
||||
p += g_utf8_skip [p[0]];
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Delimiters end the word. */
|
||||
if (*p == 0 || g_unichar_isspace (ch) || g_unichar_ispunct (ch) ||
|
||||
g_unichar_iscntrl (ch))
|
||||
{
|
||||
endchar = *p;
|
||||
*p = 0;
|
||||
@@ -2063,7 +2120,6 @@ scram_authenticate (server *serv, const char *data, const char *digest,
|
||||
|
||||
if (status == SCRAM_IN_PROGRESS)
|
||||
{
|
||||
// Authentication is still in progress
|
||||
encoded = g_base64_encode ((guchar *) output, output_len);
|
||||
tcp_sendf (serv, "AUTHENTICATE %s\r\n", encoded);
|
||||
g_free (encoded);
|
||||
@@ -2071,13 +2127,11 @@ scram_authenticate (server *serv, const char *data, const char *digest,
|
||||
}
|
||||
else if (status == SCRAM_SUCCESS)
|
||||
{
|
||||
// Authentication succeeded
|
||||
tcp_sendf (serv, "AUTHENTICATE +\r\n");
|
||||
g_clear_pointer (&serv->scram_session, scram_session_free);
|
||||
}
|
||||
else if (status == SCRAM_ERROR)
|
||||
{
|
||||
// Authentication failed
|
||||
tcp_sendf (serv, "AUTHENTICATE *\r\n");
|
||||
|
||||
if (serv->scram_session->error != NULL)
|
||||
|
||||
@@ -55,12 +55,39 @@ if host_machine.system() == 'windows'
|
||||
common_includes += include_directories('sysinfo')
|
||||
endif
|
||||
|
||||
marshal = gnome.genmarshal('marshal',
|
||||
sources: 'marshalers.list',
|
||||
prefix: '_zoitechat_marshal',
|
||||
internal: true
|
||||
glib_genmarshal = find_program(
|
||||
'glib-genmarshal',
|
||||
'glib-genmarshal-2.0',
|
||||
required: true,
|
||||
)
|
||||
|
||||
marshal = [
|
||||
custom_target('marshal_h',
|
||||
input: 'marshalers.list',
|
||||
output: 'marshal.h',
|
||||
command: [
|
||||
glib_genmarshal,
|
||||
'--prefix=_zoitechat_marshal',
|
||||
'--header',
|
||||
'@INPUT@',
|
||||
'--output',
|
||||
'@OUTPUT@',
|
||||
]
|
||||
),
|
||||
custom_target('marshal_c',
|
||||
input: 'marshalers.list',
|
||||
output: 'marshal.c',
|
||||
command: [
|
||||
glib_genmarshal,
|
||||
'--prefix=_zoitechat_marshal',
|
||||
'--body',
|
||||
'@INPUT@',
|
||||
'--output',
|
||||
'@OUTPUT@',
|
||||
]
|
||||
)
|
||||
]
|
||||
|
||||
make_te = find_program('make-te.py')
|
||||
|
||||
textevents = custom_target('textevents',
|
||||
@@ -69,11 +96,6 @@ textevents = custom_target('textevents',
|
||||
command: [make_te, '@INPUT@', '@OUTPUT0@', '@OUTPUT1@']
|
||||
)
|
||||
|
||||
# TODO:
|
||||
# LOOKUPD
|
||||
# SIGACTION
|
||||
# HAVE_GTK_MAC
|
||||
|
||||
if libssl_dep.found()
|
||||
common_sources += 'ssl.c'
|
||||
common_deps += libssl_dep
|
||||
@@ -103,7 +125,7 @@ zoitechat_common_dep = declare_dependency(
|
||||
link_with: zoitechat_common,
|
||||
include_directories: common_includes,
|
||||
compile_args: common_cflags,
|
||||
dependencies: common_deps,
|
||||
dependencies: libgio_dep,
|
||||
)
|
||||
|
||||
zoitechat_plugin_dep = declare_dependency(
|
||||
|
||||
@@ -87,7 +87,7 @@ notify_do_network (struct notify *notify, server *serv)
|
||||
return TRUE;
|
||||
|
||||
if (token_foreach (notify->networks, ',', notify_netcmp, serv))
|
||||
return FALSE; /* network list doesn't contain this one */
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@@ -106,8 +106,6 @@ notify_find_server_entry (struct notify *notify, struct server *serv)
|
||||
list = list->next;
|
||||
}
|
||||
|
||||
/* not found, should we add it, or is this not a network where
|
||||
we're monitoring this nick? */
|
||||
if (!notify_do_network (notify, serv))
|
||||
return NULL;
|
||||
|
||||
@@ -123,11 +121,7 @@ notify_save (void)
|
||||
{
|
||||
int fh;
|
||||
struct notify *notify;
|
||||
// while reading the notify.conf file, elements are added by prepending to the
|
||||
// list. reverse the list before writing to disk to keep the original
|
||||
// order of the list
|
||||
GSList *list = g_slist_copy(notify_list);
|
||||
list = g_slist_reverse(list);
|
||||
GSList *list = g_slist_reverse (g_slist_copy (notify_list));
|
||||
|
||||
fh = zoitechat_open_file ("notify.conf", O_TRUNC | O_WRONLY | O_CREAT, 0600, XOF_DOMODE);
|
||||
if (fh != -1)
|
||||
@@ -146,7 +140,7 @@ notify_save (void)
|
||||
}
|
||||
close (fh);
|
||||
}
|
||||
g_slist_free(list);
|
||||
g_slist_free (list);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -42,19 +42,16 @@ struct notify_per_server
|
||||
extern GSList *notify_list;
|
||||
extern int notify_tag;
|
||||
|
||||
/* the WATCH stuff */
|
||||
void notify_set_online (server * serv, char *nick,
|
||||
const message_tags_data *tags_data);
|
||||
void notify_set_offline (server * serv, char *nick, int quiet,
|
||||
const message_tags_data *tags_data);
|
||||
/* the MONITOR stuff */
|
||||
const message_tags_data *tags_data);
|
||||
void notify_set_online_list (server * serv, char *users,
|
||||
const message_tags_data *tags_data);
|
||||
void notify_set_offline_list (server * serv, char *users, int quiet,
|
||||
const message_tags_data *tags_data);
|
||||
const message_tags_data *tags_data);
|
||||
void notify_send_watches (server * serv);
|
||||
|
||||
/* the general stuff */
|
||||
void notify_adduser (char *name, char *networks);
|
||||
int notify_deluser (char *name);
|
||||
void notify_cleanup (void);
|
||||
@@ -65,7 +62,6 @@ gboolean notify_is_in_list (server *serv, char *name);
|
||||
int notify_isnotify (session *sess, char *name);
|
||||
struct notify_per_server *notify_find_server_entry (struct notify *notify, struct server *serv);
|
||||
|
||||
/* the old ISON stuff - remove me? */
|
||||
void notify_markonline (server *serv, char *word[],
|
||||
const message_tags_data *tags_data);
|
||||
int notify_checklist (void);
|
||||
|
||||
@@ -3774,37 +3774,29 @@ cmd_url (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
||||
if (zoitechat_theme_path_from_arg (word[2], &theme_path))
|
||||
{
|
||||
GError *error = NULL;
|
||||
char *basename = g_path_get_basename (theme_path);
|
||||
char *dot = strrchr (basename, '.');
|
||||
char *message;
|
||||
char *theme_name = NULL;
|
||||
|
||||
if (dot)
|
||||
*dot = '\0';
|
||||
|
||||
if (zoitechat_import_theme (theme_path, &error))
|
||||
if (zoitechat_import_gtk3_theme_archive (theme_path, &theme_name, &error))
|
||||
{
|
||||
if (zoitechat_apply_theme (basename, &error))
|
||||
if (theme_name)
|
||||
{
|
||||
message = g_strdup_printf (_("Theme \"%s\" imported and applied."), basename);
|
||||
char *message = g_strdup_printf (_("GTK3 theme \"%s\" imported. Use Theme settings to apply it."), theme_name);
|
||||
fe_message (message, FE_MSG_INFO);
|
||||
handle_command (sess, "gui apply", FALSE);
|
||||
g_free (message);
|
||||
}
|
||||
else
|
||||
{
|
||||
fe_message (error ? error->message : _("Theme imported, but failed to apply."),
|
||||
FE_MSG_ERROR);
|
||||
g_clear_error (&error);
|
||||
fe_message (_("GTK3 theme imported. Use Theme settings to apply it."), FE_MSG_INFO);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fe_message (error ? error->message : _("Failed to import theme."),
|
||||
fe_message (error ? error->message : _("Failed to import GTK3 theme archive."),
|
||||
FE_MSG_ERROR);
|
||||
g_clear_error (&error);
|
||||
}
|
||||
|
||||
g_free (basename);
|
||||
g_free (theme_name);
|
||||
g_free (theme_path);
|
||||
return TRUE;
|
||||
}
|
||||
@@ -4109,7 +4101,7 @@ const struct commands xc_cmds[] = {
|
||||
{"ME", cmd_me, 0, 0, 1,
|
||||
N_("ME <action>, sends the action to the current channel (actions are written in the 3rd person, like /me jumps)")},
|
||||
{"MENU", cmd_menu, 0, 0, 1, "MENU [-eX] [-i<ICONFILE>] [-k<mod>,<key>] [-m] [-pX] [-r<X,group>] [-tX] {ADD|DEL} <path> [command] [unselect command]\n"
|
||||
" See http://zoitechat.zoite.net/docs/en/latest/plugins.html#controlling-the-gui for more details."},
|
||||
" See https://docs.zoitechat.zoite.net/en/latest/en/latest/plugins.html#controlling-the-gui for more details."},
|
||||
{"MHOP", cmd_mhop, 1, 1, 1,
|
||||
N_("MHOP, Mass hop's all users in the current channel (needs chanop)")},
|
||||
{"MKICK", cmd_mkick, 1, 1, 1,
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#define _(x) zoitechat_gettext(ph,x)
|
||||
|
||||
static zoitechat_plugin *ph; /* plugin handle */
|
||||
static zoitechat_plugin *ph;
|
||||
static GSList *timer_list = NULL;
|
||||
|
||||
#define STATIC
|
||||
@@ -146,7 +146,6 @@ timer_showlist (void)
|
||||
zoitechat_print (ph, _(HELP));
|
||||
return;
|
||||
}
|
||||
/* 00000 00000000 0000000 abc */
|
||||
zoitechat_print (ph, _("\026 Ref# Seconds Repeat Command \026\n"));
|
||||
list = timer_list;
|
||||
while (list)
|
||||
@@ -218,7 +217,6 @@ zoitechat_plugin_init
|
||||
(zoitechat_plugin *plugin_handle, char **plugin_name,
|
||||
char **plugin_desc, char **plugin_version, char *arg)
|
||||
{
|
||||
/* we need to save this for use with any zoitechat_* functions */
|
||||
ph = plugin_handle;
|
||||
|
||||
*plugin_name = "Timer";
|
||||
@@ -227,5 +225,5 @@ zoitechat_plugin_init
|
||||
|
||||
zoitechat_hook_command (ph, "TIMER", ZOITECHAT_PRI_NORM, timer_cb, _(HELP), 0);
|
||||
|
||||
return 1; /* return 1 for success */
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#define CLIENT_KEY "Client Key"
|
||||
#define SERVER_KEY "Server Key"
|
||||
|
||||
// EVP_MD_CTX_create() and EVP_MD_CTX_destroy() were renamed in OpenSSL 1.1.0
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
|
||||
#define EVP_MD_CTX_new(ctx) EVP_MD_CTX_create(ctx)
|
||||
#define EVP_MD_CTX_free(ctx) EVP_MD_CTX_destroy(ctx)
|
||||
@@ -46,7 +45,6 @@ scram_session
|
||||
|
||||
if (md == NULL)
|
||||
{
|
||||
// Unknown message digest
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -189,7 +187,6 @@ process_server_first (scram_session *session, const char *data, char **output,
|
||||
|
||||
client_nonce_len = strlen (session->client_nonce_b64);
|
||||
|
||||
// The server can append his nonce to the client's nonce
|
||||
if (strlen (server_nonce_b64) < client_nonce_len ||
|
||||
strncmp (server_nonce_b64, session->client_nonce_b64, client_nonce_len))
|
||||
{
|
||||
@@ -199,28 +196,22 @@ process_server_first (scram_session *session, const char *data, char **output,
|
||||
|
||||
g_base64_decode_inplace ((gchar *) salt, &salt_len);
|
||||
|
||||
// SaltedPassword := Hi(Normalize(password), salt, i)
|
||||
session->salted_password = g_malloc (session->digest_size);
|
||||
|
||||
PKCS5_PBKDF2_HMAC (session->password, strlen (session->password), (unsigned char *) salt,
|
||||
salt_len, iteration_count, session->digest, session->digest_size,
|
||||
session->salted_password);
|
||||
|
||||
// AuthMessage := client-first-message-bare + "," +
|
||||
// server-first-message + "," +
|
||||
// client-final-message-without-proof
|
||||
client_final_message_without_proof = g_strdup_printf ("c=biws,r=%s", server_nonce_b64);
|
||||
|
||||
session->auth_message = g_strdup_printf ("%s,%s,%s", session->client_first_message_bare,
|
||||
data, client_final_message_without_proof);
|
||||
|
||||
// ClientKey := HMAC(SaltedPassword, "Client Key")
|
||||
client_key = g_malloc0 (session->digest_size);
|
||||
|
||||
HMAC (session->digest, session->salted_password, session->digest_size,
|
||||
(unsigned char *) CLIENT_KEY, strlen (CLIENT_KEY), client_key, &client_key_len);
|
||||
|
||||
// StoredKey := H(ClientKey)
|
||||
if (!create_SHA (session, client_key, session->digest_size, stored_key, &stored_key_len))
|
||||
{
|
||||
g_free (client_final_message_without_proof);
|
||||
@@ -230,12 +221,10 @@ process_server_first (scram_session *session, const char *data, char **output,
|
||||
return SCRAM_ERROR;
|
||||
}
|
||||
|
||||
// ClientSignature := HMAC(StoredKey, AuthMessage)
|
||||
client_signature = g_malloc0 (session->digest_size);
|
||||
HMAC (session->digest, stored_key, stored_key_len, (unsigned char *) session->auth_message,
|
||||
strlen ((char *) session->auth_message), client_signature, NULL);
|
||||
|
||||
// ClientProof := ClientKey XOR ClientSignature
|
||||
client_proof = g_malloc0 (client_key_len);
|
||||
|
||||
for (i = 0; i < client_key_len; i++)
|
||||
@@ -276,12 +265,10 @@ process_server_final (scram_session *session, const char *data)
|
||||
verifier = g_strdup (data + 2);
|
||||
g_base64_decode_inplace (verifier, &verifier_len);
|
||||
|
||||
// ServerKey := HMAC(SaltedPassword, "Server Key")
|
||||
server_key = g_malloc0 (session->digest_size);
|
||||
HMAC (session->digest, session->salted_password, session->digest_size,
|
||||
(unsigned char *) SERVER_KEY, strlen (SERVER_KEY), server_key, &server_key_len);
|
||||
|
||||
// ServerSignature := HMAC(ServerKey, AuthMessage)
|
||||
server_signature = g_malloc0 (session->digest_size);
|
||||
HMAC (session->digest, server_key, session->digest_size,
|
||||
(unsigned char *) session->auth_message, strlen ((char *) session->auth_message),
|
||||
@@ -330,4 +317,4 @@ scram_process (scram_session *session, const char *input, char **output, size_t
|
||||
return status;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -510,16 +510,7 @@ server_stopconnecting (server * serv)
|
||||
static void
|
||||
ssl_cb_info (SSL * s, int where, int ret)
|
||||
{
|
||||
/* char buf[128];*/
|
||||
|
||||
|
||||
return; /* FIXME: make debug level adjustable in serverlist or settings */
|
||||
|
||||
/* g_snprintf (buf, sizeof (buf), "%s (%d)", SSL_state_string_long (s), where);
|
||||
if (g_sess)
|
||||
EMIT_SIGNAL (XP_TE_SSLMESSAGE, g_sess, buf, NULL, NULL, NULL, 0);
|
||||
else
|
||||
fprintf (stderr, "%s\n", buf);*/
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -625,14 +616,6 @@ ssl_do_connect (server * serv)
|
||||
cert_info.algorithm, cert_info.algorithm_bits);
|
||||
EMIT_SIGNAL (XP_TE_SSLMESSAGE, serv->server_session, buf, NULL, NULL,
|
||||
NULL, 0);
|
||||
/*if (cert_info.rsa_tmp_bits)
|
||||
{
|
||||
g_snprintf (buf, sizeof (buf),
|
||||
" Public key algorithm uses ephemeral key with %d bits",
|
||||
cert_info.rsa_tmp_bits);
|
||||
EMIT_SIGNAL (XP_TE_SSLMESSAGE, serv->server_session, buf, NULL, NULL,
|
||||
NULL, 0);
|
||||
}*/
|
||||
g_snprintf (buf, sizeof (buf), " Sign algorithm %s",
|
||||
cert_info.sign_algorithm/*, cert_info.sign_algorithm_bits*/);
|
||||
EMIT_SIGNAL (XP_TE_SSLMESSAGE, serv->server_session, buf, NULL, NULL,
|
||||
@@ -675,8 +658,6 @@ ssl_do_connect (server * serv)
|
||||
}
|
||||
break;
|
||||
}
|
||||
/* g_snprintf (buf, sizeof (buf), "* Verify OK (?)"); */
|
||||
/* EMIT_SIGNAL (XP_TE_SSLMESSAGE, serv->server_session, buf, NULL, NULL, NULL, 0); */
|
||||
case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY:
|
||||
case X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE:
|
||||
case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT:
|
||||
@@ -1447,6 +1428,16 @@ server_child (server * serv)
|
||||
GProxyResolver *resolver;
|
||||
GError *error = NULL;
|
||||
|
||||
/*
|
||||
* In Flatpak, auto proxy resolution may block indefinitely when
|
||||
* proxy backends are unavailable in the sandbox. If this happens,
|
||||
* the connection attempt appears to hang after pressing Connect.
|
||||
* Prefer direct connections there unless the user configured a
|
||||
* specific proxy manually.
|
||||
*/
|
||||
if (g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS))
|
||||
goto proxy_lookup_done;
|
||||
|
||||
resolver = g_proxy_resolver_get_default ();
|
||||
url = g_strdup_printf ("irc://%s:%d", hostname, port);
|
||||
proxy_list = g_proxy_resolver_lookup (resolver, url, NULL, &error);
|
||||
@@ -1477,6 +1468,8 @@ server_child (server * serv)
|
||||
|
||||
g_strfreev (proxy_list);
|
||||
g_free (url);
|
||||
|
||||
proxy_lookup_done:;
|
||||
}
|
||||
|
||||
if (prefs.hex_net_proxy_host[0] &&
|
||||
@@ -1858,11 +1851,9 @@ server_set_defaults (server *serv)
|
||||
char *
|
||||
server_get_network (server *serv, gboolean fallback)
|
||||
{
|
||||
/* check the network list */
|
||||
if (serv->network)
|
||||
return ((ircnet *)serv->network)->name;
|
||||
|
||||
/* check the network name given in 005 NETWORK=... */
|
||||
if (serv->server_session && *serv->server_session->channel)
|
||||
return serv->server_session->channel;
|
||||
|
||||
@@ -1881,7 +1872,6 @@ server_set_name (server *serv, char *name)
|
||||
if (name[0] == 0)
|
||||
name = serv->hostname;
|
||||
|
||||
/* strncpy parameters must NOT overlap */
|
||||
if (name != serv->servername)
|
||||
{
|
||||
safe_strcpy (serv->servername, name, sizeof (serv->servername));
|
||||
|
||||
@@ -1065,7 +1065,7 @@ servlist_load (void)
|
||||
}
|
||||
}
|
||||
if (buf[0] == 'N')
|
||||
net = servlist_net_add (buf + 2, /* comment */ NULL, FALSE);
|
||||
net = servlist_net_add (buf + 2, NULL, FALSE);
|
||||
}
|
||||
fclose (fp);
|
||||
|
||||
|
||||
@@ -125,8 +125,4 @@ GSList *servlist_favchan_listadd (GSList *chanlist, char *channel, char *key);
|
||||
|
||||
gboolean joinlist_is_in_list (server *serv, char *channel);
|
||||
|
||||
/* FIXME
|
||||
void joinlist_split (char *autojoin, GSList **channels, GSList **keys);
|
||||
void joinlist_free (GSList *channels, GSList *keys);
|
||||
*/
|
||||
#endif
|
||||
|
||||
@@ -154,7 +154,6 @@ _SSL_get_cert_info (struct cert_info *cert_info, SSL * ssl)
|
||||
X509 *peer_cert;
|
||||
X509_PUBKEY *key;
|
||||
X509_ALGOR *algor = NULL;
|
||||
const ASN1_OBJECT *algor_obj = NULL;
|
||||
EVP_PKEY *peer_pkey;
|
||||
char notBefore[64];
|
||||
char notAfter[64];
|
||||
@@ -176,19 +175,11 @@ _SSL_get_cert_info (struct cert_info *cert_info, SSL * ssl)
|
||||
if (!X509_PUBKEY_get0_param(NULL, NULL, 0, &algor, key))
|
||||
return 1;
|
||||
|
||||
X509_ALGOR_get0 (&algor_obj, NULL, NULL, algor);
|
||||
alg = OBJ_obj2nid (algor_obj);
|
||||
#ifdef HAVE_X509_GET_SIGNATURE_NID
|
||||
sign_alg = X509_get_signature_nid (peer_cert);
|
||||
alg = OBJ_obj2nid (algor->algorithm);
|
||||
#ifndef HAVE_X509_GET_SIGNATURE_NID
|
||||
sign_alg = OBJ_obj2nid (peer_cert->sig_alg->algorithm);
|
||||
#else
|
||||
{
|
||||
const X509_ALGOR *signature_algor = NULL;
|
||||
const ASN1_OBJECT *signature_algor_obj = NULL;
|
||||
|
||||
X509_get0_signature (NULL, &signature_algor, peer_cert);
|
||||
X509_ALGOR_get0 (&signature_algor_obj, NULL, NULL, signature_algor);
|
||||
sign_alg = OBJ_obj2nid (signature_algor_obj);
|
||||
}
|
||||
sign_alg = X509_get_signature_nid (peer_cert);
|
||||
#endif
|
||||
ASN1_TIME_snprintf (notBefore, sizeof (notBefore),
|
||||
X509_get_notBefore (peer_cert));
|
||||
@@ -307,10 +298,7 @@ SSL *
|
||||
_SSL_socket (SSL_CTX *ctx, int sd)
|
||||
{
|
||||
SSL *ssl;
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
const SSL_METHOD *method;
|
||||
#endif
|
||||
|
||||
if (!(ssl = SSL_new (ctx)))
|
||||
/* FATAL */
|
||||
@@ -318,12 +306,6 @@ _SSL_socket (SSL_CTX *ctx, int sd)
|
||||
|
||||
SSL_set_fd (ssl, sd);
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
if (SSL_is_server (ssl))
|
||||
SSL_set_accept_state (ssl);
|
||||
else
|
||||
SSL_set_connect_state (ssl);
|
||||
#else
|
||||
#ifndef HAVE_SSL_CTX_GET_SSL_METHOD
|
||||
method = ctx->method;
|
||||
#else
|
||||
@@ -332,8 +314,7 @@ _SSL_socket (SSL_CTX *ctx, int sd)
|
||||
if (method == SSLv23_client_method())
|
||||
SSL_set_connect_state (ssl);
|
||||
else
|
||||
SSL_set_accept_state (ssl);
|
||||
#endif
|
||||
SSL_set_accept_state(ssl);
|
||||
|
||||
return (ssl);
|
||||
}
|
||||
|
||||
@@ -465,7 +465,6 @@ static char *read_hdd_info (IWbemClassObject *object)
|
||||
|
||||
if (name_len >= 4 && name_bstr[0] == L'\\' && name_bstr[1] == L'\\' && name_bstr[2] == L'?' && name_bstr[3] == L'\\')
|
||||
{
|
||||
// This is not a named volume. Skip it.
|
||||
VariantClear (&name_variant);
|
||||
|
||||
return NULL;
|
||||
|
||||
@@ -95,7 +95,6 @@ url_save_node (char* url)
|
||||
{
|
||||
FILE *fd;
|
||||
|
||||
/* open <config>/url.log in append mode */
|
||||
fd = zoitechat_fopen_file ("url.log", "a", 0);
|
||||
if (fd == NULL)
|
||||
{
|
||||
@@ -118,7 +117,6 @@ url_add (char *urltext, int len)
|
||||
char *data;
|
||||
int size;
|
||||
|
||||
/* we don't need any URLs if we have neither URL grabbing nor URL logging enabled */
|
||||
if (!prefs.hex_url_grabber && !prefs.hex_url_logging)
|
||||
{
|
||||
return;
|
||||
@@ -126,12 +124,11 @@ url_add (char *urltext, int len)
|
||||
|
||||
data = g_strndup (urltext, len);
|
||||
|
||||
if (data[len - 1] == '.') /* chop trailing dot */
|
||||
if (data[len - 1] == '.')
|
||||
{
|
||||
len--;
|
||||
data[len] = 0;
|
||||
}
|
||||
/* chop trailing ) but only if there's no counterpart */
|
||||
if (data[len - 1] == ')' && strchr (data, '(') == NULL)
|
||||
{
|
||||
data[len - 1] = 0;
|
||||
@@ -142,7 +139,6 @@ url_add (char *urltext, int len)
|
||||
url_save_node (data);
|
||||
}
|
||||
|
||||
/* the URL is saved already, only continue if we need the URL grabber too */
|
||||
if (!prefs.hex_url_grabber)
|
||||
{
|
||||
g_free (data);
|
||||
@@ -162,11 +158,8 @@ url_add (char *urltext, int len)
|
||||
}
|
||||
|
||||
size = tree_size (url_tree);
|
||||
/* 0 is unlimited */
|
||||
if (prefs.hex_url_grabber_limit > 0 && size >= prefs.hex_url_grabber_limit)
|
||||
{
|
||||
/* the loop is necessary to handle having the limit lowered while
|
||||
ZoiteChat is running */
|
||||
size -= prefs.hex_url_grabber_limit;
|
||||
for(; size > 0; size--)
|
||||
{
|
||||
@@ -183,10 +176,6 @@ url_add (char *urltext, int len)
|
||||
fe_url_add (data);
|
||||
}
|
||||
|
||||
/* check if a word is clickable. This is called on mouse motion events, so
|
||||
keep it FAST! This new version was found to be almost 3x faster than
|
||||
2.4.4 release. */
|
||||
|
||||
static int laststart = 0;
|
||||
static int lastend = 0;
|
||||
static int lasttype = 0;
|
||||
@@ -234,7 +223,6 @@ match_nick (const char *word, int *start, int *end)
|
||||
if (!regex_match (re_nick (), word, start, end))
|
||||
return FALSE;
|
||||
|
||||
/* ignore matches with prefixes that the server doesn't use */
|
||||
if (strchr (NICKPRE, word[*start])
|
||||
&& !strchr (nick_prefixes, word[*start]))
|
||||
return FALSE;
|
||||
|
||||
@@ -169,13 +169,12 @@ errorstring (int err)
|
||||
return tbuf;
|
||||
}
|
||||
}
|
||||
} /* ! if (osvi.dwMajorVersion >= 5) */
|
||||
}
|
||||
|
||||
/* fallback to error number */
|
||||
sprintf (tbuf, "%s %d", _("Error"), err);
|
||||
return tbuf;
|
||||
} /* ! if (err >= WSABASEERR) */
|
||||
#endif /* ! WIN32 */
|
||||
}
|
||||
#endif
|
||||
|
||||
return strerror (err);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -24,14 +24,16 @@
|
||||
#include <glib/gi18n.h>
|
||||
#include <gio/gio.h>
|
||||
|
||||
#include <time.h> /* need time_t */
|
||||
#include <time.h>
|
||||
|
||||
#ifndef ZOITECHAT_H
|
||||
#define ZOITECHAT_H
|
||||
|
||||
gboolean zoitechat_theme_path_from_arg (const char *arg, char **path_out);
|
||||
gboolean zoitechat_import_theme (const char *path, GError **error);
|
||||
gboolean zoitechat_apply_theme (const char *theme_name, GError **error);
|
||||
/* Imports a GTK3 theme archive into ZoiteChat's own gtk3-themes store. */
|
||||
gboolean zoitechat_import_gtk3_theme_archive (const char *archive_path,
|
||||
char **theme_name_out,
|
||||
GError **error);
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
#ifdef __APPLE__
|
||||
@@ -44,11 +46,11 @@ gboolean zoitechat_apply_theme (const char *theme_name, GError **error);
|
||||
#include "tree.h"
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
#include <openssl/ssl.h> /* SSL_() */
|
||||
#include <openssl/ssl.h>
|
||||
#include "scram.h"
|
||||
#endif
|
||||
|
||||
#ifdef __EMX__ /* for o/s 2 */
|
||||
#ifdef __EMX__
|
||||
#define OFLAGS O_BINARY
|
||||
#define g_ascii_strcasecmp stricmp
|
||||
#define g_ascii_strncasecmp strnicmp
|
||||
@@ -59,7 +61,7 @@ gboolean zoitechat_apply_theme (const char *theme_name, GError **error);
|
||||
/* force a 32bit CMP.L */
|
||||
#define WORDL(c0, c1, c2, c3) (guint32)(c0 | (c1 << 8) | (c2 << 16) | (c3 << 24))
|
||||
|
||||
#ifdef WIN32 /* for win32 */
|
||||
#ifdef WIN32
|
||||
#define OFLAGS O_BINARY
|
||||
#define sleep(t) Sleep(t*1000)
|
||||
#include <direct.h>
|
||||
@@ -71,7 +73,7 @@ gboolean zoitechat_apply_theme (const char *theme_name, GError **error);
|
||||
#define S_ISDIR(m) ((m) & _S_IFDIR)
|
||||
#endif
|
||||
#define NETWORK_PRIVATE
|
||||
#else /* for unix */
|
||||
#else
|
||||
#define OFLAGS 0
|
||||
#endif
|
||||
|
||||
@@ -295,6 +297,7 @@ struct zoitechatprefs
|
||||
char hex_dcc_completed_dir[PATHLEN + 1];
|
||||
char hex_dcc_dir[PATHLEN + 1];
|
||||
char hex_dcc_ip[DOMAINLEN + 1];
|
||||
char hex_gui_gtk3_theme_name[128];
|
||||
char hex_gui_ulist_doubleclick[256];
|
||||
char hex_input_command_char[4];
|
||||
char hex_irc_extra_hilight[300];
|
||||
|
||||
@@ -137,11 +137,7 @@ ascii_open (void)
|
||||
if (table_pos[0] == '\n' || i == 0)
|
||||
{
|
||||
table_pos++;
|
||||
#if HAVE_GTK3
|
||||
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
||||
#elif !HAVE_GTK3
|
||||
hbox = gtk_hbox_new (0, 0);
|
||||
#endif
|
||||
gtk_container_add (GTK_CONTAINER (vbox), hbox);
|
||||
gtk_widget_show (hbox);
|
||||
i++;
|
||||
|
||||
@@ -37,16 +37,9 @@
|
||||
#include "maingui.h"
|
||||
#include "banlist.h"
|
||||
|
||||
#if HAVE_GTK3
|
||||
#define ICON_BANLIST_REMOVE "list-remove"
|
||||
#define ICON_BANLIST_CLEAR "edit-clear"
|
||||
#define ICON_BANLIST_REFRESH "view-refresh"
|
||||
#endif
|
||||
#if !HAVE_GTK3
|
||||
#define ICON_BANLIST_REMOVE GTK_STOCK_REMOVE
|
||||
#define ICON_BANLIST_CLEAR GTK_STOCK_CLEAR
|
||||
#define ICON_BANLIST_REFRESH GTK_STOCK_REFRESH
|
||||
#endif
|
||||
|
||||
/*
|
||||
* These supports_* routines set capable, readable, writable bits */
|
||||
@@ -495,7 +488,6 @@ banlist_unban_inner (gpointer none, banlist_info *banl, int mode_num)
|
||||
int num_sel, i;
|
||||
|
||||
|
||||
/* grab the list of selected items */
|
||||
model = GTK_TREE_MODEL (get_store (sess));
|
||||
sel = gtk_tree_view_get_selection (get_view (sess));
|
||||
|
||||
@@ -508,14 +500,11 @@ banlist_unban_inner (gpointer none, banlist_info *banl, int mode_num)
|
||||
{
|
||||
if (gtk_tree_selection_iter_is_selected (sel, &iter))
|
||||
{
|
||||
/* Get the mask part of this selected line */
|
||||
gtk_tree_model_get (model, &iter, TYPE_COLUMN, &type, MASK_COLUMN, &mask, -1);
|
||||
|
||||
/* If it's the wrong type of mask, just continue */
|
||||
if (strcmp (_(modes[mode_num].type), type) != 0)
|
||||
continue;
|
||||
|
||||
/* Otherwise add it to our array of mask pointers */
|
||||
masks[num_sel++] = g_strdup (mask);
|
||||
g_free (mask);
|
||||
g_free (type);
|
||||
@@ -523,11 +512,9 @@ banlist_unban_inner (gpointer none, banlist_info *banl, int mode_num)
|
||||
}
|
||||
while (gtk_tree_model_iter_next (model, &iter));
|
||||
|
||||
/* and send to server */
|
||||
if (num_sel)
|
||||
send_channel_modes (sess, tbuf, masks, 0, num_sel, '-', modes[mode_num].letter, 0);
|
||||
|
||||
/* now free everything */
|
||||
for (i=0; i < num_sel; i++)
|
||||
g_free (masks[i]);
|
||||
g_free (masks);
|
||||
@@ -543,7 +530,6 @@ banlist_unban (GtkWidget * wid, banlist_info *banl)
|
||||
for (i = 0; i < MODE_CT; i++)
|
||||
num += banlist_unban_inner (wid, banl, i);
|
||||
|
||||
/* This really should not occur with the redesign */
|
||||
if (num < 1)
|
||||
{
|
||||
fe_message (_("You must select some bans."), FE_MSG_ERROR);
|
||||
@@ -576,7 +562,10 @@ banlist_clear (GtkWidget * wid, banlist_info *banl)
|
||||
|
||||
dialog = gtk_message_dialog_new (NULL, 0,
|
||||
GTK_MESSAGE_QUESTION, GTK_BUTTONS_OK_CANCEL,
|
||||
_("Are you sure you want to remove all listed items in %s?"), banl->sess->channel);
|
||||
_("Are you sure you want to remove all listed items in %s?"), banl->sess->channel);
|
||||
/* Window classes are required for GTK CSS selectors like
|
||||
* .zoitechat-dark / .zoitechat-light. */
|
||||
fe_apply_theme_to_toplevel (dialog);
|
||||
|
||||
g_signal_connect (G_OBJECT (dialog), "response",
|
||||
G_CALLBACK (banlist_clear_cb), banl);
|
||||
@@ -609,14 +598,11 @@ banlist_crop (GtkWidget * wid, banlist_info *banl)
|
||||
GSList *list = NULL, *node;
|
||||
int num_sel;
|
||||
|
||||
/* remember which bans are selected */
|
||||
select = gtk_tree_view_get_selection (get_view (sess));
|
||||
/* gtk_tree_selected_get_selected_rows() isn't present in gtk 2.0.x */
|
||||
gtk_tree_selection_selected_foreach (select, banlist_add_selected_cb,
|
||||
&list);
|
||||
|
||||
num_sel = g_slist_length (list);
|
||||
/* select all, then unselect those that we remembered */
|
||||
if (num_sel)
|
||||
{
|
||||
gtk_tree_selection_select_all (select);
|
||||
@@ -645,7 +631,7 @@ banlist_toggle (GtkWidget *item, gpointer data)
|
||||
break;
|
||||
}
|
||||
|
||||
if (bit) /* Should be gassert() */
|
||||
if (bit)
|
||||
{
|
||||
banl->checked &= ~bit;
|
||||
banl->checked |= (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (item)))? bit: 0;
|
||||
@@ -788,11 +774,7 @@ banlist_table_new (void)
|
||||
{
|
||||
GtkWidget *table = gtkutil_grid_new (1, MODE_CT, FALSE);
|
||||
|
||||
#if HAVE_GTK3
|
||||
gtk_grid_set_column_spacing (GTK_GRID (table), 16);
|
||||
#else
|
||||
gtk_table_set_col_spacings (GTK_TABLE (table), 16);
|
||||
#endif
|
||||
return table;
|
||||
}
|
||||
|
||||
@@ -857,13 +839,8 @@ banlist_opengui (struct session *sess)
|
||||
GTKUTIL_ATTACH_FILL, GTKUTIL_ATTACH_FILL, 0, 0);
|
||||
}
|
||||
|
||||
#if HAVE_GTK3
|
||||
bbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
|
||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_SPREAD);
|
||||
#elif !HAVE_GTK3
|
||||
bbox = gtk_hbutton_box_new ();
|
||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_SPREAD);
|
||||
#endif
|
||||
gtk_container_set_border_width (GTK_CONTAINER (bbox), 5);
|
||||
gtk_box_pack_end (GTK_BOX (vbox), bbox, 0, 0, 0);
|
||||
gtk_widget_show (bbox);
|
||||
|
||||
@@ -77,15 +77,10 @@ chanlistrow;
|
||||
static void
|
||||
chanlist_set_label_alignment (GtkWidget *widget)
|
||||
{
|
||||
#if HAVE_GTK3
|
||||
gtk_widget_set_halign (widget, GTK_ALIGN_START);
|
||||
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
|
||||
#elif !HAVE_GTK3
|
||||
gtk_misc_set_alignment (GTK_MISC (widget), 0, 0.5);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if HAVE_GTK3
|
||||
static void
|
||||
chanlist_grid_attach (GtkWidget *grid, GtkWidget *child,
|
||||
gint column, gint row,
|
||||
@@ -99,19 +94,14 @@ chanlist_grid_attach (GtkWidget *grid, GtkWidget *child,
|
||||
gtk_widget_set_valign (child, valign);
|
||||
gtk_grid_attach (GTK_GRID (grid), child, column, row, width, height);
|
||||
}
|
||||
#endif
|
||||
|
||||
static GtkWidget *
|
||||
chanlist_box_new (void)
|
||||
{
|
||||
#if HAVE_GTK3
|
||||
GtkWidget *box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
||||
|
||||
gtk_box_set_homogeneous (GTK_BOX (box), FALSE);
|
||||
return box;
|
||||
#elif !HAVE_GTK3
|
||||
return gtk_hbox_new (FALSE, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
static GtkWidget *
|
||||
@@ -136,7 +126,6 @@ chanlist_icon_menu_item (const char *label, const char *icon_name,
|
||||
GCallback callback, gpointer userdata)
|
||||
{
|
||||
GtkWidget *item;
|
||||
#if HAVE_GTK3
|
||||
GtkWidget *box;
|
||||
GtkWidget *image = NULL;
|
||||
GtkWidget *label_widget;
|
||||
@@ -149,13 +138,6 @@ chanlist_icon_menu_item (const char *label, const char *icon_name,
|
||||
gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (box), label_widget, FALSE, FALSE, 0);
|
||||
gtk_container_add (GTK_CONTAINER (item), box);
|
||||
#else
|
||||
GtkWidget *image;
|
||||
|
||||
item = gtk_image_menu_item_new_with_mnemonic (label);
|
||||
image = gtkutil_image_new_from_stock (icon_name, GTK_ICON_SIZE_MENU);
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
|
||||
#endif
|
||||
g_signal_connect (G_OBJECT (item), "activate", callback, userdata);
|
||||
gtk_widget_show_all (item);
|
||||
|
||||
@@ -735,7 +717,6 @@ chanlist_button_cb (GtkTreeView *tree, GdkEventButton *event, server *serv)
|
||||
menu_addfavoritemenu (serv, menu, chan, FALSE);
|
||||
g_free (chan);
|
||||
|
||||
#if HAVE_GTK3
|
||||
if (event)
|
||||
{
|
||||
gtk_menu_popup_at_pointer (GTK_MENU (menu), (GdkEvent *)event);
|
||||
@@ -747,10 +728,6 @@ chanlist_button_cb (GtkTreeView *tree, GdkEventButton *event, server *serv)
|
||||
GDK_GRAVITY_NORTH_WEST,
|
||||
NULL);
|
||||
}
|
||||
#endif
|
||||
#if !HAVE_GTK3
|
||||
gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, 0, event ? event->time : 0);
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@@ -902,108 +879,48 @@ chanlist_opengui (server *serv, int do_refresh)
|
||||
|
||||
/* ============================================================= */
|
||||
|
||||
#if HAVE_GTK3
|
||||
table = gtk_grid_new ();
|
||||
gtk_grid_set_column_spacing (GTK_GRID (table), 12);
|
||||
gtk_grid_set_row_spacing (GTK_GRID (table), 3);
|
||||
#else
|
||||
table = gtk_table_new (4, 4, FALSE);
|
||||
gtk_table_set_col_spacings (GTK_TABLE (table), 12);
|
||||
gtk_table_set_row_spacings (GTK_TABLE (table), 3);
|
||||
#endif
|
||||
gtk_box_pack_start (GTK_BOX (vbox), table, 0, 1, 0);
|
||||
gtk_widget_show (table);
|
||||
|
||||
#if HAVE_GTK3
|
||||
wid = chanlist_icon_button (_("_Search"), ICON_CHANLIST_FIND,
|
||||
G_CALLBACK (chanlist_search_pressed), serv);
|
||||
#endif
|
||||
#if !HAVE_GTK3
|
||||
wid = gtkutil_button (NULL, ICON_CHANLIST_FIND, 0, chanlist_search_pressed, serv,
|
||||
_("_Search"));
|
||||
#endif
|
||||
serv->gui->chanlist_search = wid;
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, wid, 3, 3, 1, 1, FALSE, FALSE,
|
||||
GTK_ALIGN_FILL, GTK_ALIGN_FILL);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), wid, 3, 4, 3, 4,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
#endif
|
||||
|
||||
#if HAVE_GTK3
|
||||
wid = chanlist_icon_button (_("_Download List"), ICON_CHANLIST_REFRESH,
|
||||
G_CALLBACK (chanlist_refresh), serv);
|
||||
#endif
|
||||
#if !HAVE_GTK3
|
||||
wid = gtkutil_button (NULL, ICON_CHANLIST_REFRESH, 0, chanlist_refresh, serv,
|
||||
_("_Download List"));
|
||||
#endif
|
||||
serv->gui->chanlist_refresh = wid;
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, wid, 3, 2, 1, 1, FALSE, FALSE,
|
||||
GTK_ALIGN_FILL, GTK_ALIGN_FILL);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), wid, 3, 4, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
#endif
|
||||
|
||||
#if HAVE_GTK3
|
||||
wid = chanlist_icon_button (_("Save _List..."), ICON_CHANLIST_SAVE,
|
||||
G_CALLBACK (chanlist_save), serv);
|
||||
#endif
|
||||
#if !HAVE_GTK3
|
||||
wid = gtkutil_button (NULL, ICON_CHANLIST_SAVE, 0, chanlist_save, serv,
|
||||
_("Save _List..."));
|
||||
#endif
|
||||
serv->gui->chanlist_savelist = wid;
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, wid, 3, 1, 1, 1, FALSE, FALSE,
|
||||
GTK_ALIGN_FILL, GTK_ALIGN_FILL);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), wid, 3, 4, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
#endif
|
||||
|
||||
#if HAVE_GTK3
|
||||
wid = chanlist_icon_button (_("_Join Channel"), ICON_CHANLIST_JOIN,
|
||||
G_CALLBACK (chanlist_join), serv);
|
||||
#endif
|
||||
#if !HAVE_GTK3
|
||||
wid = gtkutil_button (NULL, ICON_CHANLIST_JOIN, 0, chanlist_join, serv,
|
||||
_("_Join Channel"));
|
||||
#endif
|
||||
serv->gui->chanlist_join = wid;
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, wid, 3, 0, 1, 1, FALSE, FALSE,
|
||||
GTK_ALIGN_FILL, GTK_ALIGN_FILL);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), wid, 3, 4, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
#endif
|
||||
|
||||
/* ============================================================= */
|
||||
|
||||
wid = gtk_label_new (_("Show only:"));
|
||||
chanlist_set_label_alignment (wid);
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, wid, 0, 3, 1, 1, FALSE, FALSE,
|
||||
GTK_ALIGN_START, GTK_ALIGN_CENTER);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), wid, 0, 1, 3, 4,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
#endif
|
||||
gtk_widget_show (wid);
|
||||
|
||||
hbox = chanlist_box_new ();
|
||||
gtk_box_set_spacing (GTK_BOX (hbox), 9);
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, hbox, 1, 3, 1, 1, FALSE, FALSE,
|
||||
GTK_ALIGN_FILL, GTK_ALIGN_FILL);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), hbox, 1, 2, 3, 4,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
#endif
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
wid = gtk_label_new (_("channels with"));
|
||||
@@ -1039,24 +956,14 @@ chanlist_opengui (server *serv, int do_refresh)
|
||||
|
||||
wid = gtk_label_new (_("Look in:"));
|
||||
chanlist_set_label_alignment (wid);
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, wid, 0, 2, 1, 1, FALSE, FALSE,
|
||||
GTK_ALIGN_START, GTK_ALIGN_CENTER);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), wid, 0, 1, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
#endif
|
||||
gtk_widget_show (wid);
|
||||
|
||||
hbox = chanlist_box_new ();
|
||||
gtk_box_set_spacing (GTK_BOX (hbox), 12);
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, hbox, 1, 2, 1, 1, FALSE, FALSE,
|
||||
GTK_ALIGN_FILL, GTK_ALIGN_FILL);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), hbox, 1, 2, 2, 3,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
#endif
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
wid = gtk_check_button_new_with_label (_("Channel name"));
|
||||
@@ -1081,13 +988,8 @@ chanlist_opengui (server *serv, int do_refresh)
|
||||
|
||||
wid = gtk_label_new (_("Search type:"));
|
||||
chanlist_set_label_alignment (wid);
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, wid, 0, 1, 1, 1, FALSE, FALSE,
|
||||
GTK_ALIGN_START, GTK_ALIGN_CENTER);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), wid, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
#endif
|
||||
gtk_widget_show (wid);
|
||||
|
||||
wid = gtk_combo_box_text_new ();
|
||||
@@ -1095,13 +997,8 @@ chanlist_opengui (server *serv, int do_refresh)
|
||||
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (wid), _("Pattern Match (Wildcards)"));
|
||||
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (wid), _("Regular Expression"));
|
||||
gtk_combo_box_set_active (GTK_COMBO_BOX (wid), serv->gui->chanlist_search_type);
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, wid, 1, 1, 1, 1, FALSE, FALSE,
|
||||
GTK_ALIGN_FILL, GTK_ALIGN_CENTER);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), wid, 1, 2, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
#endif
|
||||
g_signal_connect (G_OBJECT (wid), "changed",
|
||||
G_CALLBACK (chanlist_combo_cb), serv);
|
||||
gtk_widget_show (wid);
|
||||
@@ -1110,13 +1007,8 @@ chanlist_opengui (server *serv, int do_refresh)
|
||||
|
||||
wid = gtk_label_new (_("Find:"));
|
||||
chanlist_set_label_alignment (wid);
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, wid, 0, 0, 1, 1, FALSE, FALSE,
|
||||
GTK_ALIGN_START, GTK_ALIGN_CENTER);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), wid, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
#endif
|
||||
gtk_widget_show (wid);
|
||||
|
||||
wid = gtk_entry_new ();
|
||||
@@ -1126,13 +1018,8 @@ chanlist_opengui (server *serv, int do_refresh)
|
||||
g_signal_connect (G_OBJECT (wid), "activate",
|
||||
G_CALLBACK (chanlist_search_pressed),
|
||||
(gpointer) serv);
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, wid, 1, 0, 1, 1, TRUE, FALSE,
|
||||
GTK_ALIGN_FILL, GTK_ALIGN_CENTER);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), wid, 1, 2, 0, 1,
|
||||
GTK_EXPAND | GTK_FILL, 0, 0, 0);
|
||||
#endif
|
||||
gtk_widget_show (wid);
|
||||
serv->gui->chanlist_wild = wid;
|
||||
|
||||
@@ -1140,18 +1027,9 @@ chanlist_opengui (server *serv, int do_refresh)
|
||||
|
||||
/* ============================================================= */
|
||||
|
||||
#if HAVE_GTK3
|
||||
wid = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
|
||||
#else
|
||||
wid = gtk_vseparator_new ();
|
||||
#endif
|
||||
#if HAVE_GTK3
|
||||
chanlist_grid_attach (table, wid, 2, 0, 1, 5, FALSE, FALSE,
|
||||
GTK_ALIGN_FILL, GTK_ALIGN_FILL);
|
||||
#else
|
||||
gtk_table_attach (GTK_TABLE (table), wid, 2, 3, 0, 5,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
#endif
|
||||
gtk_widget_show (wid);
|
||||
|
||||
g_signal_connect (G_OBJECT (serv->gui->chanlist_window), "destroy",
|
||||
|
||||
@@ -27,12 +27,7 @@ typedef struct
|
||||
GtkWidget *b2; /* button2 */
|
||||
} tabview;
|
||||
|
||||
#if HAVE_GTK3
|
||||
#define ICON_CHANVIEW_CLOSE "window-close"
|
||||
#endif
|
||||
#if !HAVE_GTK3
|
||||
#define ICON_CHANVIEW_CLOSE GTK_STOCK_CLOSE
|
||||
#endif
|
||||
|
||||
static void chanview_populate (chanview *cv);
|
||||
|
||||
@@ -57,17 +52,10 @@ cv_tabs_get_viewport_size (GdkWindow *parent_win, gboolean vertical)
|
||||
{
|
||||
gint viewport_size = 0;
|
||||
|
||||
#if HAVE_GTK3
|
||||
if (vertical)
|
||||
viewport_size = gdk_window_get_height (parent_win);
|
||||
else
|
||||
viewport_size = gdk_window_get_width (parent_win);
|
||||
#else
|
||||
if (vertical)
|
||||
gdk_window_get_geometry (parent_win, 0, 0, 0, &viewport_size, 0);
|
||||
else
|
||||
gdk_window_get_geometry (parent_win, 0, 0, &viewport_size, 0, 0);
|
||||
#endif
|
||||
|
||||
return viewport_size;
|
||||
}
|
||||
@@ -202,11 +190,11 @@ tab_scroll_left_up_clicked (GtkWidget *widget, chanview *cv)
|
||||
|
||||
gtk_adjustment_set_value (adj, new_value);
|
||||
|
||||
tab_left_is_moving = 0; /* hSP: set to false in case we didnt get stopped (the normal case) */
|
||||
tab_left_is_moving = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
tab_left_is_moving = 0; /* hSP: jump directly to next element if user is clicking faster than we can scroll.. */
|
||||
tab_left_is_moving = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -251,11 +239,11 @@ tab_scroll_right_down_clicked (GtkWidget *widget, chanview *cv)
|
||||
|
||||
gtk_adjustment_set_value (adj, new_value);
|
||||
|
||||
tab_right_is_moving = 0; /* hSP: set to false in case we didnt get stopped (the normal case) */
|
||||
tab_right_is_moving = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
tab_right_is_moving = 0; /* hSP: jump directly to next element if user is clicking faster than we can scroll.. */
|
||||
tab_right_is_moving = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,12 +281,9 @@ static GtkWidget *
|
||||
make_sbutton (GtkArrowType type, void *click_cb, void *userdata)
|
||||
{
|
||||
GtkWidget *button, *arrow;
|
||||
#if HAVE_GTK3
|
||||
const char *icon_name = "pan-end-symbolic";
|
||||
#endif
|
||||
|
||||
button = gtk_button_new ();
|
||||
#if HAVE_GTK3
|
||||
switch (type)
|
||||
{
|
||||
case GTK_ARROW_UP:
|
||||
@@ -317,9 +302,6 @@ make_sbutton (GtkArrowType type, void *click_cb, void *userdata)
|
||||
}
|
||||
|
||||
arrow = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_BUTTON);
|
||||
#elif !HAVE_GTK3
|
||||
arrow = gtk_arrow_new (type, GTK_SHADOW_NONE);
|
||||
#endif
|
||||
gtk_container_add (GTK_CONTAINER (button), arrow);
|
||||
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
|
||||
g_signal_connect (G_OBJECT (button), "clicked",
|
||||
@@ -350,7 +332,6 @@ cv_tabs_init (chanview *cv)
|
||||
((tabview *)cv)->outer = outer;
|
||||
g_signal_connect (G_OBJECT (outer), "size_allocate",
|
||||
G_CALLBACK (cv_tabs_sizealloc), cv);
|
||||
/* gtk_container_set_border_width (GTK_CONTAINER (outer), 2);*/
|
||||
gtk_widget_show (outer);
|
||||
|
||||
viewport = gtk_viewport_new (0, 0);
|
||||
@@ -546,20 +527,12 @@ tab_add_real (chanview *cv, GtkWidget *tab, chan *ch)
|
||||
{
|
||||
/* vertical */
|
||||
box = gtkutil_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0);
|
||||
#if HAVE_GTK3
|
||||
sep = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
|
||||
#elif !HAVE_GTK3
|
||||
sep = gtk_hseparator_new ();
|
||||
#endif
|
||||
} else
|
||||
{
|
||||
/* horiz */
|
||||
box = gtkutil_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0);
|
||||
#if HAVE_GTK3
|
||||
sep = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
|
||||
#elif !HAVE_GTK3
|
||||
sep = gtk_vseparator_new ();
|
||||
#endif
|
||||
}
|
||||
|
||||
gtk_box_pack_end (GTK_BOX (box), sep, 0, 0, 4);
|
||||
@@ -600,7 +573,7 @@ tab_pressed_cb (GtkToggleButton *tab, chan *ch)
|
||||
ignore_toggle = FALSE;
|
||||
cv->focused = ch;
|
||||
|
||||
if (/*tab->active*/is_switching)
|
||||
if (is_switching)
|
||||
/* call the focus callback */
|
||||
cv->cb_focus (cv, ch, ch->tag, ch->userdata);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user