From 81a9bd1d3be7a1ae55389131e6095e72aab42f5a Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Wed, 29 Dec 2010 17:19:26 -0600 Subject: [PATCH] development/poedit: Uncompressed patch Signed-off-by: Robby Workman --- development/poedit/poedit-gtkspell.patch | 49 ++++++++++++++++++++ development/poedit/poedit-gtkspell.patch.gz | Bin 603 -> 0 bytes development/poedit/poedit.SlackBuild | 2 +- 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 development/poedit/poedit-gtkspell.patch delete mode 100644 development/poedit/poedit-gtkspell.patch.gz diff --git a/development/poedit/poedit-gtkspell.patch b/development/poedit/poedit-gtkspell.patch new file mode 100644 index 0000000000..a1299755fd --- /dev/null +++ b/development/poedit/poedit-gtkspell.patch @@ -0,0 +1,49 @@ +Index: src/edframe.cpp +=================================================================== +--- src/edframe.cpp (revision 1450) ++++ src/edframe.cpp (working copy) +@@ -829,14 +829,26 @@ + wxASSERT_MSG( textview, _T("wxTextCtrl is supposed to use GtkTextView") ); + GtkSpell *spell = gtkspell_get_from_text_view(textview); + +- if (spell) +- gtkspell_detach(spell); ++ printf("init spellchecker for %s\n", (const char*)lang.ToAscii()); + + if (enable) + { + GError *err = NULL; +- if (!gtkspell_new_attach(textview, lang.ToAscii(), &err)) ++ bool ok; ++ ++ if (spell) + { ++ printf("gtkspell_set_language\n"); ++ ok = gtkspell_set_language(spell, lang.ToAscii(), &err); ++ } ++ else ++ { ++ printf("gtkspell_new_attach\n"); ++ ok = gtkspell_new_attach(textview, lang.ToAscii(), &err) != NULL; ++ } ++ ++ if (!ok) ++ { + #if 0 + // FIXME: report the failure in some less intrusive way than the + // code that was used here; say for which language, too +@@ -846,6 +858,14 @@ + g_error_free(err); + } + } ++ else ++ { ++ if (spell) ++ { ++ printf("gtkspell_detach\n"); ++ gtkspell_detach(spell); ++ } ++ } + } + #endif // __WXGTK__ + diff --git a/development/poedit/poedit-gtkspell.patch.gz b/development/poedit/poedit-gtkspell.patch.gz deleted file mode 100644 index 52ea7cf652804697b63fdca8bed6d14447c403db..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 603 zcmV-h0;K&PiwFom3^GXo18{F;WNCCQXLM_GaAj<4Ep%mbbS`jVbYo}$rBhK)+b|G* zUVg>3Xj9y#6i}%c6;jdERcNq>wcB`@WQF9CSV`^3cAKJ#|2{h*O&Dw-?G!1t?|k2P zcmA$;h}&~eG8keQNq>chL7qDo|8LG)9?46#}q=QjK>g& z{GK?|DGbg|K6=L^=-dCv7^YJPtQFhK#bWktNpBW&7c_45hGF3WUAo<3yEOYxT4ul$ zsCAwTg&}AGYlSe^sdfJ_;avh`QspzJiyX5IdaC?gK&;bpNn_MBl43jnyjQ*yoOG;>{p^^J{8ItN?=hO^fK9ka<>!FmUq_5wvuO|&Zd$F@8$+4im zE{Qhne2VG82a|}9ssd|wLS!IPQ&V%+YQ>(%u5q`E--9dDV~e%+V>Ff5O{z_#?SZs| zE2O^=ZDo0AmY6AQcCRsO+VU!|w|5Xa^)T85pSG|gQqrag2j=w1X~V;C2%oQRZ)WEp zF&9#UP7orWWowDRI4H3~$WSS>(Q>WW2BGlpO_