It would be great if xfdesktop could use thunar to generate thumbnails for relevant files located on the desktop.
Created attachment 4005 [PATCH] Thumbnail images! This patch adds support for displaying thumbnails of images, so long as gtk supports the file format. As an added bonus the exif info is read and the orientation is set correctly. I'm not an XFCE developer so please test this patch out and report any problems.
Created attachment 4006 [PATCH] Displays thumbnails of images on the desktop. Sets up an xfconf property so it can be disabled. This patch fixes a bug in the previous patch I proposed where symbolic link emblems weren't rendered correctly. Additionally, there's an xfconf property to toggle displaying of thumbnails on the desktop. It can be changed with 'xfconf-query -c xfce4-desktop -p /desktop-icons/show-thumbnails -s true'. If the property doesn't exist this code also creates it, as a convenience.
Created attachment 4013 xfdesktop uses tumbler to generate thumbnails This patch allows xfdesktop to use tumbler to generate thumbnail files for any filetypes it supports. I've also made the code somewhat modular so that the xfdesktop-settings app could use the same code, but haven't messed with that yet. I'd also like to add functionality to use gtk as a fallback if tumbler isn't around or working properly. Same deal as the last patch, there's an xfconf property to turn off thumbnail previews. Since I'm not an XFCE dev, test this patch out and provide feedback please.
Created attachment 4014 xfdesktop uses a dbus thumbnail service for icons Bah! I missed a couple stupid bugs. This just improves and supersedes the last patch.
Created attachment 4027 [PATCH] Adds support for drawing thumbnails from the dbus thumbnail service. This patch adds the functionality to have the thumbnail service delete the thumbnail when the source file on the desktop is deleted so the user's thumbnail directory isn't filled with abandoned files. This patch also fixes a couple bugs I found while auditing and testing the code.
Created attachment 4041 [PATCH] Adds support for drawing thumbnails from the dbus thumbnail service. This revision fixes a bug on xfdesktop exit where GLib-GObject-CRITICAL **: g_object_unref: assertion `object->ref_count > 0' failed.
Created attachment 4064 Thumbnail desktop icons from tumblerd. This patch changes how xfdesktop handles checking for the show-thumbnails option. Now changes to the option will get updated in real-time and with the previous patch if you disabled the thumbnails they'd still get generated even if you didn't ever use them. I also found a couple other minor things to tweak with the code.
Created attachment 4102 [PATCH] Thumbnail desktop icons from tumblerd and display icon tooltips Fixed up some of the code and added support for displaying small icon previews on the tooltip popups.
This also needs an option to disable thumbnails, a lot of people use this in thunar too.
...Preferably checkbox in the dialog somewhere in the last tab.
Created attachment 4120 [PATCH] Desktop icon previews from tumblerd I added the option to toggle thumbnails to xfdesktop-settings.
Stupid question: why don't you keep the ratio of the original file? You seem to pass preserve_aspect_ratio=FALSE to gdk_pixbuf_new_from_file_at_scale(), so all thumbnails are squared right now.
Created attachment 4168 [PATCH] Thumbnail desktop icon previews from tumblerd The aspect ratio is now preserved, to do that I removed the xfdesktop_icon_mark_extents_dirty function so that it would redraw the icons correctly when the width or height changes.
Created attachment 4181 [PATCH] Thumbnail desktop icon previews using tumblerd Setting the size of the tooltip image is a gtk style now so "XfdesktopIconView::tooltip-size = 128" in the .gtkrc-2.0 will allow the user to change it, 0 sets it to not show any image. Poll the thumbnail service to see if it supports large icons and requests those to be created if they are. This way icons and tooltip images larger than 128 look better. Changed the Icon Size spinner in the settings app to have a timeout called so it can avoid redrawing all the icons for every value change. The downsize is that it the user is changing the icon size in xfconf-query or the Settings Editor at the same time, then xfdesktop-settings won't see it since it no longer binds to the value; xfdesktop still will however.
Hello Eric, IMO bugs shouldn't be marked as fixed until the fix is committed to the git master branch and/or to a -4.x branch if relevant. That way, Resolved - Fixed means that it's fixed for real, ie if someone pulls the git master branch, the bug is not here. Cheers, Jérôme
*** Bug 8214 has been marked as a duplicate of this bug. ***
Closing the bugs is fine, we intend to merge this in master this week. So closing bugs makes it easier to find non-fixed bugs.