# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/gnome-libs14/remove_duplicate_definition.patch # Copyright (C) 2004 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- taken from fedora core 4 diff -urN gnome-libs-1.4.2.orig/gtk-xmhtml/colors.c gnome-libs-1.4.2/gtk-xmhtml/colors.c --- gnome-libs-1.4.2.orig/gtk-xmhtml/colors.c 2002-08-06 23:25:41.000000000 +0200 +++ gnome-libs-1.4.2/gtk-xmhtml/colors.c 2005-09-05 13:57:38.410340500 +0200 @@ -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