From: Filip V. R. <mec...@de...> - 2002-05-30 10:13:00
|
Hi, I don't have gtk2 handy here so I can't try it right now, but... On Wed, May 29, 2002 at 06:49:13PM +0100, Thomas Leonard wrote: > > - Unreffing the pixmap after setting the style causes a segfault, so I > take that as a hint that we shouldn't do that. Yet you create a new pixmap each time and don't unref the old one (you obviously can't anymore after you've left the callback) Have you also tried unreffing the pixmap after unreffing the style, or did you unref it before that? How about making style and pixmap globals, creating them only once at startup, and just only setting style in the callback instead of recreating the pixmap and style each time? Regards, Filip -- Why is "abbreviation" such a long word? -- Arthur Korn |