Andy Ma wrote:
> Besides using a RC file, can this set bg done in the code?
> is using a RC file the only way?
>

You could do what Paul Davis suggested,
>   canvas->set_name ("MyNameForTheCanvas")
>
> and then in the applications' RC file:
>
> style "main_canvas_area"
> {
>    bg[NORMAL] = { 0.89, 0.88, 0.91 }
>    bg[ACTIVE] = { 0.89, 0.88, 0.91 }
>    bg[INSENSITIVE] = { 0.89, 0.88, 0.91 }
>    bg[SELECTED] = { 0.89, 0.88, 0.91 }
>    bg[PRELIGHT] = { 0.89, 0.88, 0.91 }
> }
>
> widget "*MyNameForTheCanvas" style "main_canvas_area"

but put the RC definition in your code:

  Gtk::RC::parse_string(
    "style 'my_canvas' {"
    "  bg[NORMAL] = { ... }"
    ...
  );
_______________________________________________
gnomemm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnomemm-list

Reply via email to