--- gnome-libs-1.4.2/gtk-xmhtml/colors.c.gcc4 2002-08-06 17:25:41.000000000 -0400 +++ gnome-libs-1.4.2/gtk-xmhtml/colors.c 2005-08-16 12:33:55.000000000 -0400 @@ -292,33 +292,6 @@ static String html_32_color_values[16] = #define BMASK 0xc0 #define BSHIFT 6 -/* XXX: This function does an XQueryColors() the hard way, because there is - * no corresponding function in Gdk. - */ -#ifndef WITH_MOTIF -static void -my_x_query_colors(GdkColormap *colormap, - GdkColor *colors, - gint ncolors) -{ - XColor *xcolors; - gint i; - - xcolors = g_new(XColor, ncolors); - for (i = 0; i < ncolors; i++) - xcolors[i].pixel = colors[i].pixel; - - XQueryColors(gdk_display, GDK_COLORMAP_XCOLORMAP(colormap), xcolors, ncolors); - - for (i = 0; i < ncolors; i++) { - colors[i].red = xcolors[i].red; - colors[i].green = xcolors[i].green; - colors[i].blue = xcolors[i].blue; - } - - g_free(xcolors); -} -#endif /***** * Name: tryColor * Return Type: Boolean