URL:
  <http://gna.org/patch/?1684>

                 Summary: Make unit_info_label fixed-size as intended
                 Project: Freeciv
            Submitted by: jon_severinsson
            Submitted on: måndag 2010-05-31 den 23:42
                Category: client
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 

    _______________________________________________________

Details:

This is the first patch in a short series intended to improve the gtk gui on
netbook sized displays.

Looking at the comments for get_unit_info_label_text2 in client/text.c it is
obvious that the returned sting is supposed to always contain exactly 4
lines, so that the unit info label doesn't resize itself.

However, when multiple units are selected it will instead contain exactly 5
lines, whether the extra line is necessary or not, and thus force a resize of
the label.

This patch removes the extra line. In most cases it will only remove a blank
line. However, if 4 or more different types of units are selected the unit
info box would previously include the amount of the 3 most common types and a
summary of the rest, while with the patch it will only list the 2 most common
types and a summary of the rest.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: måndag 2010-05-31 den 23:42  Name:
freeciv-2.2.1-fix-unit-info-label-fixed-size.patch  Size: 1001 B   By:
jon_severinsson

<http://gna.org/patch/download.php?file_id=9228>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1684>

_______________________________________________
  Meddelandet skickades via/av Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to