Hi, "David Necas (Yeti)" <yeti@xxxxxxxxxxxxxxx> writes: > On Wed, Nov 03, 2004 at 01:26:47PM +0100, Sven Neumann wrote: >> >> It isn't really recommended to treat objects like this. Of course if >> you know what you are doing, it will work. But I wouldn't suggest to >> do it this way as it may very well fall onto your feet one day. > > Well, it isn't. And yet I'm strongly tempted to do the same > for strings that are duplicated every time I fetch them too. > I have probably still lots of memory leaks in apps from the > time before I found this out. I'd like some > G_TYPE_STRING_DONT_DUPLICATE_IT_LIKE_MAD and > G_TYPE_OBJECT_DONT_REFERENCE_IT_LIKE_MAD column types. If you know your strings are const or can be treated as const while they are in the treestore, you can of course just treat them as pointers. Having a dedicated type for this wouldn't really make things any better or worse. Sven _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list