]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/fontutil.h
gtk notebook page style fixes (patch 984864)
[wxWidgets.git] / include / wx / fontutil.h
index e2243613dce52c980b8755ab45d90d5751b3dceb..56099b4758553bee6b08d20a6999be382419cad7 100644 (file)
@@ -136,9 +136,21 @@ public:
     wxNativeFontInfo() { Init(); }
 
 #if wxUSE_PANGO
-    wxNativeFontInfo(const wxNativeFontInfo& info);
-    ~wxNativeFontInfo();
-#endif
+private:
+    void Init(const wxNativeFontInfo& info);
+    void Free();
+
+public:
+    wxNativeFontInfo(const wxNativeFontInfo& info) { Init(info); }
+    ~wxNativeFontInfo() { Free(); }
+
+    wxNativeFontInfo& operator=(const wxNativeFontInfo& info)
+    {
+        Free();
+        Init(info);
+        return *this;
+    }
+#endif // wxUSE_PANGO
 
     // reset to the default state
     void Init();