- #define wxGTK_CONV_ENC(s, enc) wxConvertToGTK((s), (enc))
- #define wxGTK_CONV_FONT(s, font) wxConvertToGTK((s), (font))
- #define wxGTK_CONV(s) wxGTK_CONV_FONT((s), m_font)
- #define wxGTK_CONV_SYS(s) wxConvertToGTK((s))
- #define wxGTK_CONV_BACK(s) wxConvLocal.cWC2WX(wxConvUTF8.cMB2WC((s)))
-#endif
-
-// Some deprecated GTK+ prototypes we still use often
-// FIXME: Don't use them if possible.
-G_BEGIN_DECLS
-
-// Should use gtk_image_new, but the mask seems to be handled different,
-// and we need to migrate
-GtkWidget* gtk_pixmap_new (GdkPixmap *pixmap,
- GdkBitmap *mask);
-
-// Deprecated since GTK+-1.3.7:
-// Trivial wrapper around gtk_window_move, with some side effects we seem to rely on
-void gtk_widget_set_uposition (GtkWidget *widget,
- gint x,
- gint y);
+ inline wxCharBuffer wxConvertFromGTK(const wxString& s, const wxFont& font)
+ {
+ return wxConvertFromGTK(s, font.Ok() ? font.GetEncoding()
+ : wxFONTENCODING_SYSTEM);
+ }