Re: [gtkmm] turning off prelighting of widgets
- From: Frank Naumann <fnaumann cs uni-magdeburg de>
- To: Giannis Georgalis <jgeorgal uoc gr>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] turning off prelighting of widgets
- Date: Sun, 13 Jul 2003 20:35:52 +0200 (CEST)
Hello!
> A google search on turning off the prelighting of the widgets showed a
> couple of unanswered mail with the same question (It should be a
> FAQ). The problem is that I want to colorize a ToggleButton widget
> according to its state (eg. green for activated, red
> otherwise). However the changes in the color, cannot be seen when the
> cursor is on the button prelighting it, that is quite annoying. Note
> that I want to turn off the prelighting effect of the specific
> togglebutton and not the behavior of the whole application with an rc
> file.
>
> Is there a clean solution to my problem ?
I don't know if it's the right way but you can set the background color of
the widget for each state:
widget->modify_bg(state, color)
where state is:
Gtk::STATE_NORMAL
Gtk::STATE_ACTIVE
Gtk::STATE_PRELIGHT
Gtk::STATE_SELECTED
Gtk::STATE_INSENSITIVE
Regards,
Frank Naumann
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]