Summary: Reduce the minimum width of the city report
                 Project: Freeciv
            Submitted by: jon_severinsson
            Submitted on: fredag 2010-06-11 den 14:58
                Category: client-gtk-2.0
                Priority: 3 - Low
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 



This is an additional patch in my series intended to improve the gtk gui on
netbook sized displays.

The city report dialogue is fine when first opened, but once a city producing
anything is selected, a "Total Buy Cost: %d" label will make it way to wide,
and thus force scrolling. This patch will case this label to be ellipsized
(eg "...Cost: %d") if it won't fit without forcing scrolling.

Fixing this required the use of gtk_label_set_ellipsize(), which was
introduced in Gtk+ 2.6. As such this patch will also increase the minimum
Gtk+ version from 2.4 to 2.6, but as 2.6 was released over six (6) years ago,
I don't think this is a problem.


File Attachments:

Date: fredag 2010-06-11 den 14:58  Name:
freeciv-2.2.1-reduce-city-report-minimum-width.patch  Size: 3 kB   By:



Reply to this item at:


  Meddelandet skickades via/av Gna!

Freeciv-dev mailing list

Reply via email to