source: filezilla/trunk/fuentes/src/interface/textctrlex.cpp @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 3 years ago

First release to xenial

File size: 456 bytes
Line 
1#include <filezilla.h>
2
3#include "textctrlex.h"
4
5#ifdef __WXMAC__
6
7static wxTextAttr DoGetDefaultStyle(wxTextCtrl* ctrl)
8{
9        wxTextAttr style;
10        style.SetFont(ctrl->GetFont());
11        return style;
12}
13
14const wxTextAttr& GetDefaultTextCtrlStyle(wxTextCtrl* ctrl)
15{
16        static const wxTextAttr style = DoGetDefaultStyle(ctrl);
17        return style;
18}
19
20void wxTextCtrlEx::Paste()
21{
22        wxTextCtrl::Paste();
23        SetStyle(0, GetLastPosition(), GetDefaultTextCtrlStyle(this));
24}
25
26#endif
Note: See TracBrowser for help on using the repository browser.