]> git.saurik.com Git - wxWidgets.git/commitdiff
Use the popup's background as a border on wxGTK too.
authorRobin Dunn <robin@alldunn.com>
Thu, 16 Aug 2012 00:42:35 +0000 (00:42 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 16 Aug 2012 00:42:35 +0000 (00:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/stc/PlatWX.cpp

index 661b5207fe304750d150d49eefbc4999bba8eaae..f1f180a76292b2b7c5c45381be44a9abf36f3d19 100644 (file)
@@ -828,7 +828,8 @@ public:
 #ifdef __WXMSW__
         lv->Show();
 #endif
 #ifdef __WXMSW__
         lv->Show();
 #endif
-#ifdef __WXOSX_COCOA__
+#if defined(__WXOSX_COCOA__) || defined(__WXGTK__)
+        // This color will end up being our border
         SetBackgroundColour(wxColour(0xC0, 0xC0, 0xC0));
 #endif
     }
         SetBackgroundColour(wxColour(0xC0, 0xC0, 0xC0));
 #endif
     }
@@ -893,7 +894,7 @@ public:
         x = y = 0;
         w = sz.x;
         h = sz.y;
         x = y = 0;
         w = sz.x;
         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
         x = y = 1;
         w -= 2;
         // make room for the parent's bg color to show, to act as a border
         x = y = 1;
         w -= 2;