Re: gdk_pixmap_create_from_xpm_d and const data
- From: Owen Taylor <otaylor redhat com>
- To: "Tara M" <learfox furry ao net>
- Cc: "LIST: GTKAppDevel" <gtk-app-devel-list gnome org>
- Subject: Re: gdk_pixmap_create_from_xpm_d and const data
- Date: 09 Jul 2001 06:59:38 -0400
"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]