> 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.

I posted a bug report to the list a while back about this (nobody
replied but I assumed it would be acted on; I haven't checked); there
was a 'return 0' statement missing in gtkmodule.c in the
PyGtkStyleHelper_SetItem() function which would cause *successful*
assignment of a pixmap to fall through to a g_assert_not_reached();
maybe you fixed it in the meantime and Javi still has an older version
of PyGtk?  Or maybe you didn't and doing it this way doesn't trigger
that bug?  

Cheers,
-Rob

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

Reply via email to