X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09fcd88955f6460d1f0d3d506118ce52c1090621..53e46b61bbe4ce72b92c8898907f0a879d5f012b:/src/gtk/font.cpp diff --git a/src/gtk/font.cpp b/src/gtk/font.cpp index 22c761e6fc..c8a4c8da16 100644 --- a/src/gtk/font.cpp +++ b/src/gtk/font.cpp @@ -170,7 +170,7 @@ wxString wxNativeFontInfo::ToString() const { wxString s; - s.Printf("%d;%s", + s.Printf(_T("%d;%s"), 0, // version xFontName.c_str()); @@ -493,6 +493,12 @@ GdkFont *GtkGetDefaultGuiFont() } gtk_widget_destroy( widget ); } + else + { + // already have it, but ref it once more before returning + gdk_font_ref(g_systemDefaultGuiFont); + } + return g_systemDefaultGuiFont; }