thunarx-python-0.5.1-fno-common.patch 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. Taken from: https://git.xfce.org/bindings/thunarx-python/commit/?id=3037ebe25d5c6ed58699e56b61f657cea3e5a5a6
  2. Author: Mukundan Ragavan <nonamedotc@gmail.com>
  3. --- a/src/thunarx-python-object.c
  4. +++ b/src/thunarx-python-object.c
  5. @@ -24,6 +24,7 @@
  6. #include <thunarx/thunarx.h>
  7. +#define NO_IMPORT_PYGOBJECT
  8. #include <pygobject.h>
  9. #include <string.h>
  10. --- a/src/thunarx-python.c
  11. +++ b/src/thunarx-python.c
  12. @@ -30,6 +30,18 @@
  13. #include "thunarx-python.h"
  14. #include "thunarx-python-object.h"
  15. +PyTypeObject *_PyGtkWidget_Type;
  16. +PyTypeObject *_PyThunarxFileInfo_Type;
  17. +PyTypeObject *_PyThunarxMenuItem_Type;
  18. +PyTypeObject *_PyThunarxMenu_Type;
  19. +PyTypeObject *_PyThunarxMenuProvider_Type;
  20. +PyTypeObject *_PyThunarxPreferencesProvider_Type;
  21. +PyTypeObject *_PyThunarxPropertyPage_Type;
  22. +PyTypeObject *_PyThunarxPropertyPageProvider_Type;
  23. +PyTypeObject *_PyThunarxProviderPlugin_Type;
  24. +PyTypeObject *_PyThunarxRenamer_Type;
  25. +PyTypeObject *_PyThunarxRenamerProvider_Type;
  26. +
  27. static const GDebugKey thunarx_python_debug_keys[] = {
  28. {"all", THUNARX_PYTHON_DEBUG_ALL},
  29. };
  30. --- a/src/thunarx-python.h
  31. +++ b/src/thunarx-python.h
  32. @@ -43,37 +43,37 @@ extern ThunarxPythonDebug thunarx_python_debug;
  33. #define debug_enter_args(x, y) { if (thunarx_python_debug & THUNARX_PYTHON_DEBUG_ALL) \
  34. g_printf("%s: entered " x "\n", __FUNCTION__, y); }
  35. -PyTypeObject *_PyGtkWidget_Type;
  36. +extern PyTypeObject *_PyGtkWidget_Type;
  37. #define PyGtkWidget_Type (*_PyGtkWidget_Type)
  38. -PyTypeObject *_PyThunarxFileInfo_Type;
  39. +extern PyTypeObject *_PyThunarxFileInfo_Type;
  40. #define PyThunarxFileInfo_Type (*_PyThunarxFileInfo_Type)
  41. -PyTypeObject *_PyThunarxMenuItem_Type;
  42. +extern PyTypeObject *_PyThunarxMenuItem_Type;
  43. #define PyThunarxMenuItem_Type (*_PyThunarxMenuItem_Type)
  44. -PyTypeObject *_PyThunarxMenu_Type;
  45. +extern PyTypeObject *_PyThunarxMenu_Type;
  46. #define PyThunarxMenu_Type (*_PyThunarxMenu_Type)
  47. -PyTypeObject *_PyThunarxMenuProvider_Type;
  48. +extern PyTypeObject *_PyThunarxMenuProvider_Type;
  49. #define PyThunarxMenuProvider_Type (*_PyThunarxMenuProvider_Type)
  50. -PyTypeObject *_PyThunarxPreferencesProvider_Type;
  51. +extern PyTypeObject *_PyThunarxPreferencesProvider_Type;
  52. #define PyThunarxPreferencesProvider_Type (*_PyThunarxPreferencesProvider_Type)
  53. -PyTypeObject *_PyThunarxPropertyPage_Type;
  54. +extern PyTypeObject *_PyThunarxPropertyPage_Type;
  55. #define PyThunarxPropertyPage_Type (*_PyThunarxPropertyPage_Type)
  56. -PyTypeObject *_PyThunarxPropertyPageProvider_Type;
  57. +extern PyTypeObject *_PyThunarxPropertyPageProvider_Type;
  58. #define PyThunarxPropertyPageProvider_Type (*_PyThunarxPropertyPageProvider_Type)
  59. -PyTypeObject *_PyThunarxProviderPlugin_Type;
  60. +extern PyTypeObject *_PyThunarxProviderPlugin_Type;
  61. #define PyThunarxProviderPlugin_Type (*_PyThunarxProviderPlugin_Type)
  62. -PyTypeObject *_PyThunarxRenamer_Type;
  63. +extern PyTypeObject *_PyThunarxRenamer_Type;
  64. #define PyThunarxRenamer_Type (*_PyThunarxRenamer_Type)
  65. -PyTypeObject *_PyThunarxRenamerProvider_Type;
  66. +extern PyTypeObject *_PyThunarxRenamerProvider_Type;
  67. #define PyThunarxRenamerProvider_Type (*_PyThunarxRenamerProvider_Type)
  68. #endif /* THUNARX_PYTHON_H */