Use the popup's background as a border on wxGTK too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -828,7 +828,8 @@ public:
|
|||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
lv->Show();
|
lv->Show();
|
||||||
#endif
|
#endif
|
||||||
#ifdef __WXOSX_COCOA__
|
#if defined(__WXOSX_COCOA__) || defined(__WXGTK__)
|
||||||
|
// This color will end up being our border
|
||||||
SetBackgroundColour(wxColour(0xC0, 0xC0, 0xC0));
|
SetBackgroundColour(wxColour(0xC0, 0xC0, 0xC0));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -893,7 +894,7 @@ public:
|
|||||||
x = y = 0;
|
x = y = 0;
|
||||||
w = sz.x;
|
w = sz.x;
|
||||||
h = sz.y;
|
h = sz.y;
|
||||||
#ifdef __WXOSX_COCOA__
|
#if defined(__WXOSX_COCOA__) || defined(__WXGTK__)
|
||||||
// make room for the parent's bg color to show, to act as a border
|
// make room for the parent's bg color to show, to act as a border
|
||||||
x = y = 1;
|
x = y = 1;
|
||||||
w -= 2;
|
w -= 2;
|
||||||
|
Reference in New Issue
Block a user