Project

General

Profile

Actions

Feature #1287

closed

GTK client remember size of help dlg

Added by Dean Brown 2 months ago. Updated 14 days ago.

Status:
Closed
Priority:
Normal
Category:
gtk3.22-client
Target version:
Start date:
04/06/2025
Due date:
% Done:

0%

Estimated time:

Description

This has bothered me ever since I first started with freeciv many years ago - having to always enlarge the help dlog. The qt client tracks its size already. I figured out how to do it for gtk3.22 (and gtk3, not that it matters), gtk4 does things differently.


Files

#1287-3.1.patch (2.64 KB) #1287-3.1.patch Dean Brown, 04/06/2025 07:30 AM
#1287-main.patch (13.8 KB) #1287-main.patch Dean Brown, 04/06/2025 07:30 AM
1287gtk4-1time.patch (1.68 KB) 1287gtk4-1time.patch Dean Brown, 04/13/2025 06:00 AM
1287gtk4-alltime.patch (1.46 KB) 1287gtk4-alltime.patch Dean Brown, 04/13/2025 06:00 AM
1287gtk5-alltime.patch (1.46 KB) 1287gtk5-alltime.patch Dean Brown, 04/16/2025 01:55 AM
1287combined.patch (16.1 KB) 1287combined.patch Dean Brown, 05/04/2025 11:35 PM
1287corrected.patch (7.92 KB) 1287corrected.patch Dean Brown, 05/20/2025 11:30 PM
1287-S3_1&S3_2corrected.patch (2.9 KB) 1287-S3_1&S3_2corrected.patch Dean Brown, 05/25/2025 03:52 AM
1287-S3_3&MainCorrected.patch (11.7 KB) 1287-S3_3&MainCorrected.patch Dean Brown, 05/26/2025 07:56 AM
1287-S3_3&MainCorrectedWithMigrate.patch (13.2 KB) 1287-S3_3&MainCorrectedWithMigrate.patch Dean Brown, 05/28/2025 06:28 AM

Related issues 1 (0 open1 closed)

Blocks Feature #1288: GTK client remember size of the options dlogClosedMarko Lindqvist04/06/2025

Actions

Updated by Dean Brown 2 months ago

The 3.1 patch only remembers the size during one runtime. To remember it across runtimes requires storing the value in the options file freeciv-client-rc-xxx. Because we are so close to the 3.2.0 release and that data file formats are frozen and that the options file counts as a data file format, I did that patch for the main branch. I could be wrong, maybe it's OK to apply the main patch to 3.2?

Updated by Dean Brown 2 months ago

Figured out the fix for gtk4.

The 1time patch made from 3.1 branch, doesn't touch freeciv-client-rc-* file, saves the size during one runtime.

The alltime patch made from main branch, affects freeciv-client-rc-* file, saves the size across runtimes. This patch was created after the patch "#1287-main.patch" was done.

Actions #3

Updated by Dean Brown 2 months ago

copy the fix into gtk5

Actions #4

Updated by Marko Lindqvist about 2 months ago

  • Target version set to 3.1.6
Actions #5

Updated by Dean Brown about 1 month ago

Replace the files #1287-main.patch, 1287gtk4-alltime.patch and 1287gtk5-alltime.patch with 1287combined.patch

Actions #6

Updated by Marko Lindqvist 30 days ago

Can you provide single patch for S3_1/S3_2 too.

You should not add new options for already removed clients.

Actions #7

Updated by Dean Brown 26 days ago

I did not test this corrected patch on S3_1 but expect it to be OK.

Actions #8

Updated by Marko Lindqvist 25 days ago

Dean Brown wrote in #note-7:

I did not test this corrected patch on S3_1 but expect it to be OK.

This now adds options to the client .rc file. Not correct for S3_1 or S3_2.

Actions #9

Updated by Dean Brown 22 days ago

Corrected patch for S3_1 & S3_2

Actions #10

Updated by Marko Lindqvist 21 days ago

  • Blocks Feature #1288: GTK client remember size of the options dlog added
Actions #11

Updated by Marko Lindqvist 21 days ago

Marko Lindqvist wrote in #note-6:

You should not add new options for already removed clients.

There's still no S3_3/main patch that corrects this, right?

Actions #13

Updated by Marko Lindqvist 20 days ago

S3_3/main patch needs code for migrating options from client to client when user switches to a newer gtk version. migrate_options_from_gtk3_22() in gtk4-client, migrate_options_from_gtk3_22() and migrate_options_from_gtk4() in gtk4x-client.

Actions #15

Updated by Marko Lindqvist 19 days ago

  • Status changed from New to In Review
  • Assignee set to Marko Lindqvist
Actions #16

Updated by Marko Lindqvist 14 days ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF