[Xfce4-commits] [xfce/thunar] 01/01: Add computer:/// to side pane tree view (Bug #16472)

noreply at xfce.org noreply at xfce.org
Tue Mar 3 23:33:30 CET 2020


This is an automated email from the git hooks/post-receive script.

a   l   e   x       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/thunar.

commit cdb516d09cbc0e7c1995188407a672869cba8c89
Author: Yousuf Philips <philipz85 at hotmail.com>
Date:   Fri Feb 28 06:42:31 2020 +0400

    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 17d9bf5..9a431d7 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));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list