use gtk_file_chooser_set_show_hidden() now that GTK 2.6 is required
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14,17 +14,11 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/filectrl.h"
|
|
||||||
|
|
||||||
#if wxUSE_FILECTRL && !defined(__WXUNIVERSAL__)
|
#if wxUSE_FILECTRL && !defined(__WXUNIVERSAL__)
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#include "wx/filectrl.h"
|
||||||
# include "wx/sizer.h"
|
|
||||||
# include "wx/debug.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
#include "wx/filedlg.h"
|
|
||||||
#include "wx/filename.h"
|
#include "wx/filename.h"
|
||||||
#include "wx/scopeguard.h"
|
#include "wx/scopeguard.h"
|
||||||
#include "wx/tokenzr.h"
|
#include "wx/tokenzr.h"
|
||||||
@@ -456,8 +450,7 @@ void wxGtkFileCtrl::GetFilenames( wxArrayString& files ) const
|
|||||||
|
|
||||||
void wxGtkFileCtrl::ShowHidden(bool show)
|
void wxGtkFileCtrl::ShowHidden(bool show)
|
||||||
{
|
{
|
||||||
// gtk_file_chooser_set_show_hidden() is new in 2.6
|
gtk_file_chooser_set_show_hidden(m_fcWidget, show);
|
||||||
g_object_set (G_OBJECT (m_fcWidget), "show-hidden", show, NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_FILECTRL
|
#endif // wxUSE_FILECTRL
|
||||||
|
Reference in New Issue
Block a user