#include <glib.h>
#include <gtk/gtk.h>
#include "wx/gtk/private/string.h"
+#include "wx/gtk/private.h"
// ============================================================================
// implementation
#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);