[gthumb] added VIDEO and DESKTOP to the entry point list
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] added VIDEO and DESKTOP to the entry point list
- Date: Fri, 8 Apr 2011 17:08:43 +0000 (UTC)
commit c0f84101f4399bc52c6fcc9160f1aeebbafad809
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Apr 8 10:37:08 2011 +0200
added VIDEO and DESKTOP to the entry point list
gthumb/gth-file-source-vfs.c | 42 +++++++++++++++++++++++++++++++++---------
1 files changed, 33 insertions(+), 9 deletions(-)
---
diff --git a/gthumb/gth-file-source-vfs.c b/gthumb/gth-file-source-vfs.c
index e7fc7f3..561827a 100644
--- a/gthumb/gth-file-source-vfs.c
+++ b/gthumb/gth-file-source-vfs.c
@@ -68,15 +68,6 @@ gth_file_source_vfs_get_entry_points (GthFileSource *file_source)
list = NULL;
- path = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
- if (path != NULL) {
- file = g_file_new_for_path (path);
- info = gth_file_source_get_file_info (file_source, file, GFILE_BASIC_ATTRIBUTES ",access::*");
- list = g_list_append (list, gth_file_data_new (file, info));
- g_object_unref (info);
- g_object_unref (file);
- }
-
file = g_file_new_for_uri (get_home_uri ());
info = gth_file_source_get_file_info (file_source, file, GFILE_BASIC_ATTRIBUTES ",access::*");
g_file_info_set_display_name (info, _("Home Folder"));
@@ -84,6 +75,39 @@ gth_file_source_vfs_get_entry_points (GthFileSource *file_source)
g_object_unref (info);
g_object_unref (file);
+ path = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
+ if (path != NULL) {
+ file = g_file_new_for_path (path);
+ if (g_file_query_exists (file, NULL)) {
+ info = gth_file_source_get_file_info (file_source, file, GFILE_BASIC_ATTRIBUTES ",access::*");
+ list = g_list_append (list, gth_file_data_new (file, info));
+ g_object_unref (info);
+ }
+ g_object_unref (file);
+ }
+
+ path = g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS);
+ if (path != NULL) {
+ file = g_file_new_for_path (path);
+ if (g_file_query_exists (file, NULL)) {
+ info = gth_file_source_get_file_info (file_source, file, GFILE_BASIC_ATTRIBUTES ",access::*");
+ list = g_list_append (list, gth_file_data_new (file, info));
+ g_object_unref (info);
+ }
+ g_object_unref (file);
+ }
+
+ path = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP);
+ if (path != NULL) {
+ file = g_file_new_for_path (path);
+ if (g_file_query_exists (file, NULL)) {
+ info = gth_file_source_get_file_info (file_source, file, GFILE_BASIC_ATTRIBUTES ",access::*");
+ list = g_list_append (list, gth_file_data_new (file, info));
+ g_object_unref (info);
+ }
+ g_object_unref (file);
+ }
+
file = g_file_new_for_uri ("file:///");
info = gth_file_source_get_file_info (file_source, file, GFILE_BASIC_ATTRIBUTES ",access::*");
g_file_info_set_display_name (info, _("File System"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]