]> git.saurik.com Git - wxWidgets.git/commitdiff
use gtk_file_chooser_set_show_hidden() now that GTK 2.6 is required
authorPaul Cornett <paulcor@bullseye.com>
Thu, 3 Jan 2013 06:09:43 +0000 (06:09 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 3 Jan 2013 06:09:43 +0000 (06:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/filectrl.cpp

index 7eaf55511731393e938f559e86e81e9fee725acb..4613ff18a6433bd20a62cce5e30dfff19b04fd70 100644 (file)
 #pragma hdrstop
 #endif
 
-#include "wx/filectrl.h"
-
 #if wxUSE_FILECTRL && !defined(__WXUNIVERSAL__)
 
-#ifndef WX_PRECOMP
-#    include "wx/sizer.h"
-#    include "wx/debug.h"
-#endif
+#include "wx/filectrl.h"
 
 #include "wx/gtk/private.h"
-#include "wx/filedlg.h"
 #include "wx/filename.h"
 #include "wx/scopeguard.h"
 #include "wx/tokenzr.h"
@@ -456,8 +450,7 @@ void wxGtkFileCtrl::GetFilenames( wxArrayString& files ) const
 
 void wxGtkFileCtrl::ShowHidden(bool show)
 {
-    // gtk_file_chooser_set_show_hidden() is new in 2.6
-    g_object_set (G_OBJECT (m_fcWidget), "show-hidden", show, NULL);
+    gtk_file_chooser_set_show_hidden(m_fcWidget, show);
 }
 
 #endif // wxUSE_FILECTRL