[Xfce4-commits] <tumbler:master> Make the pixbuf support all URI schemes supported by GIO.

Jannis Pohlmann noreply at xfce.org
Wed Sep 30 03:32:01 CEST 2009


Updating branch refs/heads/master
         to 8b48e3a585cc4f302665c1c63e0fe2af09e9c35d (commit)
       from adca19e3bbbd639ed9c197500369594c372bba4d (commit)

commit 8b48e3a585cc4f302665c1c63e0fe2af09e9c35d
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Wed Sep 30 03:30:15 2009 +0200

    Make the pixbuf support all URI schemes supported by GIO.

 .../pixbuf-thumbnailer-provider.c                  |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer-provider.c b/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer-provider.c
index 0726029..d0deebd 100644
--- a/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer-provider.c
+++ b/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer-provider.c
@@ -104,7 +104,7 @@ static GList *
 pixbuf_thumbnailer_provider_get_thumbnailers (TumblerThumbnailerProvider *provider)
 {
   PixbufThumbnailer  *thumbnailer;
-  static const gchar *uri_schemes[] = { "file", "sftp", "http", NULL, };
+  const gchar *const *uri_schemes;
   GHashTable         *types;
   GSList             *formats;
   GSList             *fp;
@@ -113,8 +113,13 @@ pixbuf_thumbnailer_provider_get_thumbnailers (TumblerThumbnailerProvider *provid
   GList              *thumbnailers = NULL;
   GStrv               format_types;
   GStrv               mime_types;
+  GVfs               *vfs;
   gint                n;
 
+  /* determine which URI schemes are supported by GIO */
+  vfs = g_vfs_get_default ();
+  uri_schemes = g_vfs_get_supported_uri_schemes (vfs);
+
   /* create a hash table to collect unique MIME types */
   types = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
 



More information about the Xfce4-commits mailing list