Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Feature #893720

open

Make the gtk clients show who a player shares vision to

Added by Anonymous about 4 years ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
gui-gtk-3.22
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

The server sends the info about which other players a player gives shared vision to along with the information on diplomatic relations. The Qt client shows it, but the GTK clients don't.

Add a simple note to indicate shared vision in the diplomatic relations list, so it'll show e.g. "Peace: James Gordon (receives vision)".


Files

Actions #1

Updated by Marko Lindqvist about 4 years ago

- The new string should be marked for translation
- Master patch should include gtk-4.0 change (I'll test the compile (the only kind of test that we can do in gtk3x-client's current state) if you can't)

Actions #2

Updated by Marko Lindqvist about 4 years ago

  • Status changed from New to In Progress
  • Assignee set to Anonymous
  • Sprint/Milestone set to 2.6.3
Actions #4

Updated by Marko Lindqvist about 4 years ago

- You are calling g_value_set_static_string() with string from a local buffer with limited lifetime.
g_value_set_static_string() documentation ( https://developer.gnome.org/gobject/stable/gobject-Standard-Parameter-and-Value-Types.html#g-value-set-static-string ) says: "The string is assumed to be static, and is thus not duplicated when setting the GValue." You may have garbage in that memory area by the time string is used.
- I think it would be better for translatability if you refactored so that you would have entire "%s (gives shared vision)" as one translatable string, so that translator have control over placing of the player name parameter. Probably required at least by the right-to-left written languages.

Actions #5

Updated by Anonymous about 4 years ago

Right, that's why I hate doing this kind of stuff in C.

Re. translations: I'm not exactly happy about the phrasing anyway. I would have just put some symbol or one-letter marker there (like the qt client does), but that would be a bit obfuscated without some additional text. And I don't have to much gtk experience to hack on that dialog any more than necessary.

Actions #6

Updated by Marko Lindqvist almost 4 years ago

  • Sprint/Milestone changed from 2.6.3 to 2.6.4

This touches translatable strings, and string freeze for 2.6.3 has already begun.

Actions #7

Updated by Marko Lindqvist over 3 years ago

  • Sprint/Milestone changed from 2.6.4 to 2.6.5
Actions #8

Updated by Marko Lindqvist over 3 years ago

  • Sprint/Milestone changed from 2.6.5 to 2.6.6
Actions #9

Updated by Marko Lindqvist almost 3 years ago

  • Sprint/Milestone changed from 2.6.6 to 3.0.1
Actions #10

Updated by Marko Lindqvist over 2 years ago

  • Status changed from In Progress to New
  • Sprint/Milestone changed from 3.0.1 to 3.0.2
Actions #11

Updated by Marko Lindqvist over 2 years ago

  • Category changed from Client to gui-gtk-3.22
  • Sprint/Milestone changed from 3.0.2 to 3.0.3
Actions #12

Updated by Marko Lindqvist over 2 years ago

  • Sprint/Milestone changed from 3.0.3 to 3.0.4
Actions #13

Updated by Marko Lindqvist about 2 years ago

  • Sprint/Milestone changed from 3.0.4 to 3.0.5
Actions #14

Updated by Marko Lindqvist almost 2 years ago

  • Sprint/Milestone changed from 3.0.5 to 3.0.6
Actions #15

Updated by Marko Lindqvist almost 2 years ago

  • Sprint/Milestone changed from 3.0.6 to 3.0.7
Actions #16

Updated by Marko Lindqvist over 1 year ago

  • Sprint/Milestone changed from 3.0.7 to 3.0.8
Actions #17

Updated by Marko Lindqvist 8 months ago

  • Sprint/Milestone changed from 3.0.8 to 3.1.1

Also available in: Atom PDF