Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] Re: suspicious code in /freeciv-cvs-Mar-27/client/gui-???/
Home

[Freeciv-Dev] Re: suspicious code in /freeciv-cvs-Mar-27/client/gui-???/

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxx
Cc: Sylvain Tricot <sylvaintricot@xxxxxxx>, freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: suspicious code in /freeciv-cvs-Mar-27/client/gui-???/repodlgs.c (PR#2132)
From: Niels Weber <nath@xxxxxxxx>
Date: 07 Oct 2002 15:54:16 +0200

Am Mon, 2002-10-07 um 14.25 schrieb rf13@xxxxxxxxxxxxxxxxx:
> On Fri, Oct 04, 2002 at 07:08:17PM -0700, Sylvain Tricot wrote:
> > void economy_list_callback(GtkWidget *w, gint row, gint column)
> > {
> >   int i;
> > 
> >   i=economy_improvement_type[row];
> >   if(i>=0 && i<game.num_impr_types && !is_wonder(i))
> >     gtk_widget_set_sensitive(sellobsolete_command, TRUE);
> >     gtk_widget_set_sensitive(sellall_command, TRUE);
> >   return;
> > }
> > 
> > correction:
> > 
> > void economy_list_callback(GtkWidget *w, gint row, gint column)
> > {
> >   int i;
> > 
> >   i=economy_improvement_type[row];
> >   if(i>=0 && i<game.num_impr_types && !is_wonder(i)) {
> >     gtk_widget_set_sensitive(sellobsolete_command, TRUE);
> >     gtk_widget_set_sensitive(sellall_command, TRUE);
> >   }
> > }
> 
> Good catch. 
> 
> GTK-people: with or without {}?
I'd say with {} makes more sense.

Niels
-- 
Niels Weber <nath@xxxxxxxx>



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