]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/statline.h
Use DeafultAttributes instead of hard coded defaults
[wxWidgets.git] / include / wx / gtk / statline.h
index 8cbce8a56597028e937121a16ee8c8cb60d5f0db..803ae2018acb3f06ab5b3c697c629e97a5541396 100644 (file)
 #ifndef __GTKSTATICLINEH__
 #define __GTKSTATICLINEH__
 
-#ifdef __GNUG__
-    #pragma interface
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
+#pragma interface
 #endif
 
-#if !wxUSE_STATLINE
-    #error "This file should only be included if wxUSE_STATLINE == 1"
-#endif
+#include "wx/defs.h"
+
+#if wxUSE_STATLINE
 
 #include "wx/object.h"
 #include "wx/list.h"
@@ -45,8 +45,14 @@ public:
     bool Create(  wxWindow *parent, wxWindowID id,
             const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, 
             long style = wxLI_HORIZONTAL, const wxString &name = wxStaticTextNameStr );
-};
 
-#endif // wxUSE_STATLINE
+    static wxVisualAttributes
+    GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+    
+};
 
-#endif // __GTKSTATICLINEH__
+#endif 
+  // wxUSE_STATLINE
+  
+#endif 
+  // __GTKSTATICLINEH__