Re: changing the color of a progress bar widget



On 2001.12.12 09:38 "Norris, Kendall P." wrote:

GdkColormap   *fail_colormap;
GdkColor          gdk_color_fail;
GtkWidget        *pbar;

fail_colormap = gtk_widget_get_colormap(pbar);
if(gdk_color_change(fail_colormap, &gdk_color_fail))
    {
    gtk_widget_set_colormap(pbar, fail_colormap);
    }

Are you using your own made up progress bar or the GtkProgressBar?

If you are using the GtkProgressBar then you'd want to use
the GtkRcStyle to change its colors.
Look at gtk/gtkrc.h


--
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]