gtk_tooltips_set_colors() doesn't??



Hello,
  I am trying to set the colors of tooltips using gtk_tooltips_set_colors(),
but it doesn't.  The colors are valid, as I'm using them for other things.
I get no assert failures, but no color change.

GtkTooltips *tips;
GdkColor yellow, black;
   tips=gtk_tooltips_new();
   if (!gdk_color_black( gdk_colormap_get_system(), &black ))
        g_error("Trouble getting black");
   if(!gdk_color_parse( "LightYellow", &yellow ) )
       g_error( "Couldn't parse yellow");
   if( !gdk_colormap_alloc_color(gdk_colormap_get_system(), &yellow, FALSE,
TRUE ) )
       g_error("Couldn't allocate light yellow");
  gtk_tooltips_set_colors( tips, &yellow, &black );


  I usually do this with styles (which works great), but would like to know
what
I'm doing wrong with this function if possible.
Any ideas?  I did try after realizing widgets, and I tried
gtk_tooltips_force_window()...
no difference.
My tooltips come up fine, just with the standard black on gray.

Help, anyone?
GTK+ 1.2.4 on Red Hat 6.0
(I know, upgrade!  just no time, yet.)
Donna



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]