Fix building/running with GTK+ < 2.14
See https://github.com/wxWidgets/wxWidgets/pull/293
This commit is contained in:
parent
c3a224690e
commit
acc824adc4
@ -22,6 +22,11 @@
|
||||
wxString wxGTKMimeTypesManagerImpl::GetIconFromMimeType(const wxString& mime)
|
||||
{
|
||||
wxString icon;
|
||||
#if GTK_CHECK_VERSION(2,14,0)
|
||||
#ifndef __WXGTK3__
|
||||
if (gtk_check_version(2,14,0))
|
||||
return icon;
|
||||
#endif
|
||||
wxGtkString type(g_content_type_from_mime_type(mime.utf8_str()));
|
||||
|
||||
wxGtkObject<GIcon> gicon(g_content_type_get_icon(type));
|
||||
@ -50,7 +55,7 @@ wxString wxGTKMimeTypesManagerImpl::GetIconFromMimeType(const wxString& mime)
|
||||
gtk_icon_info_free(giconinfo);
|
||||
wxGCC_WARNING_RESTORE()
|
||||
}
|
||||
|
||||
#endif // GTK_CHECK_VERSION(2,14,0)
|
||||
return icon;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user