Re: Changing cursors



Marco Quezada <mquezada nlxcorp com> writes:
Got it, thanks for pointing out my mistake. Is there a way to find out
when a pointer, like the cursor in this case, can be
destroyed/unreferenced after it has been used without having to wait for
the program to core dump?

Ideally, the docs contain this information. ;-) 

But when they don't, you have to go digging same as for any other
undocumented stuff.

(As a general rule, the idiom you had of "handing off" ownership is
never used except for GtkObject because GtkObject has the "floating"
state. So there is no case in GDK where you can create a resource
without owning it or a reference to it AFAIK. You can only do that
with widgets and GtkAdjustment.)

Havoc




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