X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4db172a3b318df9aff178eb6c5da149d56e0859..cc4d5638c66a409e421420ed7110917755a66788:/src/gtk1/control.cpp diff --git a/src/gtk1/control.cpp b/src/gtk1/control.cpp index d77a65f4e8..0e186c1bc9 100644 --- a/src/gtk1/control.cpp +++ b/src/gtk1/control.cpp @@ -2,7 +2,6 @@ // Name: src/gtk1/control.cpp // Purpose: wxControl implementation for wxGTK // Author: Robert Roebling -// Id: $Id$ // Copyright: (c) 1998 Robert Roebling, Julian Smart and Vadim Zeitlin // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -16,10 +15,10 @@ #ifndef WX_PRECOMP #include "wx/log.h" + #include "wx/settings.h" #endif #include "wx/fontutil.h" -#include "wx/settings.h" #include "wx/gtk1/private.h" // ============================================================================ @@ -34,7 +33,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxControl, wxWindow) wxControl::wxControl() { - m_needParent = TRUE; + m_needParent = true; } bool wxControl::Create( wxWindow *parent, @@ -83,7 +82,7 @@ void wxControl::PostCreation(const wxSize& size) gtk_widget_ensure_style(m_widget); ApplyWidgetStyle(); - SetInitialBestSize(size); + SetInitialSize(size); } // ---------------------------------------------------------------------------- @@ -120,7 +119,7 @@ void wxControl::GTKSetLabelForFrame(GtkFrame *w, const wxString& label) const wxString labelGTK = GTKRemoveMnemonics(label); - gtk_frame_set_label(w, labelGTK.empty() ? (char *)NULL + gtk_frame_set_label(w, labelGTK.empty() ? (const char *)NULL : wxGTK_CONV(labelGTK)); } @@ -134,7 +133,7 @@ wxString wxControl::GTKRemoveMnemonics(const wxString& label) { wxChar ch = label[i]; - if ( ch == _T('&') ) + if ( ch == wxT('&') ) { if ( i == len - 1 ) { @@ -144,7 +143,7 @@ wxString wxControl::GTKRemoveMnemonics(const wxString& label) } ch = label[++i]; // skip '&' itself - if ( ch == _T('&') ) + if ( ch == wxT('&') ) { // special case: "&&" is not a mnemonic at all but just an // escaped "&"