This patch adds a debugging utility I found helpful, as such it's neither
necessary nor needful you put it in the tree, just thought it might help some-
one else trace a strange unref. It allows you to make GtkObjects immortal,
thus causing an immediate abort if such objects are destroyed. This allows you
to backtrace the core and find out where that unwanted unref came from. It
will only do this as long as G_DEBUG is set, and G_DISABLE_ASSERT isn't,
otherwise nothing happens.

To allow you to set/reset object immortality, the gtk_object_immortalize and
gtk_object_mortalize functions are provided, which should be straightforward.

The patch was generated against gtk+-0.99.5 as distributed on ftp://ftp.gimp.org

Enjoy
   Deon Ramsey (Draco)
-----------------------------------------------------------------------------

Deon Ramsey (general Librarygopher) may be reached as:
Work:                       Private:
dfkidok@dfki.uni-kl.de      ramsey@rhrk.uni-kl.de

WWW:
<A HREF="http://www.dfki.uni-kl.de/~ramsey/">Deon Ramsey</A>

Or via Snail-Mail:          Deon Ramsey
                            Koenigstr. 11
                            67655 Kaiserslautern
                            Germany

Program (Pro'-gram) n. A magic spell cast over a computer, causing it to
turn one's input into error messages.

There are many intelligent species in the Universe.
                                             They are all owned by cats.

Be discreet, be polite, but be yourself. -- Per Aspera

