WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Updating fluff, flit, and flpicsee updates to fltk-1.4  (Read 1144 times)

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 583
  • Good software needn't be big!
Updating fluff, flit, and flpicsee updates to fltk-1.4
« on: March 16, 2025, 12:51:05 AM »
Hello testers... I've made many moderate changes to Fluff (file manager) and FLPicSee (image viewer) to work better with FLTK 1.4.  Would any of you like to test these new versions?  What's a good mechanism to do that these days?  -Mike

P.S. screenshot is set up a bit weird, but it's hard to keep the image file size within the 200K limit when showing much content on my 1920x1080 screen.

Offline Leee

  • Full Member
  • ***
  • Posts: 163
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #1 on: March 16, 2025, 04:05:41 AM »
Hi MikeLockmoore.  I'd be happy to take a look at them.  I'm on x86_64, but could switch to 32 bit for this purpose if needed.
@Rich - is there a prescribed way to share new extensions for testing via the repo?
core 15.0 x86_64

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12012
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #2 on: March 16, 2025, 07:58:23 AM »
Hi MikeLockmoore
... P.S. screenshot is set up a bit weird, but it's hard to keep the image file size within the 200K limit when showing much content on my 1920x1080 screen.
The first thing I would do is convert from .png to .jpg:
Code: [Select]
tc@E310:~$ ls -l Downloads/screenshot_0315224859.png
-rw-r--r-- 1 tc staff 195902 Mar 16 06:51 Downloads/screenshot_0315224859.png
tc@E310:~$
tc@E310:~$ PicFormat -i Downloads/screenshot_0315224859.png -o Downloads/screenshot_0315224859.jpg
Input=Downloads/screenshot_0315224859.png  Fmt=png  W=1920  H=1080  AR=16:9
Output=Downloads/screenshot_0315224859.jpg  Fmt=jpg  W=1920  H=1080  AR=16:9  Rotate=0
tc@E310:~$
tc@E310:~$ ls -l Downloads/screenshot_0315224859.jpg
-rw-r--r-- 1 tc staff 172874 Mar 16 07:17 Downloads/screenshot_0315224859.jpg

A small reduction in image size yields a significant file size reduction.
Using a nice binary fraction like 7/8 (.875) reduces the image to 1680x945:
Code: [Select]
tc@E310:~$ PicFormat -i Downloads/screenshot_0315224859.png -o Downloads/screenshot_0315224859.jpg -w 1680
Input=Downloads/screenshot_0315224859.png  Fmt=png  W=1920  H=1080  AR=16:9
Output=Downloads/screenshot_0315224859.jpg  Fmt=jpg  W=1680  H=945  AR=16:9  Rotate=0
tc@E310:~$
tc@E310:~$ ls -l Downloads/screenshot_0315224859.jpg
-rw-r--r-- 1 tc staff 137362 Mar 16 07:26 Downloads/screenshot_0315224859.jpg
To my eyes, the reduced version looked just as good as your original.The text is
crisp, just slightly smaller (see attached image).

PicFormat is something I wrote a few years ago. It's 8k in size and depends on imlib2.tcz.
It's a simple command line program that does format conversion, rotation, size
conversion, and aspect ratio adjustment if desired.
Details of its used are included in the .info file:
http://tinycorelinux.net/16.x/x86/tcz/PicFormat.tcz.info
http://tinycorelinux.net/16.x/x86_64/tcz/PicFormat.tcz.info

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12012
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #3 on: March 16, 2025, 08:37:24 AM »
Hi MikeLockmoore
Hello testers... I've made many moderate changes to Fluff (file manager) and FLPicSee (image viewer) to work better with FLTK 1.4.  Would any of you like to test these new versions?  What's a good mechanism to do that these days?  -Mike ...
If you like, I can setup a testing directory under http://tinycorelinux.net/16.x/x86_64/tcz/.
Email me a tarball (or 2) with the .tczs to test and I'll post them there.
I sent you an email so you'll have my address.
You might want to give the .tczs unique names so they don't clash
with official versions.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 848
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #4 on: March 16, 2025, 10:14:02 AM »
Hi, I saw the bulk of discusion going to fltk-1.4 for 64 bits. There are the main appls ctrl-panel & friends, fluff and flwm. 

IMHO also these (not in the base, but nice to have as a minimum useful distro) should be updated:
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/flaxpdf.tcz.dep  =PDF viewer
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/flburn.tcz.dep   =CD/DVD burner
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/flit.tcz.dep        =sound/battery
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/flnotify.tcz.dep
BTW: dillo 3.2 depending on fltk-1.4 :)

and few others (not much used / commented in the forum):
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/pinentry-fltk.tcz.dep
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/moonfltk.tcz.dep   =lua
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/webkitfltk-dev.tcz.dep  =maybe MIA missing in action (no appl using it).
« Last Edit: March 16, 2025, 10:22:02 AM by nick65go »

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 583
  • Good software needn't be big!
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #5 on: March 16, 2025, 05:53:30 PM »
Hi, I saw the bulk of discusion going to fltk-1.4 for 64 bits. There are the main appls ctrl-panel & friends, fluff and flwm. 

IMHO also these (not in the base, but nice to have as a minimum useful distro) should be updated:
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/flaxpdf.tcz.dep  =PDF viewer
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/flburn.tcz.dep   =CD/DVD burner
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/flit.tcz.dep        =sound/battery
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/flnotify.tcz.dep
BTW: dillo 3.2 depending on fltk-1.4 :)

and few others (not much used / commented in the forum):
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/pinentry-fltk.tcz.dep
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/moonfltk.tcz.dep   =lua
https://mirrors.dotsrc.org/tinycorelinux/16.x/x86_64/tcz/webkitfltk-dev.tcz.dep  =maybe MIA missing in action (no appl using it).

Good to consider these.  Flit is an app I created and definitely want to fix, and not just for FLTK reasons.  The battery monitor does not work with the current power management sys/ filesystem stuff.  Probably also needs some changes for the sound control side as well, if not more!  :P

Not sure to what extent I can work on the others.  Would be nice to have a native FLTK web browser so I don't need FF, which has a ton of local files that are getting backed up on TC exit.

Hi MikeLockmoore
Hello testers... I've made many moderate changes to Fluff (file manager) and FLPicSee (image viewer) to work better with FLTK 1.4.  Would any of you like to test these new versions?  What's a good mechanism to do that these days?  -Mike ...
If you like, I can setup a testing directory under http://tinycorelinux.net/16.x/x86_64/tcz/.
Email me a tarball (or 2) with the .tczs to test and I'll post them there.
I sent you an email so you'll have my address.
You might want to give the .tczs unique names so they don't clash
with official versions.


Excellent!  I will try to email.  Can we just rename the .tcz file to things like fluff_testing.tcz and flpicsee_testing.tcz?

Here's a screenshot showing FlPicsee's spiffy new icon.

- Mike

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12012
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #6 on: March 16, 2025, 08:20:27 PM »
Hi Leee
fluff_testing  and  flpicsee_testing  .tcz and .tcz.dep available at:
http://tinycorelinux.net/16.x/x86_64/tcz/testing

If you have fluff or flpicsee loaded, reboot without loading them before
attempting to load fluff_testing and/or flpicsee_testing.

Source tarballs can be found in:
http://tinycorelinux.net/16.x/x86_64/tcz/testing/src

Offline Leee

  • Full Member
  • ***
  • Posts: 163
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #7 on: March 16, 2025, 11:50:25 PM »
Thanks Rich.
core 15.0 x86_64

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12012
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #8 on: March 16, 2025, 11:53:11 PM »
Hi Leee
You are welcome. :)

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 583
  • Good software needn't be big!
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #9 on: March 17, 2025, 12:14:53 AM »
Short update... I got a version of Flit building with FLTK 1.4.x, and some of the basics are working.  ;D

However, the batt/power monitor needs a big overhaul to work right with current Linux kernels (which I started working on in 2023, but lost that file, bit it shouldn't be too hard to re-create).  It does the fractional scaling thing with Ctrl+Plus / Ctrl+Minus, but I want to have it automatically pick up the default/configured scaling factor from FLTK like I did for FLWM as a whole. Sound can be controlled but I think there are some quirks about it (maybe because I have PulseAudio installed to get sound working right with FireFox / Youtube.  It's displaying the WiFi signal strength OK, but I don't know if it can fully substitute for the WiFi.tcz extension yet. 

Offline Leee

  • Full Member
  • ***
  • Posts: 163
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #10 on: March 17, 2025, 02:26:34 PM »
@MikeLockmoore, re fluff_testing
I'm seeing an issue where clicking/double clicking an item in the file list affects (and highlights) the item above instead of the item clicked.
So I thought. "hmmm... what if I click the top item in the list?".  Tried that and it selected the correct item.
Fooled around with it for a bit, then resized window to show 43 items.  Exited then restarted fluff.
Code: [Select]
clicked each item in turn
1 ( ./ ) OK (highlighted Item #1)
2 OK
3 OK
4 OK
5 OK
6 OK
7 OK
8 OK
9 OK
10 OK
11 OK
12 OK
13 OK
14 OK
15 OK
16 OK
17 OK
18 OK
19 * * * highlight stays on #18
20 highlighted #19
21 OK
22 OK
23 * * * highlight stays on #22
24 highlights #23
25 highlights #24
26 highlightd # n-1 until...
27 .
28 .
29 .
30 .
31 .
32 .
33 .
34 .
35 .
36 .
37 .
38 .
39 .
40 .
41 .
42 .
43 this item was not completely within the window, soclicking it caused the window to scroll by 1 line, then #43 was highlighted correctly
On a second test, the same basic thing happened but starting at slightly different item numbers and it did not correct after the list scrolled.
« Last Edit: March 17, 2025, 02:28:33 PM by Leee »
core 15.0 x86_64

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 583
  • Good software needn't be big!
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #11 on: March 18, 2025, 05:47:29 PM »
@MikeLockmoore, re fluff_testing
I'm seeing an issue where clicking/double clicking an item in the file list affects (and highlights) the item above instead of the item clicked.
So I thought. "hmmm... what if I click the top item in the list?".  Tried that and it selected the correct item.
Fooled around with it for a bit, then resized window to show 43 items.  Exited then restarted fluff.
Code: [Select]
clicked each item in turn
1 ( ./ ) OK (highlighted Item #1)
2 OK
...18 OK
19 * * * highlight stays on #18
20 highlighted #19
21 OK
22 OK
23 * * * highlight stays on #22
24 highlights #23
25 highlights #24
26 highlightd # n-1 until...
27 .
28 .
...
42 .
43 this item was not completely within the window, soclicking it caused the window to scroll by 1 line, then #43 was highlighted correctly
On a second test, the same basic thing happened but starting at slightly different item numbers and it did not correct after the list scrolled.

Hi Leee.  Thanks for the detailed issue report! I think I've noticed a similar problem with the click event effect not aligning with the physical location of the pointer myself, but not consistently enough to debug it yet.  Your info should help me reproduce the issue and troubleshoot it.

Can you tell me whether you are using any of the fractional scaling options when this happens for you... did you use Ctrl+Plus or Ctrl-Minus to adjust the fractional scaling as Fluff was running?  Or do you have Xft.dpi set to something besides 96.0 or have the FLTK_SCALE_FACTOR environment variable set before launching Fluff?

Hopefully my code just assumes a fixed size of the file list item rows and now it is different, or sometimes different. I probably just need to compensate appropriately.  Hope to get to this later today or tomorrow! -Mike


Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 583
  • Good software needn't be big!
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #12 on: March 18, 2025, 11:29:39 PM »
@MikeLockmoore, re fluff_testing
I'm seeing an issue where clicking/double clicking an item in the file list affects (and highlights) the item above instead of the item clicked.

So far I have not been able to duplicate the item click/selection issue on my build 1.1.2.  Can you verify you have loaded and are running that version? (Click on the [A] button in the toolbar or open Help to see the version number).  Note I have configured Xft.dpi to 120.0 (125% of the normal size) by default, but I tried to Ctrl+Plus and Ctrl+Minus to change the scaling interactively in Fluff at did not see any cases of not highlighting the clicked-on item in the file list.

P.S. Flit is now showing my battery power status again!  Plus it can show the WiFi signal strength, but as of now, I still need to use WiFi.tcz to make the connection with a passphrase. The sound control can adjust the sound volume, but sound is disabled after reboot unless I re-enable the output device it in PAVUcontrol.  Little by little.  At some point, I'd like to switch to the newish SVG icon support in FLTK and use some more polished icons for Flit. 
« Last Edit: March 18, 2025, 11:46:57 PM by MikeLockmoore »

Offline Leee

  • Full Member
  • ***
  • Posts: 163
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #13 on: March 19, 2025, 12:21:25 AM »
@MikeLockmoore, re fluff_testing
I'm seeing an issue where clicking/double clicking an item in the file list affects (and highlights) the item above instead of the item clicked.
So I thought. "hmmm... what if I click the top item in the list?".  Tried that and it selected the correct item.
Fooled around with it for a bit, then resized window to show 43 items.  Exited then restarted fluff.
Code: [Select]
clicked each item in turn
1 ( ./ ) OK (highlighted Item #1)
2 OK
...18 OK
19 * * * highlight stays on #18
20 highlighted #19
21 OK
22 OK
23 * * * highlight stays on #22
24 highlights #23
25 highlights #24
26 highlightd # n-1 until...
27 .
28 .
...
42 .
43 this item was not completely within the window, soclicking it caused the window to scroll by 1 line, then #43 was highlighted correctly
On a second test, the same basic thing happened but starting at slightly different item numbers and it did not correct after the list scrolled.

Hi Leee.  Thanks for the detailed issue report! I think I've noticed a similar problem with the click event effect not aligning with the physical location of the pointer myself, but not consistently enough to debug it yet.  Your info should help me reproduce the issue and troubleshoot it.

Can you tell me whether you are using any of the fractional scaling options when this happens for you... did you use Ctrl+Plus or Ctrl-Minus to adjust the fractional scaling as Fluff was running?  Or do you have Xft.dpi set to something besides 96.0 or have the FLTK_SCALE_FACTOR environment variable set before launching Fluff?

Hopefully my code just assumes a fixed size of the file list item rows and now it is different, or sometimes different. I probably just need to compensate appropriately.  Hope to get to this later today or tomorrow! -Mike
FLTK_SCALE_FACTOR is not set
No use of CTRL-PLUS or CTRL-MINUS
I don't remember ever having explicitly set Xft.dpi - but I don't know where to check it.
I did resize the window before starting my test.

core 15.0 x86_64

Offline Leee

  • Full Member
  • ***
  • Posts: 163
Re: Updating fluff, flit, and flpicsee updates to fltk-1.4
« Reply #14 on: March 19, 2025, 12:32:50 AM »
@MikeLockmoore, re fluff_testing
I'm seeing an issue where clicking/double clicking an item in the file list affects (and highlights) the item above instead of the item clicked.

So far I have not been able to duplicate the item click/selection issue on my build 1.1.2.  Can you verify you have loaded and are running that version? (Click on the [A] button in the toolbar or open Help to see the version number).  Note I have configured Xft.dpi to 120.0 (125% of the normal size) by default, but I tried to Ctrl+Plus and Ctrl+Minus to change the scaling interactively in Fluff at did not see any cases of not highlighting the clicked-on item in the file list.

P.S. Flit is now showing my battery power status again!  Plus it can show the WiFi signal strength, but as of now, I still need to use WiFi.tcz to make the connection with a passphrase. The sound control can adjust the sound volume, but sound is disabled after reboot unless I re-enable the output device it in PAVUcontrol.  Little by little.  At some point, I'd like to switch to the newish SVG icon support in FLTK and use some more polished icons for Flit.
Verified: I'm using fluff version 1.1.2
Just now I tried using Ctrl-PLUS to run it up to 120% and the cursor offset still occurred.  When I scrolled the screen and continued single clicking each file down the list, it eventually went to an offset of minus two (the highlight would appear two lines above where I clicked.
core 15.0 x86_64