summarylogtreecommitdiffstats
path: root/auitabart.patch
diff options
context:
space:
mode:
authorredtide2022-08-13 12:23:15 +0200
committerredtide2022-08-13 12:23:15 +0200
commit88b0f50c121514d008495bee26752eefb77d2017 (patch)
tree7ad2fe63ab9614f59933beb83680a27e0c2f6a40 /auitabart.patch
parent4e37a156fa2d0d5c726bcd01b9de77d50414f65b (diff)
downloadaur-88b0f50c121514d008495bee26752eefb77d2017.tar.gz
Replaced Meson with CMake build, added auitabart patch
Diffstat (limited to 'auitabart.patch')
-rw-r--r--auitabart.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/auitabart.patch b/auitabart.patch
new file mode 100644
index 000000000000..aa5f8732a459
--- /dev/null
+++ b/auitabart.patch
@@ -0,0 +1,34 @@
+diff --unified --recursive --text a/src/rad/auitabart.h b/src/rad/auitabart.h
+--- a/src/rad/auitabart.h 2021-10-22 18:19:37.000000000 +0200
++++ b/src/rad/auitabart.h 2022-08-13 11:32:26.550275012 +0200
+@@ -3,14 +3,22 @@
+
+ #include <wx/aui/auibook.h>
+
+-class AuiTabArt : public wxAuiGenericTabArt {
++class AuiTabArt : public wxAuiGenericTabArt
++{
+ public:
+- wxSize GetTabSize(wxDC& dc, wxWindow* wnd, const wxString& caption, const wxBitmap& bitmap,
+- bool active, int close_button_state, int* x_extent) override {
+- return wxAuiGenericTabArt::GetTabSize(dc, wnd, caption, bitmap, active, close_button_state,
+- x_extent) +
+- wxSize(0, 2);
+- }
+-};
++#if wxCHECK_VERSION(3, 1, 6)
++ wxSize GetTabSize(
++ wxDC& dc, wxWindow* wnd, const wxString& caption, const wxBitmapBundle& bitmap, bool active,
++ int close_button_state, int* x_extent) override{
++#else
++ wxSize GetTabSize(
++ wxDC& dc, wxWindow* wnd, const wxString& caption, const wxBitmap& bitmap, bool active, int close_button_state,
++ int* x_extent) override
++ {
++#endif
++ return wxAuiGenericTabArt::GetTabSize(dc, wnd, caption, bitmap, active, close_button_state, x_extent) +
++ wxSize(0, 2);
++}
++};
+
+ #endif // __AUITABART_H__