Skip to content

Commit

Permalink
Version 2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab committed Feb 2, 2024
1 parent 2e4c39e commit 7d6f5a7
Show file tree
Hide file tree
Showing 95 changed files with 692 additions and 625 deletions.
1 change: 0 additions & 1 deletion FUNDING.yml

This file was deleted.

36 changes: 22 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,41 @@ A widget factory is a theme preview application for GTK. It displays the various

## Screenshots

GTK 2\
GTK 2.24 (Pango 1.51)\
[![Preview with GTK 2 - Main window](images/thumbs/gtk2.png?raw=true)](images/gtk2.png?raw=true)
[![Preview with GTK 2 - Menu](images/thumbs/gtk2-menu.png?raw=true)](images/gtk2-menu.png?raw=true)
[![Preview with GTK 2 - RTL - Main window](images/thumbs/gtk2-rtl.png?raw=true)](images/gtk2-rtl.png?raw=true)
[![Preview with GTK 2 - RTL - Menu](images/thumbs/gtk2-rtl-menu.png?raw=true)](images/gtk2-rtl-menu.png?raw=true)

GTK 3\
GTK 3.24 (Pango 1.51)\
[![Preview with GTK 3 - Main window](images/thumbs/gtk3.png?raw=true)](images/gtk3.png?raw=true)
[![Preview with GTK 3 - Menu](images/thumbs/gtk3-menu.png?raw=true)](images/gtk3-menu.png?raw=true)
[![Preview with GTK 3 - RTL - Main window](images/thumbs/gtk3-rtl.png?raw=true)](images/gtk3-rtl.png?raw=true)
[![Preview with GTK 3 - RTL - Menu](images/thumbs/gtk3-rtl-menu.png?raw=true)](images/gtk3-rtl-menu.png?raw=true)

GTK 4\
GTK 4.12 (Pango 1.51)\
[![Preview with GTK 4 - Main window](images/thumbs/gtk4.png?raw=true)](images/gtk4.png?raw=true)
[![Preview with GTK 4 - Menu](images/thumbs/gtk4-menu.png?raw=true)](images/gtk4-menu.png?raw=true)
[![Preview with GTK 4 - RTL - Main window](images/thumbs/gtk4-rtl.png?raw=true)](images/gtk4-rtl.png?raw=true)
[![Preview with GTK 4 - RTL - Menu](images/thumbs/gtk4-rtl-menu.png?raw=true)](images/gtk4-rtl-menu.png?raw=true)

Theme used for the screenshots is available [here](https://github.com/luigifab/human-theme). For screenshots: Pango 1.42 with GTK 2.24 and 3.24.23-classic, Pango 1.50 with GTK 4.8.
Theme used for the screenshots is available [here](https://github.com/luigifab/human-theme).

## Tricks

* Some options are available from command line (read `-h` or man page).
* Options menu allow to run some standard dialogs.
* Options menu allow to display some standard dialogs.
* System and user themes menu allow to set current theme.
* Text direction menu allow to change text direction (LTR/RTL).
* Plus/minus toolbar buttons allow to show or hide: notebooks arrows, text and marks on progress bars and scales.
* Plus/minus toolbar buttons allow to show or hide: notebooks arrows, marks on progress bars and scales...
* Refresh toolbar button and refresh menu item allow to reload the current theme (like `SIGHUP` signal).
* Menu keyboard shortcuts can be updated on hover (GTK 2.24 and 3.x, *gtk-can-change-accels*).
* Notebooks tabs are scrollable (GTK 3.x and 4.x, *gtk-scroll-tabs*, like with GTK 2.24).
* With Ubuntu, menu keyboard shortcuts can also be updated on hover with: `UBUNTU_MENUPROXY= awf-gtk3`

## Installation

It require **GTK 2.24+** or **GTK 3.0+** *(including 3.24)* or **GTK 4.0+**, and *GLIB 2.28+*.
It require **GTK 2.24** or **GTK 3.0+** *(including 3.24)* or **GTK 4.0+** *(including 4.12)*, and *GLIB 2.28+*.

#### Installation for Debian and Ubuntu

Expand All @@ -55,14 +55,16 @@ It require **GTK 2.24+** or **GTK 3.0+** *(including 3.24)* or **GTK 4.0+**, and
#### Building from source

* To compile the program with all major GTK versions available, run: `build.sh`
* To compile the program and create DEB packages for Debian and Ubuntu, run: `debian-gtkx/deb.sh`
* To compile the program and create RPM package for Fedora, run: `fedora-gtkx/rpm.sh`
* To compile the program and create RPM package for openSUSE, run: `opensuse-gtkx/rpm.sh`
* To compile the program and create DEB packages for Debian and Ubuntu, run: `debian[-gtkx]/deb.sh`
* To compile the program and create RPM packages for Fedora, run: `fedora/rpm-gtkx.sh`
* To compile the program and create RPM packages for openSUSE, run: `opensuse/rpm-gtkx.sh`
* To compile the program and create ZST packages for Arch Linux, run: `archlinux/zst-gtkx.sh`

#### Alternative installation for Debian and Ubuntu

```bash
# https://launchpad.net/~luigifab/+archive/ubuntu/packages
# PPA: https://launchpad.net/~luigifab/+archive/ubuntu/packages
# with Debian 12+ you can use mantic+ instead of focal (https://unix.stackexchange.com/a/669008/364800)
sudo add-apt-repository ppa:luigifab/packages
sudo apt update
sudo apt install awf-gtk2 awf-gtk3 awf-gtk4
Expand Down Expand Up @@ -96,10 +98,12 @@ ls ~/.themes/yourtheme/gtk-3*/*.css | entr killall -s SIGHUP awf-gtk3

## Copyright

- Current version: 2.7.0 (06/06/2023)
- Compatibility: GTK 2.24 / 3.0..3.24 / 4.0 / 4.2 / 4.4 / 4.6 / 4.8 / 4.10
- Translations: English (en), French (fr)
- Current version: 2.8.0 (02/02/2024)
- Compatibility: GTK 2.24 / 3.0..3.24 / 4.0..4.12
- Links: [luigifab.fr](https://www.luigifab.fr/gtk/awf-extended) - [github.com](https://github.com/luigifab/awf-extended)\
[Arch Linux awf-gtk2.zst](https://aur.archlinux.org/packages/awf-gtk2)
; [Arch Linux awf-gtk3.zst](https://aur.archlinux.org/packages/awf-gtk3)
; [Arch Linux awf-gtk4.zst](https://aur.archlinux.org/packages/awf-gtk4)\
[Debian awf-gtk3.deb](https://packages.debian.org/awf-gtk)
; [Debian awf-gtk4.deb](https://packages.debian.org/awf-gtk)\
[Fedora awf-gtk2.rpm](https://src.fedoraproject.org/rpms/awf-gtk2)
Expand All @@ -115,6 +119,10 @@ ls ~/.themes/yourtheme/gtk-3*/*.css | entr killall -s SIGHUP awf-gtk3
This program is provided under the terms of the **GNU GPLv3+** license.\
If you like, take some of your time to improve the translations, go to https://bit.ly/2HyCCEc.

## Packages in official distros repositories

[![Packages status](https://repology.org/badge/vertical-allrepos/awf-widget-factory.svg?header=awf-gtk&minversion=2.0.0)](https://repology.org/project/awf-widget-factory/versions)

## Credits

Forked from [awf](https://github.com/valr/awf) by Valère Monseur (valr).
59 changes: 59 additions & 0 deletions archlinux/PKGBUILD.gtk2
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
pkgname=awf-gtk2
pkgver=2.8.0
pkgrel=1
pkgdesc="Theme preview application for GTK"
arch=('x86_64')
url='https://github.com/luigifab/awf-extended'
license=('GPL3')
depends=('gtk2' 'hicolor-icon-theme')
#makedepends=('autoconf' 'automake' 'desktop-file-utils' 'gcc' 'gettext' 'gtk2')
source=("awf-extended-$pkgver.tar.gz")
md5sums=("...") # https://github.com/luigifab/awf-extended/archive/v${pkgver}/awf-extended-${pkgver}.tar.gz

prepare() {
mv "awf-extended-$pkgver" "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
sed -i 's/ -eq 3/ -eq -1/g' configure.ac
sed -i 's/ -eq 4/ -eq -1/g' configure.ac
touch {NEWS,AUTHORS,README,ChangeLog}
mv LICENSE COPYING
}

build() {
cd "$pkgname-$pkgver"
autoreconf -fi
./configure
make -s
}

package() {
cd "$pkgname-$pkgver"
make

mkdir -p "$pkgdir/usr/bin/"
install -pm 755 "src/$pkgname" "$pkgdir/usr/bin/$pkgname"

mkdir -p "$pkgdir/usr/share/applications/"
desktop-file-install --dir="$pkgdir/usr/share/applications/" "applications/$pkgname.desktop"

mkdir -p "$pkgdir/usr/share/doc/$pkgname/"
install -pm 644 README.md "$pkgdir/usr/share/doc/$pkgname/"

mkdir -p "$pkgdir/usr/share/icons/hicolor/"
for file in icons/*/*/*.png; do mv $file ${file/\/awf./\/$pkgname.png}; done
for file in icons/*/*/*.svg; do mv $file ${file/\/awf./\/$pkgname.svg}; done
cp -a icons/* "$pkgdir/usr/share/icons/hicolor/"

mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
install -pm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/"

mkdir -p "$pkgdir/usr/share/man/man1/" "$pkgdir/usr/share/man/fr/man1/"
install -pm 644 "debian/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
install -pm 644 "debian/$pkgname.fr.1" "$pkgdir/usr/share/man/fr/man1/$pkgname.1"

for file in src/po/*.po; do
code=$(basename "$file" .po)
mkdir -p "$pkgdir/usr/share/locale/$code/LC_MESSAGES/"
msgfmt "src/po/$code.po" -o "$pkgdir/usr/share/locale/$code/LC_MESSAGES/$pkgname.mo"
done
}
59 changes: 59 additions & 0 deletions archlinux/PKGBUILD.gtk3
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
pkgname=awf-gtk3
pkgver=2.8.0
pkgrel=1
pkgdesc="Theme preview application for GTK"
arch=('x86_64')
url='https://github.com/luigifab/awf-extended'
license=('GPL3')
depends=('gtk3' 'hicolor-icon-theme')
#makedepends=('autoconf' 'automake' 'desktop-file-utils' 'gcc' 'gettext' 'gtk3')
source=("awf-extended-$pkgver.tar.gz")
md5sums=("...") # https://github.com/luigifab/awf-extended/archive/v${pkgver}/awf-extended-${pkgver}.tar.gz

prepare() {
mv "awf-extended-$pkgver" "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
sed -i 's/ -eq 2/ -eq -1/g' configure.ac
sed -i 's/ -eq 4/ -eq -1/g' configure.ac
touch {NEWS,AUTHORS,README,ChangeLog}
mv LICENSE COPYING
}

build() {
cd "$pkgname-$pkgver"
autoreconf -fi
./configure
make -s
}

package() {
cd "$pkgname-$pkgver"
make

mkdir -p "$pkgdir/usr/bin/"
install -pm 755 "src/$pkgname" "$pkgdir/usr/bin/$pkgname"

mkdir -p "$pkgdir/usr/share/applications/"
desktop-file-install --dir="$pkgdir/usr/share/applications/" "applications/$pkgname.desktop"

mkdir -p "$pkgdir/usr/share/doc/$pkgname/"
install -pm 644 README.md "$pkgdir/usr/share/doc/$pkgname/"

mkdir -p "$pkgdir/usr/share/icons/hicolor/"
for file in icons/*/*/*.png; do mv $file ${file/\/awf./\/$pkgname.png}; done
for file in icons/*/*/*.svg; do mv $file ${file/\/awf./\/$pkgname.svg}; done
cp -a icons/* "$pkgdir/usr/share/icons/hicolor/"

mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
install -pm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/"

mkdir -p "$pkgdir/usr/share/man/man1/" "$pkgdir/usr/share/man/fr/man1/"
install -pm 644 "debian/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
install -pm 644 "debian/$pkgname.fr.1" "$pkgdir/usr/share/man/fr/man1/$pkgname.1"

for file in src/po/*.po; do
code=$(basename "$file" .po)
mkdir -p "$pkgdir/usr/share/locale/$code/LC_MESSAGES/"
msgfmt "src/po/$code.po" -o "$pkgdir/usr/share/locale/$code/LC_MESSAGES/$pkgname.mo"
done
}
59 changes: 59 additions & 0 deletions archlinux/PKGBUILD.gtk4
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
pkgname=awf-gtk4
pkgver=2.8.0
pkgrel=1
pkgdesc="Theme preview application for GTK"
arch=('x86_64')
url='https://github.com/luigifab/awf-extended'
license=('GPL3')
depends=('gtk4' 'hicolor-icon-theme')
#makedepends=('autoconf' 'automake' 'desktop-file-utils' 'gcc' 'gettext' 'gtk4')
source=("awf-extended-$pkgver.tar.gz")
md5sums=("...") # https://github.com/luigifab/awf-extended/archive/v${pkgver}/awf-extended-${pkgver}.tar.gz

prepare() {
mv "awf-extended-$pkgver" "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
sed -i 's/ -eq 2/ -eq -1/g' configure.ac
sed -i 's/ -eq 3/ -eq -1/g' configure.ac
touch {NEWS,AUTHORS,README,ChangeLog}
mv LICENSE COPYING
}

build() {
cd "$pkgname-$pkgver"
autoreconf -fi
./configure
make -s
}

package() {
cd "$pkgname-$pkgver"
make

mkdir -p "$pkgdir/usr/bin/"
install -pm 755 "src/$pkgname" "$pkgdir/usr/bin/$pkgname"

mkdir -p "$pkgdir/usr/share/applications/"
desktop-file-install --dir="$pkgdir/usr/share/applications/" "applications/$pkgname.desktop"

mkdir -p "$pkgdir/usr/share/doc/$pkgname/"
install -pm 644 README.md "$pkgdir/usr/share/doc/$pkgname/"

mkdir -p "$pkgdir/usr/share/icons/hicolor/"
for file in icons/*/*/*.png; do mv $file ${file/\/awf./\/$pkgname.png}; done
for file in icons/*/*/*.svg; do mv $file ${file/\/awf./\/$pkgname.svg}; done
cp -a icons/* "$pkgdir/usr/share/icons/hicolor/"

mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
install -pm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/"

mkdir -p "$pkgdir/usr/share/man/man1/" "$pkgdir/usr/share/man/fr/man1/"
install -pm 644 "debian/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
install -pm 644 "debian/$pkgname.fr.1" "$pkgdir/usr/share/man/fr/man1/$pkgname.1"

for file in src/po/*.po; do
code=$(basename "$file" .po)
mkdir -p "$pkgdir/usr/share/locale/$code/LC_MESSAGES/"
msgfmt "src/po/$code.po" -o "$pkgdir/usr/share/locale/$code/LC_MESSAGES/$pkgname.mo"
done
}
7 changes: 2 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ rm -f awf-gtk2 awf-gtk3 awf-gtk4

# copy to a tmp directory
mkdir builder builder/src
touch builder/ChangeLog
touch builder/NEWS
touch builder/AUTHORS
touch builder/README
touch builder/{NEWS,AUTHORS,README,ChangeLog}
cp /usr/share/common-licenses/GPL-3 builder/COPYING
cp configure.ac builder/
cp Makefile.am builder/
Expand All @@ -20,7 +17,7 @@ cp src/awf.c builder/src/

# build
cd builder/
autoreconf -f -i
autoreconf -fi
./configure
make -s

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([A widget factory], [2.7.0])
AC_INIT([A widget factory], [2.8.0])
AC_CONFIG_SRCDIR([src/awf.c])

AM_INIT_AUTOMAKE
Expand Down
43 changes: 0 additions & 43 deletions debian-gtk2/awf-gtk2.1

This file was deleted.

43 changes: 0 additions & 43 deletions debian-gtk2/awf-gtk2.fr.1

This file was deleted.

Loading

0 comments on commit 7d6f5a7

Please sign in to comment.