]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed wxBORDER_THEME breakage
authorJulian Smart <julian@anthemion.co.uk>
Tue, 22 Sep 2009 10:58:06 +0000 (10:58 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 22 Sep 2009 10:58:06 +0000 (10:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.cpp
src/gtk/window.cpp

index dcbe4fa2822f291ac94d377e3a5d98ace63f5060..729463a3adb2cf225be0feeb80d8dd30dfc7adb5 100644 (file)
@@ -381,7 +381,7 @@ void wxPizza::get_border_widths(int& x, int& y)
 #ifndef __WXUNIVERSAL__
     if (m_border_style & wxBORDER_SIMPLE)
         x = y = 1;
-    else if (m_is_scrollable || (m_border_style & wxBORDER_THEME))
+    else if (m_is_scrollable /* || (m_border_style & wxBORDER_THEME) */)
     {
         GtkWidget *style_widget = wxGTKPrivate::GetTreeWidget();
 
index 2e71c0bdbdc8e95a407333dd13ffc43ebe3312b1..84846a243a8372574a5d32d570ddf2ddab89b5d1 100644 (file)
@@ -4364,7 +4364,7 @@ void wxWindowGTK::GTKScrolledWindowSetBorder(GtkWidget* w, int wxstyle)
 
         if(wxstyle & wxBORDER_RAISED)
             gtkstyle = GTK_SHADOW_OUT;
-        else if (wxstyle & wxBORDER_SUNKEN)
+        else if ((wxstyle & wxBORDER_SUNKEN) || (wxstyle & wxBORDER_THEME))
             gtkstyle = GTK_SHADOW_IN;
 #if 0
         // Now obsolete