Re: [Pan-users] no header columns again

2023-08-01 Thread Duncan
Tom Tanner via Pan-users posted on Sat, 29 Jul 2023 08:44:34 +0100 as
excerpted:

> On 24/07/2023 14:49, Duncan wrote:

>> The problem has to do with gtk icon-caching.  When they're cached, as
>> they are in most cases, no problem.  But when a gtk-related update
>> invalidates that cache, the icons aren't fetched correctly the first
>> time (it's not waiting for the cache update), so the returned width is
>> zero.  That causes the column-width calculations to go screwy.
>>
> Not sure about this, as I use windows, and keep building my own pan, but
> shouldn't one run
> 
> |gtk-update-icon-cache|
> 
> when you update? Maybe that should be in the pan installer?

That indeed looks like it could help and is a great pointer, yes.

Looking at the manpage there's a number of options that look interesting to 
explore in connection with this bug.  Maybe put a cache-update call in my 
pan starter script to replace all that prefs-patching hackery?

(FWIW, despite my long-term interest in gtk-based pan, in general I'm more 
familiar with kde/qt than gnome/gtk.  So I either didn't know about gtk-
update-icon-cache or at least hadn't made the now-obvious association. But 
it sure looks related now that you've pointed me at it, so great pointer, 
indeed!)

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


___
Pan-users mailing list
Pan-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pan-users


Re: [Pan-users] no header columns again

2023-07-29 Thread Tom Tanner via Pan-users

On 24/07/2023 14:49, Duncan wrote:

dchmelik-Re5JQEeQqe8AvxtiuMwx3w posted on Sat, 15 Jul 2023 18:25:29 -0700
as excerpted:


Pan got upgrade to 0.154 on my OS (Slackware64 15+current GNU/Linux) but
once again I'm only seeing the last header of subject, author, date,
bytes.  Someone said the first three disappeared because of a 'race
condition' but I even turned off 'work online', quit, restarted, and it
still happened.  How do I get those back?  It's unusable otherwise.

I see you got them back, but to explain that "race condition"...

Yes, it is a race condition, but work offline won't help, because it occurs
during GUI setup and has nothing to do with the networking.

The problem has to do with gtk icon-caching.  When they're cached, as they
are in most cases, no problem.  But when a gtk-related update invalidates
that cache, the icons aren't fetched correctly the first time (it's not
waiting for the cache update), so the returned width is zero.  That causes
the column-width calculations to go screwy.  The result is that anything
beyond the first icon column (the state and action columns, one of which
IIRC is the first column by default so it's all of them) gets zeroed out,
which in turn results in the /last/ column taking up the entire space, with
everything else squeezed into zero-width columns at the far left.

Then those zero-width column sizes get saved so restarting doesn't help.

The (until next time) user-level fix is to either one-at-a-time drag all
those stacked zero-width dividers at the far left back to plausible values,
which works but is fiddly and having to do it over again at the next icon-
cache invalidation (I've not figured out which package updates the icons
thus invalidating the cache, but it has to be one or more of the gtk-
related packages) gets old fast, OR, (manually or automatically) text-edit
the preferences.xml file to reset non-zero widths.

But editing the prefs file manually gets old after a couple times too, so
as implied by the parenthetical above, I've automated the process here,
with a pan startup script that resets them (applying patch files to do so)
if it finds them set to zero.  So here, when that happens I can immediately
close and restart pan and the startup script will reset them.

IOW it's not directly a pan bug, but rather gtk related.  Perhaps pan could
work around it, tho, if someone knowing gtk well enough got hit enough
times by the bug to trigger them to investigate further.  Unfortunately I'm
not a dev, just an admin (of my own systems) that reads enough dev-speak to
have debugged it far enough to have scripted my own mostly-automated
workaround.

The things we'll do to work around computer bugs in our favorite programs!
=:^\

Not sure about this, as I use windows, and keep building my own pan, but 
shouldn't one run


|gtk-update-icon-cache|

when you update? Maybe that should be in the pan installer?

___
Pan-users mailing list
Pan-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pan-users


Re: [Pan-users] no header columns again

2023-07-24 Thread Duncan
dchmelik-Re5JQEeQqe8AvxtiuMwx3w posted on Sat, 15 Jul 2023 18:25:29 -0700
as excerpted:

> Pan got upgrade to 0.154 on my OS (Slackware64 15+current GNU/Linux) but
> once again I'm only seeing the last header of subject, author, date,
> bytes.  Someone said the first three disappeared because of a 'race
> condition' but I even turned off 'work online', quit, restarted, and it
> still happened.  How do I get those back?  It's unusable otherwise.

I see you got them back, but to explain that "race condition"...

Yes, it is a race condition, but work offline won't help, because it occurs 
during GUI setup and has nothing to do with the networking.

The problem has to do with gtk icon-caching.  When they're cached, as they 
are in most cases, no problem.  But when a gtk-related update invalidates 
that cache, the icons aren't fetched correctly the first time (it's not 
waiting for the cache update), so the returned width is zero.  That causes 
the column-width calculations to go screwy.  The result is that anything 
beyond the first icon column (the state and action columns, one of which 
IIRC is the first column by default so it's all of them) gets zeroed out, 
which in turn results in the /last/ column taking up the entire space, with 
everything else squeezed into zero-width columns at the far left.

Then those zero-width column sizes get saved so restarting doesn't help.

The (until next time) user-level fix is to either one-at-a-time drag all 
those stacked zero-width dividers at the far left back to plausible values, 
which works but is fiddly and having to do it over again at the next icon-
cache invalidation (I've not figured out which package updates the icons 
thus invalidating the cache, but it has to be one or more of the gtk-
related packages) gets old fast, OR, (manually or automatically) text-edit 
the preferences.xml file to reset non-zero widths.

But editing the prefs file manually gets old after a couple times too, so 
as implied by the parenthetical above, I've automated the process here, 
with a pan startup script that resets them (applying patch files to do so) 
if it finds them set to zero.  So here, when that happens I can immediately 
close and restart pan and the startup script will reset them.

IOW it's not directly a pan bug, but rather gtk related.  Perhaps pan could 
work around it, tho, if someone knowing gtk well enough got hit enough 
times by the bug to trigger them to investigate further.  Unfortunately I'm 
not a dev, just an admin (of my own systems) that reads enough dev-speak to 
have debugged it far enough to have scripted my own mostly-automated 
workaround.

The things we'll do to work around computer bugs in our favorite programs! 
=:^\

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


___
Pan-users mailing list
Pan-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pan-users


Re: [Pan-users] no header columns again

2023-07-15 Thread dchmelik

On 7/15/23 8:23 PM, David Chmelik wrote:

On 7/15/23 8:14 PM, Ed Fletcher wrote:

On 7/15/23 18:25, dchme...@gmail.com wrote:
Pan got upgrade to 0.154 on my OS (Slackware64 15+current GNU/Linux) 
but once again I'm only seeing the last header of subject, author, 
date, bytes. Someone said the first three disappeared because of a 
'race condition' but I even turned off 'work online', quit, 
restarted, and it still happened.  How do I get those back? It's 
unusable otherwise.




Are you missing columns or headers?

If it's columns, got to Edit:Preferences and to the Headers Tab to 
see if the columns you're missing are selected.  If they are already 
selected, check your column widths at the top of the headers pane.  
If they are too wide, some columns will disappear off to the right.  
Check for a horizontal slide bar at the bottom of the Headers Pane.  
Grab the vertical line between the column headers and slide left or 
right to readjust the size.


If you're missing headers/articles, go to Edit:Preferences then to 
the Articles Tab and see what it's set to delete articles at. [...]


I explained this before; the (selected in preferences) columns 
disappeared and so did the horizontal slide bar/li, which somene 
described happened because of a 'race condition'.


Bar/line.

___
Pan-users mailing list
Pan-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pan-users


Re: [Pan-users] no header columns again

2023-07-15 Thread David Chmelik

On 7/15/23 8:14 PM, Ed Fletcher wrote:

On 7/15/23 18:25, dchme...@gmail.com wrote:
Pan got upgrade to 0.154 on my OS (Slackware64 15+current GNU/Linux) 
but once again I'm only seeing the last header of subject, author, 
date, bytes.  Someone said the first three disappeared because of a 
'race condition' but I even turned off 'work online', quit, 
restarted, and it still happened.  How do I get those back?  It's 
unusable otherwise.




Are you missing columns or headers?

If it's columns, got to Edit:Preferences and to the Headers Tab to see 
if the columns you're missing are selected.  If they are already 
selected, check your column widths at the top of the headers pane.  If 
they are too wide, some columns will disappear off to the right.  
Check for a horizontal slide bar at the bottom of the Headers Pane.  
Grab the vertical line between the column headers and slide left or 
right to readjust the size.


If you're missing headers/articles, go to Edit:Preferences then to the 
Articles Tab and see what it's set to delete articles at. [...]


I explained this before; the (selected in preferences) columns 
disappeared and so did the horizontal slide bar/li, which was described 
to do so because of a 'race condition'.


___
Pan-users mailing list
Pan-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pan-users


Re: [Pan-users] no header columns again

2023-07-15 Thread Ed Fletcher

On 7/15/23 18:25, dchme...@gmail.com wrote:
Pan got upgrade to 0.154 on my OS (Slackware64 15+current GNU/Linux) but 
once again I'm only seeing the last header of subject, author, date, 
bytes.  Someone said the first three disappeared because of a 'race 
condition' but I even turned off 'work online', quit, restarted, and it 
still happened.  How do I get those back?  It's unusable otherwise.




Are you missing columns or headers?

If it's columns, got to Edit:Preferences and to the Headers Tab to see 
if the columns you're missing are selected.  If they are already 
selected, check your column widths at the top of the headers pane.  If 
they are too wide, some columns will disappear off to the right.  Check 
for a horizontal slide bar at the bottom of the Headers Pane.  Grab the 
vertical line between the column headers and slide left or right to 
readjust the size.


If you're missing headers/articles, go to Edit:Preferences then to the 
Articles Tab and see what it's set to delete articles at.


Hope this helps,
Ed
--
Ed Fletcher

"When I became a man I put away childish things, including the fear of 
childishness and the desire to be very grown up.”

― C.S. Lewis

___
Pan-users mailing list
Pan-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pan-users