Use the wxBitmap implementation from wxX11
in wxMotif; solves various bugs related to wxMask handling (and effectively adds a lot of wxMask functionality previously missing). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -505,10 +505,12 @@ void wxFrame::DoSetIcon(const wxIcon& icon)
|
||||
if (!m_frameShell)
|
||||
return;
|
||||
|
||||
if (!icon.Ok() || !icon.GetPixmap())
|
||||
if (!icon.Ok() || !icon.GetDrawable())
|
||||
return;
|
||||
|
||||
XtVaSetValues((Widget) m_frameShell, XtNiconPixmap, icon.GetPixmap(), NULL);
|
||||
XtVaSetValues((Widget) m_frameShell,
|
||||
XtNiconPixmap, icon.GetDrawable(),
|
||||
NULL);
|
||||
}
|
||||
|
||||
void wxFrame::SetIcon(const wxIcon& icon)
|
||||
|
Reference in New Issue
Block a user