Re: Removed deprecated StatusIcon

Rhialto <[email protected]> Wed, 8 May 2024 18:52:05 +0200
Newsgroups gmane.comp.gnome.apps.pan.user
Message-ID <[email protected]>
On Mon 06 May 2024 at 18:33:27 +0200, Dominique Dumont wrote:
> On Sunday, 5 May 2024 21:23:32 CEST Rhialto wrote:
> > Speaking of Icons: after I update to the latest release, Pan doesn't
> > seem to have icons any more if you iconify its window. I skipped a few
> > releases because they were so close together, but before, there was an
> > icon that looked like a folded newspaper or something like that.
> 
> With v0.156, I've changed the way the main Pan icon is loaded to fix 
> deprecation warnings. This icon, which is usually shown on the widget bar, is 
> now loaded from a file at run time instead of being stored as a C data struct 
> in Pan. 
> 
> This means that Pan icons must be installed as well pan executable.

They are, in /usr/pkg/share/pan/icons/, but the --debug option shows me
(thanks to the other thread) that Pan tries to load 
/usr/local/share/pan/icons/icon_pan.png. 

That was with configure. With cmake, it tries even some more incorrect
location, it isn't even an absolute path:

Unable to load icon icon_pan.png from pan/icons: Failed to open file pan/icons/icon_pan.png

Cmake was invoked with

set -e;                                          cd /tmpfs/news/pan/work.x86_64/pan-v0.158 && cd _build &&                                       /usr/bin/env BUILDLINK_DIR=/tmpfs/news/pan/work.x86_64/.buildlink PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr FREETYPE_CONFIG=/usr/pkg/bin/freetype-config INSTALL_INFO= MAKEINFO=/tmpfs/news/pan/work.x86_64/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/tmpfs/news/pan/work.x86_64/.tools/bin/itstoolGDBUS_CODEGEN=/tmpfs/news/pan/work.x86_64/.tools/bin/gdbus-codegen PKG_CONFIG=/tmpfs/news/pan/work.x86_64/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/tmpfs/news/pan/work.x86_64/.buildlink/lib/pkgconfig:/tmpfs/news/pan/work.x86_64/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/tmpfs/news/pan/work.x86_64/.pkg-config.log PKG_CONFIG_PATH= MAKE=make DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= CWRAPPERS_CONFIG_DIR=/tmpfs/news/pan/work.x86_64/.cwrapper/config CC=gcc CFLAGS=-O2\ I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/glib-2.0\ -I/usr/pkg/include/gio-unix-2.0\ -I/usr/pkg/lib/glib-2.0/include\ -I/usr/pkg/include/freetype2\ -I/usr/X11R7/include\ -I/usr/pkg/include/harfbuzz\ -I/usr/pkg/include/libdrm CPPFLAGS=-I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/glib-2.0\ -I/usr/pkg/include/gio-unix-2.0\ -I/usr/pkg/lib/glib-2.0/include\ -I/usr/pkg/include/freetype2\ -I/usr/X11R7/include\ -I/usr/pkg/include/harfbuzz\ -I/usr/pkg/include/libdrm CXX=c++ CXXFLAGS=-O2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/glib-2.0\ -I/usr/pkg/include/gio-unix-2.0\ -I/usr/pkg/lib/glib-2.0/include\ -I/usr/pkg/include/freetype2\ -I/usr/X11R7/include\ -I/usr/pkg/include/harfbuzz\ -I/usr/pkg/include/libdrm COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/pkg/gcc12/lib/gcc/x86_64--netbsd/12.3.0\ -Wl,-R/usr/pkg/gcc12/lib/gcc/x86_64--netbsd/12.3.0\ -Wl,-zrelro\ -L/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/X11R7/lib\ -Wl,-R/usr/X11R7/lib LINKER_RPATH_FLAG=-R PATH=/tmpfs/news/pan/work.x86_64/.cwrapper/bin:/tmpfs/news/pan/work.x86_64/.buildlink/bin:/tmpfs/news/pan/work.x86_64/.gcc/bin:/tmpfs/news/pan/work.x86_64/.tools/bin:/usr/pkg/bin:/home/rhialto/bin:/usr/pkg/bin:/usr/pkg/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R7/bin:/usr/games:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/tmpfs/news/pan/work.x86_64/.home CWRAPPERS_CONFIG_DIR=/tmpfs/news/pan/work.x86_64/.cwrapper/config                  cmake  -DCMAKE_INSTALL_PREFIX:PATH=/usr/pkg -DCMAKE_MODULE_PATH:PATH=/tmpfs/news/pan/work.x86_64/.buildlink/cmake-Modules -DCMAKE_PKGSRC_BUILD_FLAGS:BOOL=TRUE -DCMAKE_SKIP_RPATH:BOOL=TRUE -DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_INSTALL_MANDIR:PATH=man -DCMAKE_INSTALL_LOCALEDIR:PATH=share/locale ..

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert                            <rhialto/at/falu.nl>
\X/ There is no AI. There is just someone else's work.           --I. Rose

_______________________________________________
Pan-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/pan-users
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEFVAhiiWjqgwBVdQAmYnGRWHD+9MFAmY7rbEACgkQmYnGRWHD
+9M+uggAq65vZrfehd3aiGuGWWHZeeCASgWXh+/xXwpx915vcGk6E7/49DFWB+wk
g/xUr+GQgVKFgBD7NSHzKo2Y3Ui8WZnHnCAggeDViihFPDoMW88E03dnO+/w5MO2
H1jCs4zQY3nqk29DSgNXQ5rzAugaerR8Apqk5hzyTCRUc/0fYTTQTyuhOE73NpDx
qgxHG4A/f+1S3KKk5ojmzxzhpZfiGrGwijOYf7Q/6a4Q5cRbLqZ5G1bAIxnFFxbj
ciXBos3VFkY96z806YMr4tveAKI2C/PnNWq2/h3gv3kNrCd/Cf9aj8QYIMkWsCST
4mC7GnD1V5tkpC9kJw4qjs9QzGqHFw==
=iDgh
-----END PGP SIGNATURE-----