Re: [gtk-list] Question about resources




On Sat, 13 Nov 1999, James Moody wrote:
> A general question about how certain resources, strings in particular, are
> handled in GTK. If I create a label given a string, or set the text
> of a label to a string, does the label make a copy of the string or
> use the copy that I gave it? In general, is there a consistent solution
> throughout the toolkit? Just wondering, since different widget toolkits

In general, arguments you pass in are copied or have their refcount
incremented. However, there may be a couple exceptions for historical
reasons.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]