Re: Simple GdkFont and GtkStyle question



First when I set its member `font', do I need to gdk_font_unref() the old
font on the GtkStyle (even if it's from gtk_style_new())?

Yes.

Oh one more thing, when I gtk_style_copy(), I gdk_font_unref()
the font it came with before loading a new one, when I did that and when I
exited I got:

GLib-CRITICAL **: file gcache.c: line 160 (g_cache_remove): assertion
`node != NULL' failed.

Also the gdk gnome developer pages say that gdk_font_load() does not
gaurantee a ref_count of anything for the loaded font.

Is that true? You said I was gauranteed atleast a ref count of 1.

--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/





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