]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/filectrl.cpp
added wxMessageQueue class for inter-thread communications
[wxWidgets.git] / src / gtk / filectrl.cpp
index 6b2a0001df1e39d83c3bbad67df3ef70afd46ffc..5beb5a438e5d219bacfbbbfccd6d20f4d9714d01 100644 (file)
@@ -194,7 +194,7 @@ int wxGtkFileChooser::GetFilterIndex() const
     }
     else
         return index;
-};
+}
 
 //-----------------------------------------------------------------------------
 // end wxGtkFileChooser Implementation
@@ -422,7 +422,12 @@ void wxGtkFileCtrl::GetFilenames( wxArrayString& files ) const
 
 void wxGtkFileCtrl::ShowHidden(bool show)
 {
+#ifdef __WXGTK26__    
     gtk_file_chooser_set_show_hidden(m_fcWidget, show);
+#else
+    //  gtk_file_chooser_set_show_hidden only in 2.6
+    g_object_set (G_OBJECT (m_fcWidget), "show-hidden", show, NULL);
+#endif    
 }
 
 #endif