[Glade-users] embedding pixmaps no file

bhendrick wrote:

I need to put a pixmap into the code itself and not
load it from a file. How can I do this with glade?
I see in the interface.c file that It load the file.
I could edit this and set the pointer directly to the
bitmap but, editing the interface.c file is of course
an evil and dispicable thing to do.

I don't have the time to try it, but one thing you might be able to try

mv picture.xpm picture.c
delete 'static' from the variable definition in the .xpm
append picture.c to the SRCS line in Makefile.in
add extern char *picture_xpm[]; to the top of interface.h

I know it's not perfect, but it's the best I can could come up with on
the spot :)


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