Alexander, I'm not looking at motif src this time;) I remember Chris, Danny and I from way back working on this issue (shared GCs) and it became more trouble than it was worth: o you had to remember to set the FG and BG colors each time you wanted to use the GC, because you couldn't share these (the user could change them at any time) o same with bitmap (if installed) o topshadow/bottomShadow (different GC, I know) o bitmaps for same o line style, cap style for shadow o there were more, but I can't remember off the top of my head In short, there was so little you *could* share that it was a total PITA *to* share. Without looking at the X protocol spec I don't remember how many protocol messages setting the above stuff resulted in, but I would guess a few. So (out of laziness, if nothing else) we just went the non-shared route. On modern systems, this probably isn't that big of a deal anyway. Just my $.02, Mitch > -----Original Message----- > From: Alexander Mai [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 24, 2000 5:04 AM > To: [EMAIL PROTECTED] > Subject: Hungry CVS: amai : hungry/lesstif/lib/Xm TextF.c > > > amai 2000/08/24 02:04:11 PDT > > Modified files: > lesstif/lib/Xm TextF.c > Log: > TextF.c: Patch from Steve Olson <[EMAIL PROTECTED]> to > fix some memory leaks > > There was some discussion about this. My conclusion was that this > patch is ok, but someone might clean up the file and get rid of the > shared vs. non non-shared GCs alternatives!? > > Revision Changes Path > 1.93 +23 -8 hungry/lesstif/lib/Xm/TextF.c >
