Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: new_city_dialog ver 12
Home

[Freeciv-Dev] Re: new_city_dialog ver 12

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: Mike Kaufman <mkaufman@xxxxxxxxxxxxxx>, Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: new_city_dialog ver 12
From: Daniel Sjölie <deepone@xxxxxxxxxx>
Date: Wed, 24 Oct 2001 18:53:10 +0200

On 2001-10-24 18:44:32, Raimar Falke wrote:
> On Wed, Oct 24, 2001 at 05:49:17PM +0200, Daniel Sjölie wrote:
> > On 2001-10-24 17:08:08, Raimar Falke wrote:
> > > > > There is still some resizing if the city is changed. It looks like
> > > > > this is caused by the improvement list.
> > > > 
> > > > Well, it rezises because it needs more room, right? I think that's ok...
> > > > Would you have it always at max size?
> > > 
> > > I just checked this: to size of the windows does change. I have no
> > > preference how you solve this problem.
> > 
> > Well, my point was that I don't think that there is a good solution...
> 
> Completely untested:
> 
> void popup_city_dialog(struct city *pcity, int make_modal)
> {
>   struct city_dialog *pdialog;
> 
>   if (!(pdialog = get_city_dialog(pcity))) {
>     pdialog = create_city_dialog(pcity, make_modal);
>   }
>   gtk_set_relative_position(toplevel, pdialog->shell, 10, 10);
> 
>   gtk_widget_show(pdialog->shell);
> + gdk_window_raise(pdialog->shel->window);
> }

Well, that seems to work fine (with the misspelling fixed ;) but this
was not what I was talking about here... The problem I think lacks a
good solution is when the dialog is resized when more space is needed in
the improvements list... I think neither setting it to max size from the
start (might not be trivial to do right) or disallowing resizing is good
solutions...

The patch above will be included though...

/Daniel

-- 
Now take a deep breath, smile and don't take life so seriously... :)


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