X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09fcd88955f6460d1f0d3d506118ce52c1090621..5d6c4365363f84bf587c7f5f916e5830ef8a11e3:/src/gtk1/font.cpp diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index 22c761e6fc..c8a4c8da16 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/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; }