For this sort of thing, it is probably best to use an rc file like in
testgtk:
  pixmap_path ".:/where/pixmaps/are"
  style "pixmap_background_widget" {
    bg_pixmap[NORMAL] = "somepixmap.xpm"
  }
  widget "*somename" style "pixmap_background_widget"

Then in the program, use:
  rc_parse('filenamerc')
  ...
  widget.set_name("somename")

This will cause the widget called somename to have the pixmap background.
If the pixmap can be found, I don't seem to get a segfault, so do not know
exactly what would be causing it.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Fri, 3 Mar 2000, Javi Roman wrote:

> Please, i need help, (it's urgent!!! :-)
> 
> My problem: window with pixmap background.
> 
> I found in testgtk example this:
> 
> testgtkrc file:
> 
> ...
> style "window"
> {
> #  bg_pixmap[NORMAL] = "warning.xpm"
> }
> ...
> 
> If i uncomment this line (which could solve my problem) I recieve a core
> dump.
> Why? How can i solve my problem?. I lose hope.
> 
> 
> Thanks.
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to