Re: using gdk_pixmap_create_from_xpm_d()



Simon Chan wrote:

Dear,

I want to display image and use gdk_pixmap_create_from_xpm_d() function.
Also, I want to run gdk_pixmap_create_from_xpm_d() and then sleep program and then finally call gtk_widget_show(window)

eg:

gdk_pixmap_create_from_xpm_d();
sleep(10);
gtk_widget_show(window);


However, I investigated that after calling this function, a grey square
is displayed. Anyone know how to erase or minimise this grey square??

Can you be more specific ?
1) Grey square is the image you want to display or you get it on display instead of your image ?
2) How do you display obtained from xpm GdkPixmap ?
3) Why do you need to sleep ? This will block your thread for 10 secs, so you will not be able to respond on user actions. Maybe gtk timeouts stuff can help you ?

Olexiy





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