gtk_cpp_workaround.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. diff -urN ripperx-2.8.0/src/gtk_cpp_workaround.h ripperx-2.8.0/src/gtk_cpp_workaround.h
  2. --- ripperx-2.8.0/src/gtk_cpp_workaround.h 1969-12-31 16:00:00.000000000 -0800
  3. +++ ripperx-2.8.0/src/gtk_cpp_workaround.h 2016-10-06 12:47:06.512778792 -0700
  4. @@ -0,0 +1,39 @@
  5. +#ifndef gtk_cpp_workaround_h
  6. +#define gtk_cpp_workaround_h
  7. +#ifdef __cplusplus
  8. +//proto is wrong, override here for C++
  9. +namespace
  10. +{
  11. +
  12. +inline void gtk_table_attach (GtkTable *table,
  13. + GtkWidget *child,
  14. + guint left_attach,
  15. + guint right_attach,
  16. + guint top_attach,
  17. + guint bottom_attach,
  18. + //GtkAttachOptions xoptions,
  19. + //GtkAttachOptions yoptions,
  20. + guint xoptions, guint yoptions,
  21. + guint xpadding,
  22. + guint ypadding
  23. + )
  24. +{
  25. + gtk_table_attach(table,
  26. + child,
  27. + left_attach,
  28. + right_attach,
  29. + top_attach,
  30. + bottom_attach,
  31. + (GtkAttachOptions)xoptions,
  32. + (GtkAttachOptions)yoptions,
  33. + xpadding,
  34. + ypadding
  35. + );
  36. +
  37. + };
  38. +
  39. +
  40. +}
  41. +
  42. +#endif
  43. +#endif