mirror of the now-defunct rocklinux.org
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.

36 lines
909 B

  1. --- ./gtk-xmhtml/colors.c.vanilla 2005-12-13 18:31:33.000000000 +0100
  2. +++ ./gtk-xmhtml/colors.c 2005-12-14 16:11:46.000000000 +0100
  3. @@ -292,33 +292,6 @@
  4. #define BMASK 0xc0
  5. #define BSHIFT 6
  6. -/* XXX: This function does an XQueryColors() the hard way, because there is
  7. - * no corresponding function in Gdk.
  8. - */
  9. -#ifndef WITH_MOTIF
  10. -static void
  11. -my_x_query_colors(GdkColormap *colormap,
  12. - GdkColor *colors,
  13. - gint ncolors)
  14. -{
  15. - XColor *xcolors;
  16. - gint i;
  17. -
  18. - xcolors = g_new(XColor, ncolors);
  19. - for (i = 0; i < ncolors; i++)
  20. - xcolors[i].pixel = colors[i].pixel;
  21. -
  22. - XQueryColors(gdk_display, GDK_COLORMAP_XCOLORMAP(colormap), xcolors, ncolors);
  23. -
  24. - for (i = 0; i < ncolors; i++) {
  25. - colors[i].red = xcolors[i].red;
  26. - colors[i].green = xcolors[i].green;
  27. - colors[i].blue = xcolors[i].blue;
  28. - }
  29. -
  30. - g_free(xcolors);
  31. -}
  32. -#endif
  33. /*****
  34. * Name: tryColor
  35. * Return Type: Boolean