fixed inserting styled text into an empty control under GTK+ 2.0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-07-23 19:59:00 +00:00
parent 7ff64980aa
commit c04ec49657
4 changed files with 70 additions and 12 deletions

View File

@@ -88,6 +88,10 @@ public:
virtual void ShowPosition(long pos);
#ifdef __WXGTK20__
virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const;
#endif // __WXGTK20__
// Clipboard operations
virtual void Copy();
virtual void Cut();
@@ -136,7 +140,13 @@ public:
void DoApplyWidgetStyle(GtkRcStyle *style);
void CalculateScrollbar();
void OnInternalIdle();
#ifdef __WXGTK20__
void SetUpdateFont(bool WXUNUSED(update)) { }
#else // !__WXGTK20__
void SetUpdateFont(bool update) { m_updateFont = update; }
void UpdateFontIfNeeded();
#endif // __WXGTK20__/!__WXGTK20__
void SetModified() { m_modified = TRUE; }
@@ -191,7 +201,9 @@ private:
bool m_modified:1;
bool m_vScrollbarVisible:1;
#ifndef __WXGTK20__
bool m_updateFont:1;
#endif // !__WXGTK20__
bool m_ignoreNextUpdate:1;
DECLARE_EVENT_TABLE()