Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: froff on March 05, 2010, 09:28:24 pm

Title: SMALL BUG - file is grayed on project tree after turning compilation on
Post by: froff on March 05, 2010, 09:28:24 pm
hello
When I have inactive file - with compilation and linking turned off it is displayed in gray color on project tree.
But when I turn compilation and linking on it stays grayed.
After project reload it becomes black again.
Title: Re: SMALL BUG - file is grayed on project tree after turning compilation on
Post by: stahta01 on March 05, 2010, 09:47:56 pm
The will likely be ignored since no version/SVN of Code::Blocks with the problem was stated.
Note, please read the C::B wiki page for the proper location to report bugs.

Tim S.
Title: Re: SMALL BUG - file is grayed on project tree after turning compilation on
Post by: froff on March 06, 2010, 04:54:07 pm
The will likely be ignored since no version/SVN of Code::Blocks with the problem was stated.
Note, please read the C::B wiki page for the proper location to report bugs.

Tim S.

svn 6181
Ok, next time I'll report by formal procedure.

P.S.: It works improperly in both directions - when You include or exclude from compilation file color doesn't change until project reload.
Title: Re: SMALL BUG - file is grayed on project tree after turning compilation on
Post by: rcoll on March 06, 2010, 05:06:32 pm
I am running svn 6186, compiled with TDM GCC 4.4.1 on Win XP.  I don't see this problem, unless I am not understanding you correctly?

Ringo
Title: Re: SMALL BUG - file is grayed on project tree after turning compilation on
Post by: Jenna on March 07, 2010, 04:03:02 pm
I can confirm this bug in linux and on windows.

I attach a patch that can fix it, and what's more fixes another error:
if the project-tree gets rebuild the expanded nodes get remembered, but not the selected node (you can see this if you add new files with the classwizard, after adding the root item will always be selected).

Please test it !

It seems to work without problems, but I have no time to do a longer test, because I will not be at home the next two weeks from monday to friday and I have no internet at work (at least not the ifrst week).
Any response will reache me until this tomorrow morning 5:00 AM UTC or next friday late evening.

Other devs please have a look into the changes to globals.*, especially if their are objections to commit it (if no substantial errors will be found).


[attachment deleted by admin]
Title: Re: SMALL BUG - file is grayed on project tree after turning compilation on
Post by: Jenna on August 02, 2010, 11:48:06 pm
Patch committed (svn r6441).