Textview background image



Hi All,

I am trying to set the background image to the 
textview widget. for that i am doing the 
following things.

<code snip starts>

GtkRcStyle *rc_style;
GtkWidget  *message_widget;
gchar *filename="/etc/popup_warning.xpm";

message_widget = gtk_text_view_new ();

rc_style->bg_pixmap_name[GTK_STATE_NORMAL] = filename;
gtk_widget_modify_style (message_widget, rc_style);

<code snip ends>

I coudn't see the effect of the above stmt for 
the textview.

Can any one please help me in this regard where i have
missed something in that.

And Is it possible to setbackground image to the
textviewer ?

Thanks in advance.

regrds,
Seetharam





      Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/




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