Re: Fwd: Re: text on a pixmap



Hi,

Jean-Yves Lamoureux <jylam lnxscene org> writes:

> Hi. I tried to create a GdkPixmap from a pixmap in a header file. (I mean a 
> .xpm wrote by Gimp, I put the array on my program).
> (Tried with gdk_pixmap_create_from_xpm and  _d too).
> 
> 
>   GtkWidget *AboutWindow;
>   GdkPixmap *pixmap;
>   AboutWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
>   
>   pixmap = gdk_pixmap_create_from_xpm_d(AboutWindow,  NULL,NULL, About_xpm);
> 
>   and ... it crashes when creating pixmap. About_xpm contains a valid xpm, 
> AboutWindow is a valid window. 

it might be a valid GtkWindow, but gdk_pixmap_create_from_xpm_d wants a
GdkWindow. You'd better compile with -Wall to catch such errors.


Salut, Sven



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