Mageia Bugzilla – Attachment 13974 Details for
Bug 32231
guayadeque crashes inside Mageia9 when "enable volume and fader" is activated in settings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch to build upon wxgtk3.2
guayadeque-0.4.7-wxgtk3.2.patch (text/plain), 1.91 KB, created by
Philippe Didier
on 2023-09-06 15:40:00 CEST
(
hide
)
Description:
patch to build upon wxgtk3.2
Filename:
MIME Type:
Creator:
Philippe Didier
Created:
2023-09-06 15:40:00 CEST
Size:
1.91 KB
patch
obsolete
>diff --git a/src/ui/aui/AuiNotebook.cpp b/src/ui/aui/AuiNotebook.cpp >index f8178e4c..9c85f685 100644 >--- a/src/ui/aui/AuiNotebook.cpp >+++ b/src/ui/aui/AuiNotebook.cpp >@@ -293,7 +293,7 @@ void guAuiTabArt::DrawTab(wxDC &dc, wxWindow * wnd, const wxAuiNotebookPage &pag > int close_button_width = 0; > if( close_button_state != wxAUI_BUTTON_STATE_HIDDEN ) > { >- close_button_width = m_activeCloseBmp.GetWidth(); >+ close_button_width = m_activeCloseBmp.GetDefaultSize().GetWidth(); > } > > >@@ -303,12 +303,12 @@ void guAuiTabArt::DrawTab(wxDC &dc, wxWindow * wnd, const wxAuiNotebookPage &pag > bitmap_offset = tab_x + 8; > > // draw bitmap >- dc.DrawBitmap(page.bitmap, >+ dc.DrawBitmap(page.bitmap.GetBitmap(page.bitmap.GetDefaultSize()), // page.bitmap, > bitmap_offset, >- drawn_tab_yoff + (drawn_tab_height/2) - (page.bitmap.GetHeight()/2), >+ drawn_tab_yoff + (drawn_tab_height/2) - (page.bitmap.GetDefaultSize().GetHeight()/2), > true); > >- text_offset = bitmap_offset + page.bitmap.GetWidth(); >+ text_offset = bitmap_offset + page.bitmap.GetDefaultSize().GetWidth(); > text_offset += 3; // bitmap padding > } > else >@@ -331,12 +331,12 @@ void guAuiTabArt::DrawTab(wxDC &dc, wxWindow * wnd, const wxAuiNotebookPage &pag > // draw close button if necessary > if (close_button_state != wxAUI_BUTTON_STATE_HIDDEN) > { >- wxBitmap bmp = m_disabledCloseBmp; >+ wxBitmap bmp = m_disabledCloseBmp.GetBitmap(m_disabledCloseBmp.GetDefaultSize()); > > if (close_button_state == wxAUI_BUTTON_STATE_HOVER || > close_button_state == wxAUI_BUTTON_STATE_PRESSED) > { >- bmp = m_activeCloseBmp; >+ bmp = m_activeCloseBmp.GetBitmap(m_activeCloseBmp.GetDefaultSize()); > } > > wxRect rect(tab_x + tab_width - close_button_width - 1,
diff --git a/src/ui/aui/AuiNotebook.cpp b/src/ui/aui/AuiNotebook.cpp index f8178e4c..9c85f685 100644 --- a/src/ui/aui/AuiNotebook.cpp +++ b/src/ui/aui/AuiNotebook.cpp @@ -293,7 +293,7 @@ void guAuiTabArt::DrawTab(wxDC &dc, wxWindow * wnd, const wxAuiNotebookPage &pag int close_button_width = 0; if( close_button_state != wxAUI_BUTTON_STATE_HIDDEN ) { - close_button_width = m_activeCloseBmp.GetWidth(); + close_button_width = m_activeCloseBmp.GetDefaultSize().GetWidth(); } @@ -303,12 +303,12 @@ void guAuiTabArt::DrawTab(wxDC &dc, wxWindow * wnd, const wxAuiNotebookPage &pag bitmap_offset = tab_x + 8; // draw bitmap - dc.DrawBitmap(page.bitmap, + dc.DrawBitmap(page.bitmap.GetBitmap(page.bitmap.GetDefaultSize()), // page.bitmap, bitmap_offset, - drawn_tab_yoff + (drawn_tab_height/2) - (page.bitmap.GetHeight()/2), + drawn_tab_yoff + (drawn_tab_height/2) - (page.bitmap.GetDefaultSize().GetHeight()/2), true); - text_offset = bitmap_offset + page.bitmap.GetWidth(); + text_offset = bitmap_offset + page.bitmap.GetDefaultSize().GetWidth(); text_offset += 3; // bitmap padding } else @@ -331,12 +331,12 @@ void guAuiTabArt::DrawTab(wxDC &dc, wxWindow * wnd, const wxAuiNotebookPage &pag // draw close button if necessary if (close_button_state != wxAUI_BUTTON_STATE_HIDDEN) { - wxBitmap bmp = m_disabledCloseBmp; + wxBitmap bmp = m_disabledCloseBmp.GetBitmap(m_disabledCloseBmp.GetDefaultSize()); if (close_button_state == wxAUI_BUTTON_STATE_HOVER || close_button_state == wxAUI_BUTTON_STATE_PRESSED) { - bmp = m_activeCloseBmp; + bmp = m_activeCloseBmp.GetBitmap(m_activeCloseBmp.GetDefaultSize()); } wxRect rect(tab_x + tab_width - close_button_width - 1,
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32231
:
13965
|
13973
|
13974
|
13988
|
13989
|
13990
|
13991
|
13992
|
13993
|
13998
|
14114
|
14148
|
14152
|
14153
|
14157
|
14158
|
14159
|
14160
|
14161
|
14162
|
14163
|
14164
|
14165
|
14166