aboutsummaryrefslogtreecommitdiff
path: root/development/poedit/poedit-gtkspell.patch
diff options
context:
space:
mode:
authorNiklas 'Nille' Åkerström <nille.kungen[AT]gmail.com>2011-01-05 07:05:38 -0200
committerRobby Workman <rworkman@slackbuilds.org>2011-01-10 15:04:21 -0600
commit46c919a2bca7b0d27d74fe9f4362d3273e509d14 (patch)
tree95adfecfa9182c480f392ea1cd276e6fdfd530f4 /development/poedit/poedit-gtkspell.patch
parentf3edeffb2c8244005ac1702a4d7dbc2a6e6cd37c (diff)
development/poedit: Updated for version 1.4.6.1.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'development/poedit/poedit-gtkspell.patch')
-rw-r--r--development/poedit/poedit-gtkspell.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/development/poedit/poedit-gtkspell.patch b/development/poedit/poedit-gtkspell.patch
deleted file mode 100644
index a1299755fd13e..0000000000000
--- a/development/poedit/poedit-gtkspell.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-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__
-