Re: gdk_pixmap_create_from_xpm_d and const data



"Tara M" <learfox furry ao net> writes:

Why dosen't gdk_pixmap_create_from_xpm_d() accept a const gchar **
as input for the XPM format data?

This has major problems when compiling C++ as the passed data
needs to be duplicated. :(

Add a cast. :-) 

The reason why it isn't const char ** is that passing a char * to a
const char * is allowed by C, but you can't pass a char ** to a const
char ** without a cast... some people would need casts whether
we made it const gchar **, gchar **, or const gchar * const *,
for that matter.

Regards,
                                        Owen




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