! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Add property to enable/disable frames on thumbnails
Status:
RESOLVED: FIXED

Comments

Description alexxcons editbugs 2018-06-06 22:58:09 CEST
Created attachment 7772 
very incomplete patch

To select whether thunar  will draw black frames around thumbnails ( disabled in thunar 1.8.0  )

Drawing these frames around thumbnails looks neat, but will delay the first draw a bit, specially on older systems, on folders with many pictures this may be annoying.

Attached a very incomplete patch which I will finish later
Comment 1 alexxcons editbugs 2018-06-06 23:00:23 CEST
Just to keep in mind: We agreed that the checkbox will be on Preferences --> first page, on top of "Sort folders before Files"
Comment 2 Git Bot editbugs 2018-06-06 23:08:46 CEST
Alexander Schwinn referenced this bugreport in commit e859b82dfef46eefb3af95f5b632222526c9293e

Disable thumbnail frame for the 1.8.0 release, since it may have an performance impact. (Bug #14433)

https://git.xfce.org/xfce/thunar/commit?id=e859b82dfef46eefb3af95f5b632222526c9293e
Comment 3 alexxcons editbugs 2018-06-13 23:13:19 CEST
Created attachment 7782 
Patch to add preferences item

Attached a patch. To be applied after xfce4.14 got released
Comment 4 Andre Miranda editbugs 2018-06-19 03:49:46 CEST
Works fine here, just a couple of comments:
1) if the property is toggled, it only takes effect when each Thunar window is focused (obviously when the preferences dialog loses focus). I have no idea if there's a signal that could be globally emitted to request a redraw or refresh. But I would not worry about it.
2) small formatting issue in thunar-icon-factory.c, around line 481, the "if" statement (should have one space before parenthesis and none inside them).

Other than that, everything LGTM, well done!
Comment 5 Git Bot editbugs 2018-06-24 22:23:42 CEST
Alexander Schwinn referenced this bugreport in commit 6e2b1d762ba177fba19e0bb4d466f5a1ed524df4

Add property to enable/disable frames on thumbnails (Bug #14433)

https://git.xfce.org/xfce/thunar/commit?id=6e2b1d762ba177fba19e0bb4d466f5a1ed524df4
Comment 6 alexxcons editbugs 2018-06-24 22:26:19 CEST
Thanks for review ! 

I as well fixed 1) now, since I learned how to reload thumbnails in Bug #14451  :)
Comment 7 Git Bot editbugs 2018-07-11 21:25:31 CEST
Alexander Schwinn referenced this bugreport in commit c27af662247e56d283c7a41190bec65faea05031

Add property to enable/disable frames on thumbnails (Part II) (Bug #14433) - Fix GLib-GObject-CRITICAL at startup

https://git.xfce.org/xfce/thunar/commit?id=c27af662247e56d283c7a41190bec65faea05031

Bug #14433

Reported by:
alexxcons
Reported on: 2018-06-06
Last modified on: 2018-07-11

People

Assignee:
alexxcons
CC List:
3 users

Version

Attachments

very incomplete patch (4.03 KB, patch)
2018-06-06 22:58 CEST , alexxcons
no flags
Patch to add preferences item (8.37 KB, patch)
2018-06-13 23:13 CEST , alexxcons
no flags

Additional information