gtk_widget_set_style not effecting properly



Hi all,

I am setting the style attribute to the textview
widget but, it doesn't effect the same.

my goal is - to set the background image to the 
textview by using the style object.

this is the code snippet 
---
GtkStyle *style;
GtkWidget *textview;

style = gtk_style_new();
style->bg_pixmap[GTK_STATE_NORMAL]=filepath;
gtk_widget_set_style (textview, style);
----

but, it doesn't work.

Can anybody please suggest me what is the wrong in the

above code path.


regards
Seetharam




      Forgot the famous last words? Access your message archive online at 
http://in.messenger.yahoo.com/webmessengerpromo.php




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