From 6cee0432d8ca191cce1587569850c181e89b8fb4 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..c6ca49c1 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; @@ -313,6 +314,10 @@ thunar_tree_model_init (ThunarTreeModel *model) g_signal_connect (model->device_monitor, "device-removed", G_CALLBACK (thunar_tree_model_device_removed), model); g_signal_connect (model->device_monitor, "device-changed", G_CALLBACK (thunar_tree_model_device_changed), model); + /* 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)); + /* add the home folder to the system paths */ home = thunar_g_file_new_for_home (); system_paths = g_list_append (system_paths, g_object_ref (home)); -- 2.17.1