[bijiben] shell: oops, forgot the string split to retrieve basename



commit 2b38cf363045036c6843e9a6a3bc1d882aaad60d
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Sun Sep 15 02:00:05 2013 +0200

    shell: oops, forgot the string split to retrieve basename

 src/bijiben-shell-search-provider.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/bijiben-shell-search-provider.c b/src/bijiben-shell-search-provider.c
index 2c8514a..044b067 100644
--- a/src/bijiben-shell-search-provider.c
+++ b/src/bijiben-shell-search-provider.c
@@ -215,7 +215,7 @@ get_note_icon (const gchar *note__nie_url)
    * ICON :  CACHE_DIR/bijiben/bf74f3b4-9363-44a1-852a-5746f3118ea7.png
    * ICON :  CACHE_DIR/bijiben/Trial.png
    */
-
+  split = g_strsplit (note__nie_url, "/", 20);
 
   basename = biji_str_mass_replace (split [g_strv_length (split)-1],
                                     ".note",
@@ -246,7 +246,7 @@ get_note_icon (const gchar *note__nie_url)
                            "48x48", "actions", "note.png", NULL);
   file = g_file_new_for_path (path);
 
-  out:
+out:
   g_strfreev (split);
   gicon = g_file_icon_new (file);
   hash = g_icon_to_string (gicon);


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