Problem in setting background image to textview



Hi all,

I have an issue with setting background image to the
textview widget.

I am using C interface.

<code>
rc_style = gtk_rc_style_new ();
rc_style->bg_pixmap_name[GTK_STATE_NORMAL] = filename;

textview = gtk_text_view_new();
buf = gtk_text_view_get_buffer
(GTK_TEXT_VIEW(textview));
gtk_text_buffer_set_text (buf, "This is textview\n
which will have \n the background image\nGood luck!",
-1);
gtk_widget_modify_style (textview, rc_style);
</code>



It is not setting the background image to the
textview.

If use the same thing to the window, it will work.
gtk_widget_modify_style (window, rc_style);


Can any one please help me how to set the
background image to the textview?

Thanks in advance.

regards,
Seetharam



      Bollywood, fun, friendship, sports and more. You name it, we have it on http://in.promos.yahoo.com/groups  



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