Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2002:
[Freeciv-Dev] Re: gui-gtk/connectdlg.c's message can't read.(i18n) (PR#1
Home

[Freeciv-Dev] Re: gui-gtk/connectdlg.c's message can't read.(i18n) (PR#1

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: SAWADA Katsuya <ama@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, <bugs@xxxxxxxxxxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: gui-gtk/connectdlg.c's message can't read.(i18n) (PR#1605)
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Sat, 22 Jun 2002 18:09:15 +0100 (WET DST)

On Fri, 21 Jun 2002, SAWADA Katsuya wrote:

>
> I'm testing lattest CVS and using gtk1.2.10.
> LANG=ja_JP.eucJP
>
> I coudn't read beta message when it was popuped because it is
> unintelligible sequence of characters.
>
> Following avoid this problem, but I don't know how to change red color
> with no bug.
>
> --
> SAWADA, Katsuya
>
> --- connectdlg.c.~1.35.~      Fri Mar 29 07:37:44 2002
> +++ connectdlg.c      Sat Jun 22 06:27:53 2002
> @@ -187,13 +187,8 @@
>  #if IS_BETA_VERSION
>    {
>      GtkWidget *label2;
> -    GtkStyle *style;
>
>      label2=gtk_label_new (beta_message());
> -
> -    style=gtk_style_copy (label2->style);
> -    style->fg[GTK_STATE_NORMAL]=*colors_standard[COLOR_STD_RED];
> -    gtk_widget_set_style (label2, style);
>      gtk_table_attach_defaults (GTK_TABLE (table), label2, 0, 2, 3, 4);
>    }
>  #endif

I guess this is a resource problem with fonts.

Please try something like this instead:

{
    GtkWidget *label2;
    GtkStyle *style;

    label2 = gtk_label_new(beta_message());

    if (!(style = gtk_rc_get_style(label2)) {
      style = label2->style;
    }
    style = gtk_style_copy(style);

    style->fg[GTK_STATE_NORMAL]=*colors_standard[COLOR_STD_RED];
    gtk_widget_set_style (label2, style);
    gtk_table_attach_defaults (GTK_TABLE (table), label2, 0, 2, 3, 4);
  }

Does this work for you or not?

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





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