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: Raimar Falke via RT <rt@xxxxxxxxxxxxxx>
Cc: cameron@xxxxxxxxxx, <esr@xxxxxxxxxxx>, <sambc@xxxxxxxxxxxxxxxxxxx>, <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: (PR#2591) Nondenominational calendar patch
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Thu, 9 Jan 2003 05:16:52 +0000 (WET)

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.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa



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