Recent

Author Topic: Gtk3 widgetset - call for testing  (Read 4799 times)

zeljko

  • Hero Member
  • *****
  • Posts: 1998
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Gtk3 widgetset - call for testing
« Reply #45 on: June 30, 2026, 11:15:00 am »
1. It blinks ok here all the time, cannot reproduce it with gtk3.
2. "Royal blue" selection color is not bug - it is difference in theme highlight color (clHighlight) IMO.

PeterBB

  • Full Member
  • ***
  • Posts: 115
Re: Gtk3 widgetset - call for testing
« Reply #46 on: June 30, 2026, 09:24:17 pm »
Hi Zeljko,

1. It blinks ok here all the time, cannot reproduce it with gtk3.
2. "Royal blue" selection color is not bug - it is difference in theme highlight color (clHighlight) IMO.

I think the new Blue is better ;-)

Anyway, when you get time, could you email me or post your copy of the reg.xml file that sits
in the folder where Maps and Saved reside?

Also, which Operating System and which version of c-evo-dh are you using?
If its Debian, could you send me a copy of the debian source deb used in the lazarus build,
and are you carrying any debian patches?

Cheers,
Peter


zeljko

  • Hero Member
  • *****
  • Posts: 1998
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Gtk3 widgetset - call for testing
« Reply #47 on: July 01, 2026, 09:35:07 am »
I'm using Mint 22.3, KDE Plasma 5 x11, c-evo downloaded from link you provided here, find attached reg.xml from $HOME/.config/c-evo-dh, lazarus trunk installed via fpcupdeluxe - so vanilla.

PeterBB

  • Full Member
  • ***
  • Posts: 115
Re: Gtk3 widgetset - call for testing
« Reply #48 on: July 01, 2026, 12:20:41 pm »
Hi Zeljko,

Seems its nothing to do with reg.xml

I have purged and reinstalled lazarus and c-evo.
I had some old debug versions installed that may well
have been my problem. Anyway, blinking is back in gtk3,
and no other obvious issues.  Many thanks!

FWIW I'm using Arch here, as its generally much easy
to upgrade PKGBUILDs to new versions, unlike Debian packaging!

Regards,
Peter

P.S.  Still no blinking with Qt
Using rev 74074 commit 1800da0



zeljko

  • Hero Member
  • *****
  • Posts: 1998
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Gtk3 widgetset - call for testing
« Reply #49 on: July 01, 2026, 02:00:15 pm »
Haven't touched qt in this regard, but will check

PeterBB

  • Full Member
  • ***
  • Posts: 115
Re: Gtk3 widgetset - call for testing
« Reply #50 on: July 01, 2026, 02:25:58 pm »
Argh!!

I spoke too soon about the blinking in gtk3.
Seems it is intermittent, between different start-ups of the game.

In some starts, it always works. Other starts, blinks only in the top left quadrant.
Game is generally playable. I found another issue though;

When defeating an enemy stack, there is a pop-up titled
" .... army destroyed"  with a window showing graphics of the destroyed units.
This window was blank.
 ( That would be 'ARMYLOST' in LocalPlayer/Term.pas around line 6620 )
   
Code: Pascal  [Select][+][-]
  1.       if nLostArmy > 1 then
  2.       begin
  3.         with MessgExDlg do
  4.         begin
  5.           Kind := mkOk;
  6.           IconKind := mikEnemyArmy;
  7.           MessgText := Tribe[Defender].TString(Phrases.Lookup('ARMYLOST',
  8.             MyRO.EnemyModel[MyRO.EnemyUn[euix].emix].Domain));
  9.           ShowModal;
  10.         end;
  11.       end;
  12.  

Guess I need to produce a saved game to demonstrate this,
but afraid I'm rather busy right now as a have a vacation coming up.

Cheers,
Peter


 

 

zeljko

  • Hero Member
  • *****
  • Posts: 1998
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Gtk3 widgetset - call for testing
« Reply #51 on: July 01, 2026, 02:38:37 pm »
I'll be on vacation too :) , but yes, I guess saved game could help me a lot to see what's up exactly.

Hansvb

  • Hero Member
  • *****
  • Posts: 935
Re: Gtk3 widgetset - call for testing
« Reply #52 on: July 19, 2026, 10:25:16 am »
Hi,

I installed Lazarus trunc with FPC trunc on Ubuntu 26.04. I see 2 differences with the Windows gtk2 variant.
With a TStringGrid you don't see any arrows at the scollbar. Is that deliberate?
With a TSplitter I can't set a color. With Windows it takes over the color of the parent but under gtk3 it doesn't?

zeljko

  • Hero Member
  • *****
  • Posts: 1998
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Gtk3 widgetset - call for testing
« Reply #53 on: July 19, 2026, 08:21:54 pm »
Scrollbars in gtk3 looks different than in gtk2, that's not bug. Also it depends on theme. TSplitter.Color should be possible to make it work I guess since TSplitter handle is TGtk3CustomControl, open an issue about it.

PeterBB

  • Full Member
  • ***
  • Posts: 115
Re: Gtk3 widgetset - call for testing
« Reply #54 on: July 22, 2026, 03:55:22 pm »
Haven't touched qt in this regard, but will check

Hi Zeljko,

Problems with qt can be reproduced easily.
Just start any new game. The selected unit never blinks.
Also there is a minor display issue with the start screen.
Attaching screenshots of gtk2 and qt6

PeterBB

  • Full Member
  • ***
  • Posts: 115
Re: Gtk3 widgetset - call for testing
« Reply #55 on: July 22, 2026, 04:17:35 pm »
.... I guess saved game could help me a lot to see what's up exactly.
Attaching a saved game (might need to add .txt to the file name to get it accepted).
I can't reproduce the intermittent failure of selected unit to blink in a small game,
but have found some other issues with gtk3.

This game is saved at end of turn. On starting the next turn, the Chinese
want to open a dialog. On accepting, the negotiation window is empty in gtk3 !
Attaching screen shots for gtk2 & gtk3. This is much easier to reproduce than the
empty battle dialog, but may well be a symptom of the same problem.

Another issue I noticed with gtk3 only. When completing a research item, a list
of available items to research next is presented. Shift clicking an item brings
up the manual page for it as a separate window. In gtk3, this window does
not respond to its close button (top right of the window).
Not critical, but the close button should work of course. (End of turn closes it.)

zeljko

  • Hero Member
  • *****
  • Posts: 1998
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Gtk3 widgetset - call for testing
« Reply #56 on: July 22, 2026, 04:47:20 pm »
What lazarus gtk3 revision do you use ? Yesterday I've fixed an overrun with bitmaps, also can you point me to the unit where is negotitaion dialog packed so maybe I can create an simple example to work on without running complete game ?

PeterBB

  • Full Member
  • ***
  • Posts: 115
Re: Gtk3 widgetset - call for testing
« Reply #57 on: July 22, 2026, 05:46:04 pm »
What lazarus gtk3 revision do you use ? Yesterday I've fixed an overrun with bitmaps, also can you point me to the unit where is negotitaion dialog packed so maybe I can create an simple example to work on without running complete game ?

I took a snapshot at midday last Sunday, I'll try again with the latest version.

The negotiation dialog is in LocalPlayer/Nego.pas



PeterBB

  • Full Member
  • ***
  • Posts: 115
Re: Gtk3 widgetset - call for testing
« Reply #58 on: July 22, 2026, 07:50:11 pm »
I am also seeing repeated messages on the console log.
Pairs like below. Not a problem in itself.
Just mentioning in case there is a clue here.
(Latest version from trunk behaves the same)


Code: Pascal  [Select][+][-]
  1. [W][18:40:50.568622] pw.conf      | [          conf.c: 1187 try_load_conf()] can't load config client.conf: No such file or directory
  2. [E][18:40:50.568698] pw.conf      | [          conf.c: 1220 pw_conf_load_conf_for_context()] can't load config client.conf: No such file or directory

zeljko

  • Hero Member
  • *****
  • Posts: 1998
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Gtk3 widgetset - call for testing
« Reply #59 on: July 22, 2026, 07:52:01 pm »
pw_conf_load_conf_for_context is PipeWire thing, and we do not use it at all in gtk3 lcl.

 

TinyPortal © 2005-2018