+ inline wxCharBuffer wxConvertFromGTK(const wxString& s, const wxFont& font)
+ {
+ return wxConvertFromGTK(s, font.Ok() ? font.GetEncoding()
+ : wxFONTENCODING_SYSTEM);
+ }
+
+ // more helpers: allow passing GTK+ strings directly
+ inline wxCharBuffer
+ wxConvertFromGTK(const wxGtkString& gs,
+ wxFontEncoding enc = wxFONTENCODING_SYSTEM)
+ {
+ return wxConvertFromGTK(gs.c_str(), enc);
+ }
+
+ inline wxCharBuffer
+ wxConvertFromGTK(const wxGtkString& gs, const wxFont& font)
+ {
+ return wxConvertFromGTK(gs.c_str(), font);
+ }
+
+ #define wxGTK_CONV(s) wxGTK_CONV_FONT((s), m_font)