Re: different font in label
- From: "Tara M" <learfox furry ao net>
- To: "LIST: GTKAppDevel" <gtk-app-devel-list gnome org>
- Subject: Re: different font in label
- Date: 16 Aug 2001 01:37:47 PDT
On Thu, 16 Aug 2001 10:28:55 +0200, Oliver Buecker said:
Hello
can some tell me, how I can change the font of my label ???
Okay okay, I know this one, I hope *G* okay do this.
GtkWidget *w = gtk_label_new("yiff");
GtkRcStyle *rcstyle = gtk_rcstyle_new();
rcstyle->font = gstrdup("put-font-spec-here");
gtk_widget_modify_style(w, rcstyle);
g_free(rcstyle->font);
rcstyle->font = NULL;
gtk_rcstyle_unref(rcstyle);
Did I do that right? did I unref the rcstyle correctly?
--
--
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]