--- library/forms/mforms/textbox.h.orig 2015-09-02 18:22:22.088930096 +0200 +++ library/forms/mforms/textbox.h 2015-09-02 18:23:01.331999198 +0200 @@ -72,7 +72,6 @@ class MFORMS_EXPORT TextBox : public View { #ifdef SWIG -#if SWIG_VERSION < 0x030003 // starting with SWIG v3.0.3, this is no longer necessary (https://github.com/swig/swig/pull/201) //workaround for problem with unicode strings and default args in swig %rename(append_text_and_scroll) append_text(const std::string &text, bool scroll_to_end); %rename(append_text) append_text(const std::string &text); @@ -80,7 +79,6 @@ %rename(append_text_with_encoding_and_scroll) append_text_with_encoding(const std::string &text, const std::string &encoding, bool scroll_to_end); %rename(append_text_with_encoding) append_text_with_encoding(const std::string &text, const std::string &encoding); #endif -#endif public: TextBox(ScrollBars scroll_bars); --- library/forms/swig/mforms.i.orig 2015-09-02 18:22:30.493228096 +0200 +++ library/forms/swig/mforms.i 2015-09-02 18:23:13.682315211 +0200 @@ -1129,16 +1129,6 @@ %extend mforms::TextBox { SWIG_ADD_SIGNAL_VOID_CALLBACK(changed_callback, self->signal_changed()); -#if SWIG_VERSION >= 0x030003 // SWIG v3.0.3 changed its behaviour and broke compatibility (https://github.com/swig/swig/pull/201). This is a workaround to make it work again. - void append_text_and_scroll(const std::string &text, bool scroll_to_end= false) - { - self->append_text(text, scroll_to_end); - } - void append_text_with_encoding_and_scroll(const std::string &text, const std::string &encoding, bool scroll_to_end= false) - { - self->append_text_with_encoding(text, encoding, scroll_to_end); - } -#endif } %extend mforms::TextEntry {