Changing TextView background color



Hello everybody, Can someone help with this task?

I need to change the background color of a treeview, i'd tried with a simple button and no problem, but with the treeview it's impossible, I'don't know what can I do.

Thanks in advance.


Gdk::Color *Mycolor = new Gdk::Color();
Mycolor->set_red(65535);
Mycolor->set_green(65535);
Mycolor->set_blue(0);

Glib::RefPtr<Gtk::Style> MyEstilo = Gtk::Style::create();

MyEstilo->set_bg(Gtk::STATE_NORMAL,*Mycolor);

PButton->set_style(MyEstilo);      // Perfect it's work


//--------------------------------------------------------------------------------------

Gdk::Color *Mycolor = new Gdk::Color();
Mycolor->set_red(65535);
Mycolor->set_green(65535);
Mycolor->set_blue(0);

Glib::RefPtr<Gtk::Style> MyEstilo = Gtk::Style::create();

MyEstilo->set_bg(Gtk::STATE_NORMAL,*Mycolor);

PTreeView->set_style(MyEstilo);      // Nothing it's happen


//-------------------------------------------------------------------------------------


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