]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
added wxUSE_STDPATHS
[wxWidgets.git] / src / gtk / window.cpp
index 969e4b655f125158df3a25397b118599825a6305..e6a12132c279b24bb8a412e31693fefc51c3ca06 100644 (file)
@@ -3111,22 +3111,10 @@ void wxWindowGTK::DoSetSize( int x, int y, int width, int height, int sizeFlags
         if (GTK_WIDGET_CAN_DEFAULT(m_widget))
         {
 #ifdef __WXGTK20__
-#if 0
-            GtkBorder *default_border;
-            gtk_widget_style_get( m_widget, "default_border", &default_border, NULL );
-            if (default_border)
-            {
-                left_border += default_border->left;
-                right_border += default_border->right;
-                top_border += default_border->top;
-                bottom_border += default_border->bottom;
-                g_free( default_border );
-                
-            }
-#endif
-            GtkBorder *default_outside_border;
+            GtkBorder *default_outside_border = NULL;
+            gtk_widget_style_get( m_widget, "default_outside_border", &default_outside_border, NULL );
+            if (default_outside_border)
             {
-                gtk_widget_style_get( m_widget, "default_outside_border", &default_outside_border, NULL );
                 left_border += default_outside_border->left;
                 right_border += default_outside_border->right;
                 top_border += default_outside_border->top;