Got compiler warnings about deprecated wnck functions
Hi, while building and testing the app locally, I got the following compiler warnings about deprecated wnck functions. I'm not sure if this helps:
emanuele@tester:~/Development/xfce4-taskmanager$ meson setup --reconfigure build
The Meson build system
Version: 1.10.1
Source dir: /home/emanuele/Development/xfce4-taskmanager
Build dir: /home/emanuele/Development/xfce4-taskmanager/build
Build type: native build
Project name: xfce4-taskmanager
Project version: 1.6.0-dev
C compiler for the host machine: cc (gcc 15.3.0 "cc (Ubuntu 15.3.0-4ubuntu1) 15.3.0")
C linker for the host machine: cc ld.bfd 2.47
Host machine cpu family: x86_64
Host machine cpu: x86_64
Dependency glib-2.0 found: YES 2.90.0 (cached)
Dependency gtk+-3.0 found: YES 3.24.52 (cached)
Dependency cairo found: YES 1.18.4 (cached)
Dependency xmu found: YES 1.1.3 (cached)
Dependency libxfce4ui-2 found: YES 4.20.2 (cached)
Dependency libxfce4util-1.0 found: YES 4.20.1 (cached)
Dependency libxfconf-0 found: YES 4.20.0 (cached)
Dependency x11 found: YES 1.8.13 (cached)
Found pkg-config: YES (/usr/bin/pkg-config) 2.5.1
Run-time dependency libwnck-3.0 found: YES 43.3
Message: OS implementation: linux
Check usable header "sys/resource.h" : YES (cached)
Check usable header "sys/stat.h" : YES (cached)
Check usable header "sys/types.h" : YES (cached)
Check usable header "pwd.h" : YES (cached)
Check usable header "signal.h" : YES (cached)
Check usable header "stdio.h" : YES (cached)
Check usable header "string.h" : YES (cached)
Check usable header "unistd.h" : YES (cached)
Compiler for C supports arguments -Wmissing-declarations: YES (cached)
Compiler for C supports arguments -Wmissing-noreturn: YES (cached)
Compiler for C supports arguments -Wold-style-definition: YES (cached)
Compiler for C supports arguments -Wredundant-decls: YES (cached)
Compiler for C supports arguments -Wpointer-arith: YES (cached)
Compiler for C supports arguments -Wcast-align: YES (cached)
Compiler for C supports arguments -Winit-self: YES (cached)
Compiler for C supports arguments -Wshadow: YES (cached)
Compiler for C supports arguments -Wmissing-include-dirs: YES (cached)
Compiler for C supports arguments -Wundef: YES (cached)
Compiler for C supports arguments -Wformat: YES (cached)
Compiler for C supports arguments -Wformat-security: YES (cached)
Compiler for C supports arguments -Wformat-y2k: YES (cached)
Compiler for C supports arguments -Wnested-externs: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-declaration-after-statement: YES (cached)
Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached)
Compiler for C supports arguments -Werror=implicit-function-declaration: YES (cached)
Compiler for C supports arguments -Wno-error=deprecated-declarations: YES (cached)
Program msgfmt found: YES (/usr/bin/msgfmt)
Program msginit found: YES (/usr/bin/msginit)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program xgettext found: YES (/usr/bin/xgettext)
Dependency gio-2.0 found: YES 2.90.0 (cached)
Program /usr/bin/glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Build targets in project: 70
Found ninja-1.13.2 at /usr/bin/ninja
emanuele@tester:~/Development/xfce4-taskmanager$ meson compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/emanuele/Development/xfce4-taskmanager/build
ninja: Entering directory `/home/emanuele/Development/xfce4-taskmanager/build'
[76/79] Compiling C object src/xfce4-taskmanager.p/app-manager.c.o
../src/app-manager.c: In function ‘xtm_app_manager_init’:
../src/app-manager.c:52:9: warning: ‘wnck_screen_get_default’ is deprecated: Use 'wnck_handle_get_default_screen' instead [-Wdeprecated-declarations]
52 | WnckScreen *screen = wnck_screen_get_default ();
| ^~~~~~~~~~
In file included from /usr/include/libwnck-3.0/libwnck/wnck-handle.h:26,
from /usr/include/libwnck-3.0/libwnck/libwnck.h:26,
from ../src/app-manager.h:15,
from ../src/app-manager.c:11:
/usr/include/libwnck-3.0/libwnck/screen.h:200:16: note: declared here
200 | WnckScreen* wnck_screen_get_default (void);
| ^~~~~~~~~~~~~~~~~~~~~~~
../src/app-manager.c: In function ‘scale_factor_changed’:
../src/app-manager.c:203:9: warning: ‘wnck_set_default_mini_icon_size’ is deprecated: Use 'wnck_handle_set_default_mini_icon_size' instead [-Wdeprecated-declarations]
203 | wnck_set_default_mini_icon_size (WNCK_DEFAULT_MINI_ICON_SIZE * gdk_monitor_get_scale_factor (monitor));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libwnck-3.0/libwnck/util.h:31,
from /usr/include/libwnck-3.0/libwnck/wnck-handle.h:27:
/usr/include/libwnck-3.0/libwnck/icons.h:41:6: note: declared here
41 | void wnck_set_default_mini_icon_size (gsize size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[79/79] Linking target src/xfce4-taskmanager