OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.7 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../gnome-libs14/remove_duplicate_definition.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. taken from fedora core 4
  17. diff -urN gnome-libs-1.4.2.orig/gtk-xmhtml/colors.c gnome-libs-1.4.2/gtk-xmhtml/colors.c
  18. --- gnome-libs-1.4.2.orig/gtk-xmhtml/colors.c 2002-08-06 23:25:41.000000000 +0200
  19. +++ gnome-libs-1.4.2/gtk-xmhtml/colors.c 2005-09-05 13:57:38.410340500 +0200
  20. @@ -292,33 +292,6 @@
  21. #define BMASK 0xc0
  22. #define BSHIFT 6
  23. -/* XXX: This function does an XQueryColors() the hard way, because there is
  24. - * no corresponding function in Gdk.
  25. - */
  26. -#ifndef WITH_MOTIF
  27. -static void
  28. -my_x_query_colors(GdkColormap *colormap,
  29. - GdkColor *colors,
  30. - gint ncolors)
  31. -{
  32. - XColor *xcolors;
  33. - gint i;
  34. -
  35. - xcolors = g_new(XColor, ncolors);
  36. - for (i = 0; i < ncolors; i++)
  37. - xcolors[i].pixel = colors[i].pixel;
  38. -
  39. - XQueryColors(gdk_display, GDK_COLORMAP_XCOLORMAP(colormap), xcolors, ncolors);
  40. -
  41. - for (i = 0; i < ncolors; i++) {
  42. - colors[i].red = xcolors[i].red;
  43. - colors[i].green = xcolors[i].green;
  44. - colors[i].blue = xcolors[i].blue;
  45. - }
  46. -
  47. - g_free(xcolors);
  48. -}
  49. -#endif
  50. /*****
  51. * Name: tryColor
  52. * Return Type: Boolean