[Xfce4-commits] <thunar:master> Don't show drive icon for remote mounts in history.

Nick Schermer noreply at xfce.org
Mon Oct 22 17:48:04 CEST 2012


Updating branch refs/heads/master
         to 77471b4220d1ddd1a150dff8fca4a310a83efe3d (commit)
       from 1e75dd17dcccf1298bc39da297e76bc2b9f81264 (commit)

commit 77471b4220d1ddd1a150dff8fca4a310a83efe3d
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Oct 21 21:21:06 2012 +0200

    Don't show drive icon for remote mounts in history.

 thunar/thunar-history.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/thunar/thunar-history.c b/thunar/thunar-history.c
index 57298c5..f8810aa 100644
--- a/thunar/thunar-history.c
+++ b/thunar/thunar-history.c
@@ -646,14 +646,14 @@ thunar_history_show_menu (GtkAction     *action,
       if (image == NULL)
         {
           /* some custom likely alternatives */
-          if (thunar_g_file_is_root (lp->data))
-            icon_name = "drive-harddisk";
-          else if (thunar_g_file_is_home (lp->data))
+          if (thunar_g_file_is_home (lp->data))
             icon_name = "user-home";
-          else if (g_file_has_uri_scheme (lp->data, "file"))
-            icon_name = GTK_STOCK_DIRECTORY;
-          else
+          else if (!g_file_has_uri_scheme (lp->data, "file"))
             icon_name = "folder-remote";
+          else if (thunar_g_file_is_root (lp->data))
+            icon_name = "drive-harddisk";
+          else
+            icon_name = GTK_STOCK_DIRECTORY;
 
           image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
         }


More information about the Xfce4-commits mailing list