]> git.saurik.com Git - wxWidgets.git/commitdiff
fix wxGTK1 compilation after wxTextEntry DoGetValue() change
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 3 Mar 2009 09:21:35 +0000 (09:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 3 Mar 2009 09:21:35 +0000 (09:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk1/combobox.h
include/wx/gtk1/textctrl.h
src/gtk1/combobox.cpp
src/gtk1/textctrl.cpp

index 079d0f56d0f1e8909e23fb88ef369e1689beff8e..1d4149e3a8b49b1b1f1cd213fb705b6c03c8a536 100644 (file)
@@ -92,7 +92,7 @@ public:
     virtual void SetSelection(int n);
     virtual void SetString(unsigned int n, const wxString &text);
 
     virtual void SetSelection(int n);
     virtual void SetString(unsigned int n, const wxString &text);
 
-    wxString GetValue() const;
+    wxString GetValue() const { return DoGetValue(); }
     void SetValue(const wxString& value);
     void WriteText(const wxString& value);
 
     void SetValue(const wxString& value);
     void WriteText(const wxString& value);
 
@@ -169,7 +169,8 @@ protected:
 
     virtual wxSize DoGetBestSize() const;
 
 
     virtual wxSize DoGetBestSize() const;
 
-    // implement wxTextEntry pure virtual method
+    // implement wxTextEntry pure virtual methods
+    virtual wxString DoGetValue() const;
     virtual wxWindow *GetEditableWindow() { return this; }
 
     // Widgets that use the style->base colour for the BG colour should
     virtual wxWindow *GetEditableWindow() { return this; }
 
     // Widgets that use the style->base colour for the BG colour should
index 5c7a3ca1bce1f9952e361daac7c8e513515103f1..c594bc46b2fda31d8c84dd9bb3c426a33f7407bf 100644 (file)
@@ -42,8 +42,6 @@ public:
     // implement base class pure virtuals
     // ----------------------------------
 
     // implement base class pure virtuals
     // ----------------------------------
 
-    virtual wxString GetValue() const;
-
     virtual int GetLineLength(long lineNo) const;
     virtual wxString GetLineText(long lineNo) const;
     virtual int GetNumberOfLines() const;
     virtual int GetLineLength(long lineNo) const;
     virtual wxString GetLineText(long lineNo) const;
     virtual int GetNumberOfLines() const;
@@ -181,6 +179,7 @@ protected:
     virtual bool UseGTKStyleBase() const { return true; }
 
     virtual void DoSetValue(const wxString &value, int flags = 0);
     virtual bool UseGTKStyleBase() const { return true; }
 
     virtual void DoSetValue(const wxString &value, int flags = 0);
+    virtual wxString DoGetValue() const;
 
 private:
     // change the font for everything in this control
 
 private:
     // change the font for everything in this control
index a86bfa6899eca966eba1c37c075baa764534b277..ebbbc0c0a4fc8e313a445e04d8d366f730110cd7 100644 (file)
@@ -596,7 +596,7 @@ void wxComboBox::SetSelection( int n )
     EnableEvents();
 }
 
     EnableEvents();
 }
 
-wxString wxComboBox::GetValue() const
+wxString wxComboBox::DoGetValue() const
 {
     GtkEntry *entry = GTK_ENTRY( GTK_COMBO(m_widget)->entry );
     wxString tmp( wxGTK_CONV_BACK( gtk_entry_get_text( entry ) ) );
 {
     GtkEntry *entry = GTK_ENTRY( GTK_COMBO(m_widget)->entry );
     wxString tmp( wxGTK_CONV_BACK( gtk_entry_get_text( entry ) ) );
index ad7be3702caa9be4d44ed23dc69963d79e91da9c..547c804242fe26610d2eabcae1ec81c78246a1d0 100644 (file)
@@ -406,7 +406,7 @@ void wxTextCtrl::CalculateScrollbar()
     }
 }
 
     }
 }
 
-wxString wxTextCtrl::GetValue() const
+wxString wxTextCtrl::DoGetValue() const
 {
     wxCHECK_MSG( m_text != NULL, wxEmptyString, wxT("invalid text ctrl") );
 
 {
     wxCHECK_MSG( m_text != NULL, wxEmptyString, wxT("invalid text ctrl") );