# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/gnome14/gnome-libs14/remove-multiple-function-definition.patch # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at https://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # # --- ROCK-COPYRIGHT-NOTE-END --- --- ./gtk-xmhtml/colors.c.vanilla 2005-12-13 18:31:33.000000000 +0100 +++ ./gtk-xmhtml/colors.c 2005-12-14 16:11:46.000000000 +0100 @@ -292,33 +292,6 @@ #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