]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/filepicker.h
set resolution of print preview from print data (modified patch 1851381)
[wxWidgets.git] / include / wx / gtk / filepicker.h
index 5a72f6f8a402aefd0c96fb6f23e4f12c68b41a3e..e1bd484781c3f8421aaf624c1948b460d4c01fd7 100644 (file)
@@ -36,7 +36,8 @@
                                                                               \
     virtual bool Destroy()                                                    \
     {                                                                         \
-        m_dialog->Destroy();                                                  \
+        if (m_dialog)                                                         \
+            m_dialog->Destroy();                                              \
         return wxButton::Destroy();                                           \
     }                                                                         \
                                                                               \
@@ -48,7 +49,8 @@
     /* so, override wxButton::GTKGetWindow and return NULL as GTK+ doesn't */ \
     /* give us access to the internal GdkWindow of a GtkFileChooserButton  */ \
 protected:                                                                    \
-    virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const         \
+    virtual GdkWindow *                                                       \
+    GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const                  \
         { return NULL; }