mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/poedit: Uncompressed patch
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
ebd936a04b
commit
81a9bd1d3b
3 changed files with 50 additions and 1 deletions
49
development/poedit/poedit-gtkspell.patch
Normal file
49
development/poedit/poedit-gtkspell.patch
Normal file
|
@ -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__
|
||||
|
Binary file not shown.
|
@ -68,7 +68,7 @@ chown -R root:root .
|
|||
chmod -R a-s,u+rw,go+r-w .
|
||||
|
||||
# Patch to fix program crash when using localized LANG bug #276
|
||||
zcat $CWD/poedit-gtkspell.patch.gz | patch -p0 --verbose --backup --suffix=.orig
|
||||
patch -p0 < $CWD/poedit-gtkspell.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
|
|
Loading…
Reference in a new issue