Notecase 1.9.8, running on Gnome 2.24 and 2.26, can set a colored background on both the text and the tree windows, but the text background reverts to white after Notecase is stopped and restarted. However, opening and closing the Edit => Configure Notecase => Display window restores the colored background in both the tree and text windows. This doesn't look like a bug in the Notecase code, but some sort of race condition within the GTK+ window initialising code itself. The easiest cure seems to be to delay changing the background until the window is established, which is a fairly minimal alteration, so I've attached a uuencoded patch to the standard 1.9.8 sources to do just that. The attached diffs contain patches for five files, Makefile, config.h, MainWnd.cpp, and main.cpp. The Makefile and config.h patches simply bump the revision number to 1.9.8.1, because I got confused when testing two versions, so those patches can be dropped. The MainWnd.cpp patch ifdef's out the GTK+ bug fix on startup, since it seems to be no longer needed. I left the fix in OptionsDialog.cpp since there was no point in removing it, but that could be commented out as well. The only essential changes are in main.cpp, where I've added some comments to clarify the program logic, and added calls to modify the window colors after the return from the main window building functions. The string ### marks the major changes, which are bracketed by #ifdef 1. I've sent this patch to the author, but the program's no longer maintained, so I thought I'd post it here in case anyone needed it. The changes to the ebuild are trivial, just an extra patch and patch files. 8<===============8<===============8<===============8<=============== begin 644 notecase-1.9.8-background.patch M9&EF9B`M=7).(&YO=&5C87-E+3$N.2XX+F]R:6<O36%K969I;&4@;F]T96-A M<V4M,2XY+C@O36%K969I;&4*+2TM(&YO=&5C87-E+3$N.2XX+F]R:6<O36%K M969I;&4),C`P."TQ,BTP.2`Q,#HP-SHP-BXP,#`P,#`P,#`@*S`P,#`**RLK M(&YO=&5C87-E+3$N.2XX+TUA:V5F:6QE"3(P,3`M,#$M,3@@,C,Z,#`Z-#4N M,#`P,#`P,#`P("LP,#`P"D!`("TW+#<@*S<L."!`0`H@(R!4:&ES(&UA:V5F M:6QE('=A<R!T97-T960@;VX@3&EN=7@@*&=C8R]G*RLI+"!7:6YD;W=S("A- M:6YG=R]-<WES*2P@3U-8+"!/<&5N4V]L87)I<R!A;F0@1G)E94)31`H@(R!5 M<V4@(F=M86ME(B!T;R!C;VUP:6QE(&]N($]36"!A;F0@1G)E94)31`H@(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PL("9C;VQO<BD[#0HK"7T-"BL):68H<W1R0V]L;W(Q+G-I M>F4H*2`^(#`I#0HK"7L-"BL)"4=D:T-O;&]R(&-O;&]R,3L-"BL)"6=D:U]C M;VQO<E]P87)S92`H<W1R0V]L;W(Q+F-?<W1R*"DL("9C;VQO<C$I.PT**PT* M*PD)9W1K7W=I9&=E=%]M;V1I9GE?8F%S92A'5$M?5TE$1T54*'1E>'1V:65W M*2P@1U1+7U-4051%7TY/4DU!3"P@)F-O;&]R,2D[#0HK"0DO+R!G=&M?=VED M9V5T7VUO9&EF>5]B87-E*$=42U]7241'150H=&5X='9I97<I+"!'5$M?4U1! M5$5?04-4259%+"`F8V]L;W(Q*3L-"BL)"2\O(&=T:U]W:61G971?;6]D:69Y M7V)A<V4H1U1+7U=)1$=%5"AT97AT=FEE=RDL($=42U]35$%415]04D5,24=( M5"P@)F-O;&]R,2D[#0HK"0DO+R!G=&M?=VED9V5T7VUO9&EF>5]B87-E*$=4 M2U]7241'150H=&5X='9I97<I+"!'5$M?4U1!5$5?4T5,14-4140L("9C;VQO M<C$I.PT**PD)9W1K7W=I9&=E=%]M;V1I9GE?8F%S92A'5$M?5TE$1T54*'1E M>'1V:65W*2P@1U1+7U-4051%7TE.4T5.4TE4259%+"`F8V]L;W(Q*3L-"BL- M"BL)"6=T:U]W:61G971?;6]D:69Y7V)A<V4H1U1+7U=)1$=%5"AT<F5E=FEE M=RDL($=42U]35$%415].3U)-04PL("9C;VQO<C$I.PT**PD)+R\@9W1K7W=I M9&=E=%]M;V1I9GE?8F%S92A'5$M?5TE$1T54*'1R965V:65W*2P@1U1+7U-4 M051%7T%#5$E612P@)F-O;&]R,2D[#0HK"0DO+R!G=&M?=VED9V5T7VUO9&EF M>5]B87-E*$=42U]7241'150H=')E979I97<I+"!'5$M?4U1!5$5?4%)%3$E' M2%0L("9C;VQO<C$I.PT**PD)+R\@9W1K7W=I9&=E=%]M;V1I9GE?8F%S92A' M5$M?5TE$1T54*'1R965V:65W*2P@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UE M*'1R965V:65W+"`B86%A(BD[#0H@"0EG=&M?=VED9V5T7W)E<V5T7W)C7W-T M>6QE<R`H=')E979I97<I.PT*(`D)9U]F<F5E("AR8U]T96UP*3L-"BLC96YD L:68-"B`@(`E]#0H@#0H@"6EF*&=?8D1R87=497AT=FEE=T5X<&]S92E[#0H` ` end ==================================================================== Reproducible: Always Steps to Reproduce: 1.Change Notecase background colors. 2.Shutdown Notecase. 3.Restart Notecase and the tree window will show the new color, and the text window won't. 4.Refresh the color settings and both windows will show the new color. Actual Results: See above. Expected Results: See above See above
Please don't put base64-encoded patches inline. There's a "Create a New Attachment" field specifically for that, and we prefer patches as uncompressed plain text.
Attach a valid patch, please