diff options
author | Claudio Saavedra <csaavedra@alumnos.utalca.cl> | 2007-09-23 02:37:03 +0000 |
---|---|---|
committer | Claudio Saavedra <csaavedra@src.gnome.org> | 2007-09-23 02:37:03 +0000 |
commit | 8b3e539f88110b5f27e05406d57b36d4d9710153 (patch) | |
tree | 3d4f608e6de838238ca31fbc0f14de639ac448d5 /src/eog-list-store.c | |
parent | 412a6c711271e0513995d34905836cf7a22fdc00 (diff) | |
download | eog-8b3e539f88110b5f27e05406d57b36d4d9710153.tar.gz |
Add image to the store on file creation, if the mimetype is recognized.
2007-09-22 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
* src/eog-list-store.c: (vfs_monitor_dir_cb): Add image
to the store on file creation, if the mimetype is recognized.
Fixes bug #479400.
svn path=/trunk/; revision=4115
Diffstat (limited to 'src/eog-list-store.c')
-rw-r--r-- | src/eog-list-store.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eog-list-store.c b/src/eog-list-store.c index bec84710..0e587426 100644 --- a/src/eog-list-store.c +++ b/src/eog-list-store.c @@ -396,6 +396,14 @@ vfs_monitor_dir_cb (GnomeVFSMonitorHandle *handle, uri = gnome_vfs_uri_new (info_uri); eog_list_store_append_image_from_uri (store, uri); gnome_vfs_uri_unref (uri); + } else { + mimetype = gnome_vfs_get_mime_type (info_uri); + if (eog_image_is_supported_mime_type (mimetype)) { + uri = gnome_vfs_uri_new (info_uri); + eog_list_store_append_image_from_uri (store, uri); + gnome_vfs_uri_unref (uri); + } + g_free (mimetype); } break; |