diff options
author | Christian Dywan <christian@twotoasts.de> | 2012-09-09 22:34:33 +0200 |
---|---|---|
committer | Christian Dywan <christian@twotoasts.de> | 2012-09-09 22:34:33 +0200 |
commit | c511eea52a960af9cd0d85d1ef72d811c9e094d8 (patch) | |
tree | f24aa2ab069b22561986bf502912f7721ca95e5a /midori/sokoke.c | |
parent | 0c40caa987ab550491d54476b4daf7629c34014c (diff) | |
download | midori-c511eea52a960af9cd0d85d1ef72d811c9e094d8.tar.gz |
Merge build_thumbnail_path into Midori.SpeedDial
Diffstat (limited to 'midori/sokoke.c')
-rw-r--r-- | midori/sokoke.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/midori/sokoke.c b/midori/sokoke.c index f476f3c1..ee3d4e4d 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -1219,23 +1219,6 @@ sokoke_widget_copy_clipboard (GtkWidget* widget, gtk_clipboard_set_text (clipboard, text ? text : "", -1); } -gchar* -sokoke_build_thumbnail_path (const gchar* name) -{ - gchar* path = NULL; - if (name != NULL) - { - gchar* checksum = g_compute_checksum_for_string (G_CHECKSUM_MD5, name, -1); - gchar* filename = g_strdup_printf ("%s.png", checksum); - - path = g_build_filename (midori_paths_get_cache_dir (), "thumbnails", filename, NULL); - - g_free (filename); - g_free (checksum); - } - return path; -} - static gboolean sokoke_entry_has_placeholder_text (GtkEntry* entry) { |