Pixmap background in text widget?



Hallo,

Is it possible to make the pixmap background for the textbuffer in gtk+-2?
I tried the following:

        GtkWidget  *log = gtk_scrolled_window_new(NULL, NULL);
        GtkWidget  *text = gtk_text_view_new();
        gtk_container_add(GTK_CONTAINER(log), text);
        gtk_widget_set_name(text, "log_window");

And in my rc file:

        style "log" {
          bg_pixmap[NORMAL] = "./plane.xpm"
        }

        widget "*.log_window.*" style "log"

When I assign "log_window" to text widget, I see no background at all.
When I assign this name to log widget, then I can see the pixmap at least
on the scrollbar - but still not on text widget.

Assigning the name to text buffer of course doesn't work.

Thanks for any advice
--
 \   / |                                   |
 (OvO) |  Michael Ivanov                   |
 (^^^) |                                   |
  \^/  |      E-mail:  ivans isle spb ru   |
  ^ ^  |                                   |




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