mate-desktop / mate-settings-daemon

MATE settings daemon
https://mate-desktop.org
GNU General Public License v2.0
44 stars 46 forks source link

xsettings: Remove warning -Wcast-function-type #364

Closed rbuj closed 3 years ago

rbuj commented 3 years ago
msd-xsettings-manager.c: In function ‘scale_change_workarounds’:
msd-xsettings-manager.c:577:51: warning: cast between incompatible function types from ‘gboolean (*)(gboolean)’ {aka ‘int (*)(int)’} to ‘gboolean (*)(void *)’ {aka ‘int (*)(void *)’} [-Wcast-function-type]
  577 |                         g_timeout_add_seconds (1, (GSourceFunc) delayed_toggle_bg_draw, (gpointer) FALSE);
      |                                                   ^
msd-xsettings-manager.c:578:51: warning: cast between incompatible function types from ‘gboolean (*)(gboolean)’ {aka ‘int (*)(int)’} to ‘gboolean (*)(void *)’ {aka ‘int (*)(void *)’} [-Wcast-function-type]
  578 |                         g_timeout_add_seconds (2, (GSourceFunc) delayed_toggle_bg_draw, (gpointer) TRUE);
      |                                                   ^
lukefromdc commented 3 years ago

How do we test this?

rbuj commented 3 years ago

You can change the scale:

gsettings set org.mate.interface window-scaling-factor 2

xsetting

and query the value:

gsettings get org.mate.background show-desktop-icons
Captura de Pantalla 2021-02-13 a les 22 16 16