X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/321db4b6bf15df209942b9c0e6c744c8e7074d1b..184b5d99a5382cd7a19888c85aff11f8a21af2f6:/src/motif/gauge.cpp diff --git a/src/motif/gauge.cpp b/src/motif/gauge.cpp index 81d9d65c10..d47c8d976a 100644 --- a/src/motif/gauge.cpp +++ b/src/motif/gauge.cpp @@ -123,10 +123,12 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id, if (height == -1) height = 80; + m_windowFont = parent->GetFont(); + ChangeFont(FALSE); + SetCanAddEventHandler(TRUE); AttachWidget (parent, m_mainWidget, (WXWidget) NULL, x, y, width, height); - SetFont(* parent->GetFont()); ChangeBackgroundColour(); return TRUE; @@ -188,9 +190,9 @@ int wxGauge::GetValue() const // return m_gaugePos; } -void wxGauge::ChangeFont() +void wxGauge::ChangeFont(bool keepOriginalSize) { - wxWindow::ChangeFont(); + wxWindow::ChangeFont(keepOriginalSize); } void wxGauge::ChangeBackgroundColour()