rgb.patch 982 B

123456789101112131415161718192021222324
  1. diff -Naur gcolor2-0.4.orig/src/callbacks.h gcolor2-0.4/src/callbacks.h
  2. --- gcolor2-0.4.orig/src/callbacks.h 2005-07-11 19:18:59.000000000 -0400
  3. +++ gcolor2-0.4/src/callbacks.h 2008-03-11 03:59:49.000000000 -0400
  4. @@ -12,6 +12,7 @@
  5. #define SYSTEM_FILE_2 "/usr/lib/X11/rgb.txt"
  6. #define SYSTEM_FILE_3 "/etc/X11/rgb.txt"
  7. #define SYSTEM_FILE_4 "/usr/openwin/lib/X11/rgb.txt"
  8. +#define SYSTEM_FILE_5 "/usr/share/X11/rgb.txt"
  9. /* about dialog text */
  10. #define ABOUT_CREDITS_TEXT "Developer:\n" \
  11. diff -Naur gcolor2-0.4.orig/src/main.c gcolor2-0.4/src/main.c
  12. --- gcolor2-0.4.orig/src/main.c 2005-07-11 10:55:49.000000000 -0400
  13. +++ gcolor2-0.4/src/main.c 2008-03-11 04:00:12.000000000 -0400
  14. @@ -36,6 +36,8 @@
  15. sys_filename = SYSTEM_FILE_3;
  16. else if (g_file_test (SYSTEM_FILE_4, G_FILE_TEST_EXISTS))
  17. sys_filename = SYSTEM_FILE_4;
  18. + else if (g_file_test (SYSTEM_FILE_5, G_FILE_TEST_EXISTS))
  19. + sys_filename = SYSTEM_FILE_5;
  20. else
  21. return FALSE;
  22. return TRUE;