X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/690ddfec6e14f663fd1b5b98f1b68208344d1ffc..87b621a5b737c09cef079bb4a9ef53be132d2ce0:/src/gtk/filehistory.cpp diff --git a/src/gtk/filehistory.cpp b/src/gtk/filehistory.cpp index c85267fa78..3d564b92a2 100644 --- a/src/gtk/filehistory.cpp +++ b/src/gtk/filehistory.cpp @@ -32,6 +32,7 @@ #include #include #include "wx/gtk/private/string.h" +#include "wx/gtk/private.h" // ============================================================================ // implementation @@ -43,9 +44,11 @@ void wxFileHistory::AddFileToHistory(const wxString& file) #ifdef __WXGTK210__ const wxString fullPath = wxFileName(file).GetFullPath(); +#ifndef __WXGTK3__ if ( !gtk_check_version(2,10,0) ) +#endif { - wxGtkString uri(g_filename_to_uri(fullPath.fn_str(), NULL, NULL)); + wxGtkString uri(g_filename_to_uri(wxGTK_CONV_FN(fullPath), NULL, NULL)); if ( uri ) gtk_recent_manager_add_item(gtk_recent_manager_get_default(), uri);