Re: gtk_widget_set_style() not working on GtkText
- From: learfox furry ao net
- To: GTK Application Development List <gtk-app-devel-list gnome org>
- Subject: Re: gtk_widget_set_style() not working on GtkText
- Date: Mon, 1 Jan 2001 15:16:18 -0800 (PST)
gtk_widget_set_style(w, cur_style);
gtk_widget_ensure_style(w);
Why are you calling ensure_style()? That may be the problem, though
looking at the code I don't think it should be. In any case it's not
doing anything.
I was getting desparate. ;P
I don't know the problem exactly, but you should be using
gtk_widget_modify_style() instead of gtk_widget_set_style() anyhow, so
doing that is the simplest solution.
I found the problem, the GtkText uses its own GdkColormap, then I used its
own colormap plus emitting a "style_set" signal to the GtkText and that
got it working! :)
--
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]