Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2000:
[Freeciv-Dev] Re: fix Gtk+ City Report; was Re: two bugs (PR#259)
Home

[Freeciv-Dev] Re: fix Gtk+ City Report; was Re: two bugs (PR#259)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: fix Gtk+ City Report; was Re: two bugs (PR#259)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sun, 20 Feb 2000 21:49:45 +1100 (EST)

David Pfitzner wrote:

> This suggests that a solution would be to avoid doing
> the remove/putback thing.  This patch tries to do this,
> by instead updating the row in-place.
> 
> Seems to work ok...  I can no longer reproduce the crashes
> and/or display/memory garbage problems, and haven't noticed
> any other problems.

A possible complaint with my fix is that changes via
city_report_dialog_update_city() do not update the sorting
of the list.  If desired, adding a call to
        gtk_clist_sort(GTK_CLIST(city_list));
(after gtk_clist_thaw?) should fix.

(Incidently, it looks like this bug is the same as open
bug PR#160.)

-- David



[Prev in Thread] Current Thread [Next in Thread]