Sorry,there was a fault on the function I pasted ;))
gboolean ParameterKernel::ReadPixmap(gchar **pixstring, GdkPixmap& pix)
//Reads a pixmap from a xpm-format string & stores it in GdkPixmap& pix
{
GdkPixmap *pixmap;
GdkBitmap *mask;
pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL,
gtk_widget_get_default_colormap(),
&mask, NULL, (gchar **)
pixstring);
g_print("The program arrives this point\n");
pix = *pixmap;
g_print("Segmentation fault is in the line above\n");
if (&pix == NULL) {return (FALSE);} else {return (TRUE);}
}
In the previous mail I put "(GdkPixmap *) pix = pixmap;" instead of
"pix = *pixmap;"... that returns me this error:
cannot convert `pix' from type `_GdkWindow' to type `GdkPixmap
*'
but not the segmentation fault I get with "pix = *pixmap;" which I don't
really understand ;((
Thanks again,
Ignacio Nodal
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list