[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]
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
|
|