[Xfce4-commits] <thunar:master> Fix some indentation.

Nick Schermer noreply at xfce.org
Wed Nov 21 21:24:03 CET 2012


Updating branch refs/heads/master
         to 3722520663e0b37011ed1da356a53f5c71348df8 (commit)
       from 0e883f7c4cf9358390e760f1d68e44746eb61b2a (commit)

commit 3722520663e0b37011ed1da356a53f5c71348df8
Author: Nick Schermer <nick at xfce.org>
Date:   Wed Nov 14 22:13:11 2012 +0100

    Fix some indentation.

 thunar/thunar-file.c |   40 +++++++++++++++++++++-------------------
 1 files changed, 21 insertions(+), 19 deletions(-)

diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 5bc2e04..a110262 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -3434,8 +3434,8 @@ thunar_file_get_icon_name_for_state (const gchar         *icon_name,
  * Return value: the icon name for @file in @icon_theme.
  **/
 const gchar *
-thunar_file_get_icon_name (ThunarFile   *file,
-                           ThunarFileIconState icon_state,
+thunar_file_get_icon_name (ThunarFile          *file,
+                           ThunarFileIconState  icon_state,
                            GtkIconTheme       *icon_theme)
 {
   GFile               *icon_file;
@@ -3443,7 +3443,7 @@ thunar_file_get_icon_name (ThunarFile   *file,
   const gchar * const *names;
   gchar               *icon_name = NULL;
   gchar               *path;
-  const gchar         *special_names[3] = { NULL, "folder", NULL };
+  const gchar         *special_names[] = { NULL, "folder", NULL };
   guint                i;
   const gchar         *special_dir;
 
@@ -3466,24 +3466,26 @@ thunar_file_get_icon_name (ThunarFile   *file,
           else if (strcmp (path, xfce_get_homedir ()) == 0)
             *special_names = "user-home";
           else
-            for (i = 0; i < G_N_ELEMENTS (thunar_file_dirs); i++)
-              {
-                special_dir = g_get_user_special_dir (thunar_file_dirs[i].type);
-                if (special_dir != NULL
-                    && strcmp (path, special_dir) == 0)
-                  {
-                    *special_names = thunar_file_dirs[i].icon_name;
-                    break;
-                  }
-              }
+            {
+              for (i = 0; i < G_N_ELEMENTS (thunar_file_dirs); i++)
+                {
+                  special_dir = g_get_user_special_dir (thunar_file_dirs[i].type);
+                  if (special_dir != NULL
+                      && strcmp (path, special_dir) == 0)
+                    {
+                      *special_names = thunar_file_dirs[i].icon_name;
+                      break;
+                    }
+                }
+            }
 
-            g_free (path);
+          g_free (path);
 
-            if (*special_names != NULL)
-              {
-                names = special_names;
-                goto check_names;
-              }
+          if (*special_names != NULL)
+            {
+              names = special_names;
+              goto check_names;
+            }
         }
     }
 


More information about the Xfce4-commits mailing list