Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] Re: (PR#2591) Nondenominational calendar patch
Home

[Freeciv-Dev] Re: (PR#2591) Nondenominational calendar patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: cameron@xxxxxxxxxx, esr@xxxxxxxxxxx, sambc@xxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2591) Nondenominational calendar patch
From: "Raimar Falke via RT" <rt@xxxxxxxxxxxxxx>
Date: Thu, 9 Jan 2003 02:08:24 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Thu, Jan 09, 2003 at 05:16:52AM +0000, Vasco Alexandre Da Silva Costa wrote:
> On Wed, 8 Jan 2003, Raimar Falke via RT wrote:
> 
> > up). Also I have a problem with the label showing the legend. For
> > unknown reasons it won't use the whole width for the label. And I also
> 
> Hmm yes.
> 
> > verified that the label itself takes the whole width.
> 
> No it doesn't. See this:
> 
>     gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.0);
> 
> and
> 
>     gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0);
> 
> 
> > GTK people?
> 
> Well, you really should do this:
> 
>     gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_FILL);
>     gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
> 
> But it still won't fill the whole space.
> 
> Only way I could find of forcing it to fill the space I want it to is:
> 
>     gtk_widget_set_usize(label, 500, -1);
> 
> For forcing it to use 500 pixels horizontally.
> Yes, it is ugly.

Attached is version 2 which has this hack with a variable width.

Any comment on the notebook?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Like the ad says, at 300 dpi you can tell she's wearing a
  swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you
  can tell it's painted on. I suppose at 2400 dpi you can tell
  if the paint is giving her a rash."
    -- Joshua R. Poulson

Attachment: nation_class2.diff.gz
Description: nation_class2.diff.gz


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