Skip to content

Commit f2be20f

Browse files
committed
Don't show icon in attention bar on macOS either
1 parent e74a5f1 commit f2be20f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/attentionbar.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ AttentionBar::AttentionBar(wxWindow *parent)
6969
view.appearance = [NSAppearance appearanceNamed:NSAppearanceNameAqua];
7070
#endif
7171

72-
#ifndef __WXGTK__
72+
#ifdef __WXMSW__
7373
m_icon = new wxStaticBitmap(this, wxID_ANY, wxNullBitmap);
7474
#endif
7575
m_label = new AutoWrappingText(this, "");
@@ -111,7 +111,7 @@ AttentionBar::AttentionBar(wxWindow *parent)
111111

112112
wxSizer *sizer = new wxBoxSizer(wxHORIZONTAL);
113113
sizer->AddSpacer(PXDefaultBorder);
114-
#ifndef __WXGTK__
114+
#ifdef __WXMSW__
115115
sizer->Add(m_icon, wxSizerFlags().Center().Border(wxALL, SMALL_BORDER));
116116
#endif
117117

@@ -191,7 +191,7 @@ void AttentionBar::ShowMessage(const AttentionMessage& msg)
191191
iconName = wxART_ERROR;
192192
break;
193193
}
194-
#ifndef __WXGTK__
194+
#ifdef __WXMSW__
195195
m_icon->SetBitmap(wxArtProvider::GetBitmap(iconName, wxART_MENU, wxSize(PX(16), PX(16))));
196196
#endif
197197

src/attentionbar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class AttentionBar : public wxPanel
146146
void OnPaint(wxPaintEvent& event);
147147

148148
private:
149-
#ifndef __WXGTK__
149+
#ifdef __WXMSW__
150150
wxStaticBitmap *m_icon;
151151
#endif
152152
AutoWrappingText *m_label;

0 commit comments

Comments
 (0)