Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Weird gtk widget code
Home

[Freeciv-Dev] Weird gtk widget code

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: FreeCiv <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Weird gtk widget code
From: Francois Taiani <francois.taiani@xxxxxxxx>
Date: Mon, 27 Aug 2001 22:15:17 +0200

Hi every one,

in gui-gtk/gui_main.c:setup_widgets(void) I found the following line,
which I don't understand:

gtk_widget_set_style( turn_done_button,
                      gtk_style_copy(turn_done_button->style)
                    );

What is the point of setting the style of the turn_done_button to a copy
of the style of the turn_done_button. It sounds like biting one's tail.
Would anybody have any clue on the rationale behind that code ?

Many Thks

Francois


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