Project

General

Profile

Actions

Feature #943

open

gtk: Menu entries for zoom

Added by Marko Lindqvist over 1 year ago. Updated 22 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
gtk4-client
Target version:
Start date:
10/09/2024
Due date:
% Done:

0%

Estimated time:

Description

In a https://osdn.net/projects/freeciv/ticket/42457 comment alain_bkr requests menu entries for zoom.


Files

943_S3_2.patch (18.1 KB) 943_S3_2.patch Dean Brown, 02/09/2026 03:13 AM
943_Main.patch (17.5 KB) 943_Main.patch Dean Brown, 02/09/2026 03:13 AM
943_S3_3.patch (16.9 KB) 943_S3_3.patch Dean Brown, 02/09/2026 03:13 AM

Related issues 1 (0 open1 closed)

Blocked by Feature #1292: gtk clients on Mac - use meta key instead of ctrl key for menu accelerator keysClosedMarko Lindqvist04/14/2025

Actions
Actions #1

Updated by Dean Brown 10 months ago

I think I can do this one, for qt, gtk3.22, gtk4 & gtk5 clients. But better to wait until #1292 is done because of collisions.

Actions #2

Updated by Marko Lindqvist 10 months ago

  • Blocked by Feature #1292: gtk clients on Mac - use meta key instead of ctrl key for menu accelerator keys added
Actions #3

Updated by Dean Brown 9 months ago

The qt client already has zoom menu items.

It turns out that gtk will not let you use "+" or "-" keys by themselves as menu accelerator keys. In gtk3.22 they just don't work, gtk4 gives an error message. Combining one of them with Ctrl or Meta seems OK, the View menu item Show Stack Size uses Ctrl/Meta and "+". There's really no other menu accelerator keys that are suitable. I could add zoom in and zoom out menu items without menu accelerator keys, but then would want to leave in the current functionality of having "+" or "-" keys do zooming. So wondering if it's worthwhile.

Actions #4

Updated by Dean Brown 9 months ago

  • File 943-S3_1+S3_2.patch added
  • File 943-S3_3+Main.patch added

Should have read the GTK documentation first, turns out "+" or "-" keys do work if you do it correctly.

Actions #5

Updated by Marko Lindqvist 4 months ago

  • Target version set to 3.3.0

Indentation of some function parameters is off.

Actions #6

Updated by Marko Lindqvist 3 months ago

  • Status changed from New to In Progress
  • Assignee set to Dean Brown
Actions #7

Updated by Marko Lindqvist 25 days ago

Ping.

I'd like to have freeciv-3.3 keys to be in their final shape by the S3_3-alpha3 release.

Actions #8

Updated by Dean Brown 22 days ago

  • File deleted (943-S3_1+S3_2.patch)
Actions #9

Updated by Dean Brown 22 days ago

  • File deleted (943-S3_3+Main.patch)

Updated by Dean Brown 22 days ago

Thanks for the ping, I didn't realize this was still pending.

The old patches no longer applied, so had to do new ones.

Some files had trailing spaces and formatting issues with tabs - fixed.

Actions

Also available in: Atom PDF