[gtk-osx] Patch yet another enchant bug.



commit 267d7f1cc015f8f80caeb004ebb181d9e5b7ebba
Author: John Ralls <jralls ceridwen us>
Date:   Sun Mar 22 17:29:37 2015 +0900

    Patch yet another enchant bug.

 modulesets-stable/gtk-osx-unsupported.modules |    1 +
 patches/enchant-xdg-path.patch                |   17 +++++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/modulesets-stable/gtk-osx-unsupported.modules b/modulesets-stable/gtk-osx-unsupported.modules
index 66abdc1..f92bb79 100644
--- a/modulesets-stable/gtk-osx-unsupported.modules
+++ b/modulesets-stable/gtk-osx-unsupported.modules
@@ -164,6 +164,7 @@
            repo="abisource/enchant">
  <patch file="http://git.gnome.org/browse/gtk-osx/plain/patches/enchant-gsize.patch"; strip="1"/>
  <patch file="http://git.gnome.org/browse/gtk-osx/plain/patches/enchant-env.patch"; strip="1"/>
+ <patch file="http://git.gnome.org/browse/gtk-osx/plain/patches/enchant-xdg-pat.patch"; strip="1"/>
     </branch>
     <dependencies>
       <dep package="glib"/>
diff --git a/patches/enchant-xdg-path.patch b/patches/enchant-xdg-path.patch
new file mode 100644
index 0000000..4bad996
--- /dev/null
+++ b/patches/enchant-xdg-path.patch
@@ -0,0 +1,17 @@
+diff -c /Users/john/Development/gtk-sources/enchant-1.6.0/src/enchant.c\~ 
/Users/john/Development/gtk-sources/enchant-1.6.0/src/enchant.c
+--- a/src/enchant.c    Fri Mar 20 20:43:36 2015
++++ b/src/enchant.c    Sun Mar 22 16:39:44 2015
+@@ -301,9 +301,9 @@
+       if (xdg_data_dir)
+               {
+                       char **xdg_ddirs = g_strsplit (xdg_data_dir, ":", 0);
+-                      char *xdg_iter;
++                      char **xdg_iter;
+ 
+-                      for (xdg_iter = xdg_ddirs; xdg_iter != NULL; xdg_iter++)
++                      for (xdg_iter = xdg_ddirs; *xdg_iter != NULL; xdg_iter++)
+                               {
+                                       conf_dirs = enchant_slist_append_unique_path (conf_dirs, 
g_strdup(*xdg_iter));
+                               }
+
+Diff finished.  Sun Mar 22 17:09:21 2015


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]