From a493ce44f2feec1cb9a6c076abcc50bb65fcd934 Mon Sep 17 00:00:00 2001 From: Yousuf Philips Date: Fri, 28 Feb 2020 06:42:31 +0400 Subject: [PATCH] Add computer:/// to side pane tree view (Bug #16472) --- thunar/thunar-tree-model.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/thunar/thunar-tree-model.c b/thunar/thunar-tree-model.c index 32bcc0da..bcc75e28 100644 --- a/thunar/thunar-tree-model.c +++ b/thunar/thunar-tree-model.c @@ -283,6 +283,7 @@ thunar_tree_model_init (ThunarTreeModel *model) ThunarFile *file; GFile *desktop; GFile *home; + GFile *computer; GList *system_paths = NULL; GList *devices; GList *lp; @@ -324,6 +325,10 @@ thunar_tree_model_init (ThunarTreeModel *model) else g_object_unref (desktop); + /* add the computer folder to the system paths */ + computer = thunar_g_file_new_for_computer (); + system_paths = g_list_append (system_paths, g_object_ref (computer)); + /* append the trash icon if the trash is supported */ if (thunar_g_vfs_is_uri_scheme_supported ("trash")) system_paths = g_list_append (system_paths, thunar_g_file_new_for_trash ()); -- 2.17.1