Re: Simple GdkFont and GtkStyle question
- From: learfox furry ao net
- To: Havoc Pennington <hp redhat com>
- Cc: GTK Application Development List <gtk-app-devel-list gnome org>
- Subject: Re: Simple GdkFont and GtkStyle question
- Date: Tue, 2 Jan 2001 14:58:16 -0800 (PST)
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]