diff src/modplug/gui/support.cxx @ 1044:b1128efde471 trunk

[svn] - get rid of all warnings gcc 4.2.0 emits with my build configuration. - fix for minor bugs.
author yaz
date Sun, 20 May 2007 12:05:48 -0700
parents 3da1b8942b8b
children 3ba928b31aac
line wrap: on
line diff
--- a/src/modplug/gui/support.cxx	Fri May 18 10:42:29 2007 -0700
+++ b/src/modplug/gui/support.cxx	Sun May 20 12:05:48 2007 -0700
@@ -47,7 +47,7 @@
 }
 
 /* This is a dummy pixmap we use when a pixmap can't be found. */
-static char *dummy_pixmap_xpm[] = {
+static const char *dummy_pixmap_xpm[] = {
 /* columns rows colors chars-per-pixel */
 "1 1 1 1",
 "  c None",
@@ -66,7 +66,7 @@
 
   colormap = gtk_widget_get_colormap (widget);
   gdkpixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, colormap, &mask,
-                                                     NULL, dummy_pixmap_xpm);
+                                                     NULL, (gchar **)dummy_pixmap_xpm);
   if (gdkpixmap == NULL)
     g_error ("Couldn't create replacement pixmap.");
   pixmap = gtk_pixmap_new (gdkpixmap, mask);