eom_build_fixed.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. diff -Nuar a/configure.ac b/configure.ac
  2. --- a/configure.ac 2019-09-18 16:05:00.000000000 +0300
  3. +++ b/configure.ac 2020-02-19 10:35:23.874694686 +0300
  4. @@ -1,6 +1,7 @@
  5. AC_PREREQ(2.59)
  6. AC_CONFIG_MACRO_DIR([m4])
  7. +m4_define(gdk-pixbuf_minver, 2.36.5)
  8. m4_define(eom_major_version, 1)
  9. m4_define(eom_minor_version, 22)
  10. m4_define(eom_micro_version, 2)
  11. @@ -26,6 +27,7 @@
  12. AM_MAINTAINER_MODE
  13. +AC_SUBST(GDKPIXBUF_REQUIRED, [gdk-pixbuf_minver])
  14. MATE_COMMON_INIT
  15. MATE_MAINTAINER_MODE_DEFINES
  16. MATE_COMPILE_WARNINGS
  17. @@ -96,6 +98,7 @@
  18. PKG_CHECK_MODULES(GMODULE, gmodule-2.0, [GMODULE_ADD="gmodule-2.0"],[GMODULE_ADD=""])
  19. EOM_MODULES="gtk+-3.0 >= $GTK_REQUIRED \
  20. + gdk-pixbuf-2.0 >= gdk-pixbuf_minver
  21. glib-2.0 >= $GLIB_REQUIRED \
  22. $GMODULE_ADD \
  23. gio-2.0 >= $GLIB_REQUIRED \
  24. diff -Nuar a/src/eom-thumbnail.c b/src/eom-thumbnail.c
  25. --- a/src/eom-thumbnail.c 2019-09-18 16:05:00.000000000 +0300
  26. +++ b/src/eom-thumbnail.c 2020-02-19 10:42:44.560728013 +0300
  27. @@ -123,9 +123,10 @@
  28. perc = CLAMP (128.0/(MAX (width, height)), 0, 1);
  29. - thumb = mate_desktop_thumbnail_scale_down_pixbuf (pixbuf,
  30. + thumb = gdk_pixbuf_scale_simple (pixbuf,
  31. width*perc,
  32. - height*perc);
  33. + height*perc,
  34. + GDK_INTERP_HYPER);
  35. return thumb;
  36. }
  37. @@ -444,7 +445,7 @@
  38. width = MAX (width * factor, 1);
  39. height = MAX (height * factor, 1);
  40. - result_pixbuf = mate_desktop_thumbnail_scale_down_pixbuf (thumbnail, width, height);
  41. + result_pixbuf = gdk_pixbuf_scale_simple (thumbnail, width, height, GDK_INTERP_HYPER);
  42. return result_pixbuf;
  43. }