[Xfce4-commits] <midori:master> Look for the formhistory javascript dynamically

Christian Dywan noreply at xfce.org
Tue Feb 16 01:04:03 CET 2010


Updating branch refs/heads/master
         to 6ad713c6d5e3c077833edd1e9425721a600e197c (commit)
       from b993cdc55379b5cd507af3bd527aeaaf6a97760a (commit)

commit 6ad713c6d5e3c077833edd1e9425721a600e197c
Author: Peter de Ridder <peter at xfce.org>
Date:   Mon Feb 15 22:52:45 2010 +0100

    Look for the formhistory javascript dynamically

 extensions/formhistory.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/extensions/formhistory.c b/extensions/formhistory.c
index 6c1548e..9b33300 100644
--- a/extensions/formhistory.c
+++ b/extensions/formhistory.c
@@ -31,12 +31,16 @@ static gchar* jsforms;
 static gboolean
 formhistory_prepare_js ()
 {
+   gchar* data_name;
+   gchar* data_path;
    gchar* autosuggest;
    gchar* style;
    guint i;
    gchar* file;
 
-   gchar* data_path = g_build_filename (MDATADIR, PACKAGE_NAME, "res", NULL);
+   data_name = g_build_filename (PACKAGE_NAME, "res", NULL);
+   data_path = sokoke_find_data_filename (data_name);
+   g_free (data_name);
    file = g_build_filename (data_path, G_DIR_SEPARATOR_S, "autosuggestcontrol.js",NULL);
    if (!g_file_get_contents (file, &autosuggest, NULL, NULL))
        return FALSE;



More information about the Xfce4-commits mailing list