Re: tooltip colors w/o theme
- From: John Cupitt <john cupitt ng-london org uk>
- To: Jeff Shipman <shippy nmt edu>
- Cc: GTK List <gtk-list gnome org>
- Subject: Re: tooltip colors w/o theme
- Date: Thu, 22 Mar 2001 10:56:33 +0000
Jeff Shipman wrote:
> I would like to set the background color of
> a tooltip without having to use a theme.
Hi Jeff, I do this with a resource file:
--
# style for tooltips
style "tooltip_style" = "default"
{
font = "-adobe-helvetica-medium-r-*-*-*-100-*-*-*-*-*-*"
bg[NORMAL] = { 0.9, 0.8, 0.5 }
}
widget "*tooltip_widget" style "tooltip_style"
--
Use gtk_widget_set_name() to name your tooltip widget "tooltip_widget",
and it'll pick up the colour and font. You can use
gtk_rc_add_default_file() to add the rc file for your app (so you don't
need to touch ~/.gtkrc).
I expect there's a better way :/
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]