Fails to build with gnome-desktop 43
- chatty 0.6.7
- gnome-desktop 43 Alpha
gnome-desktop 43 Alpha changed its thumbnail API so chatty needs to be updated to handle this.
It's possible to write code so that it builds with GNOME 43 and with previous GNOME versions like was done with totem.
Build log excerpt
../src/chatty-utils.c: In function ‘utils_create_thumbnail’:
../src/chatty-utils.c:553:15: error: too few arguments to function ‘gnome_desktop_thumbnail_factory_generate_thumbnail’
553 | thumbnail = gnome_desktop_thumbnail_factory_generate_thumbnail (factory, uri, content_type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/chatty-utils.c:24:
/usr/include/gnome-desktop-3.0/libgnome-desktop/gnome-desktop-thumbnail.h:84:13: note: declared here
84 | GdkPixbuf * gnome_desktop_thumbnail_factory_generate_thumbnail (GnomeDesktopThumbnailFactory *factory,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/chatty-utils.c:556:5: error: too few arguments to function ‘gnome_desktop_thumbnail_factory_save_thumbnail’
556 | gnome_desktop_thumbnail_factory_save_thumbnail (factory, thumbnail, uri, mtime);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gnome-desktop-3.0/libgnome-desktop/gnome-desktop-thumbnail.h:89:24: note: declared here
89 | gboolean gnome_desktop_thumbnail_factory_save_thumbnail (GnomeDesktopThumbnailFactory *factory,