Re: [gtk-list] Re: Need help with text entry background
- From: Preben Randhol <randhol dusken4 samfundet ntnu no>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Need help with text entry background
- Date: 01 Aug 1998 10:36:31 +0200
* br0ke@shells.clipboard.com
| Preben Randhol wrote:
| like code forge?
not sure I understood that (above)
|
| I'd make 2 functions, one to set editable one to set uneditable. in each
| of these functions would be the appropriate gtk_text_set_editable()
| call, as well as the actual background color change, and maybe something
| to realize this?
|
|
| the code might end up something like this (I didn't test this)
|
| void set_ed(GtkWidget *textbox)
| {
| gtk_text_set_editable(GTK_TEXT(textbox),TRUE);
| style->bg[NORMAL]={ /* color in here */ };
| return;
| }
|
| void unset_ed(GtkWidget *textbox)
| {
| gtk_text_set_editable(GTK_TEXT(textbox),FALSE);
| style->bg[NORMAL]={ /* color in here */ };
| return;
| }
|
|
| it may need gtk_widget_realize(textbox) to work right? I d'no :)
I tried to do this, but the compiler stopped on this line :
style->bg[NORMAL]={ /* color in here */ };
complaining: error before {
It also complained that NORMAL wasn't defined.
--
Preben Randhol | There are three things you can do
Tlf 73940929/(735)94076 [arb] | to a woman. You can love her, suffer
Email randhol@pvv.org | for her or turn her into literature.
http://www.pvv.org/~randhol/ | -- Justine, by Lawrence Durrell
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]