Updating branch refs/heads/master
         to 34fdbb4a4b3ee4b3274389b58cd207d45f8349cc (commit)
       from 97948388021506b406090efbd6f26c328e387c73 (commit)

commit 34fdbb4a4b3ee4b3274389b58cd207d45f8349cc
Author: Nick Schermer <n...@xfce.org>
Date:   Sun Nov 11 01:05:24 2012 +0100

    Remove image resolution from statusbar.
    
    This loads massive ammounts of data when going through
    images and slows down systems a lot.

 thunar/thunar-list-model.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/thunar/thunar-list-model.c b/thunar/thunar-list-model.c
index 6126329..6c0d27b 100644
--- a/thunar/thunar-list-model.c
+++ b/thunar/thunar-list-model.c
@@ -2144,7 +2144,6 @@ thunar_list_model_get_statusbar_text (ThunarListModel 
*store,
   gint           folder_count;
   gint           non_folder_count;
   GList         *lp;
-  gchar         *absolute_path;
   gchar         *fspace_string;
   gchar         *display_name;
   gchar         *size_string;
@@ -2152,8 +2151,6 @@ thunar_list_model_get_statusbar_text (ThunarListModel 
*store,
   gchar         *folder_text;
   gchar         *non_folder_text;
   gchar         *s;
-  gint           height;
-  gint           width;
   gchar         *description;
   GSequenceIter *row;
   GSequenceIter *end;
@@ -2268,22 +2265,6 @@ thunar_list_model_get_statusbar_text (ThunarListModel 
*store,
           g_free (text);
           text = s;
         }
-      else if (thunar_file_is_local (file)
-               && thunar_file_is_regular (file)
-               && g_str_has_prefix (content_type, "image/")) /* bug #2913 */
-        {
-          /* check if we can determine the dimension of this file (only for 
image files) */
-          absolute_path = g_file_get_path (thunar_file_get_file (file));
-          if (absolute_path != NULL
-              && gdk_pixbuf_get_file_info (absolute_path, &width, &height) != 
NULL)
-            {
-              /* append the image dimensions to the statusbar text */
-              s = g_strdup_printf ("%s, %s %dx%d", text, _("Image Size:"), 
width, height);
-              g_free (text);
-              text = s;
-            }
-          g_free (absolute_path);
-        }
     }
   else
     {
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to