]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/pen.h
Refactored & cleaned up wxChoice & wxComboBox code, fixed client data
[wxWidgets.git] / include / wx / gtk / pen.h
index cf1464fdb13360fe1e3f49798d776d82cb2106bc..3ee44368e24aa1c08a8861e9669d28cca11aa2a5 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef __GTKPENH__
 #define __GTKPENH__
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
 #pragma interface
 #endif
 
@@ -45,7 +45,9 @@ public:
     wxPen( const wxColour &colour, int width, int style );
     ~wxPen();
     
-    wxPen( const wxPen& pen ) { Ref(pen); }
+    wxPen( const wxPen& pen )
+        : wxGDIObject()
+        { Ref(pen); }
     wxPen& operator = ( const wxPen& pen ) { Ref(pen); return *this; }
     
     bool Ok() const { return m_refData != NULL; }