[Goodies-commits] r2981 - ristretto/trunk/src

Stephan Arts stephan at xfce.org
Thu Aug 9 08:59:06 CEST 2007


Author: stephan
Date: 2007-08-09 06:59:06 +0000 (Thu, 09 Aug 2007)
New Revision: 2981

Modified:
   ristretto/trunk/src/navigator.c
Log:
revert previous commit

Modified: ristretto/trunk/src/navigator.c
===================================================================
--- ristretto/trunk/src/navigator.c	2007-08-09 06:51:19 UTC (rev 2980)
+++ ristretto/trunk/src/navigator.c	2007-08-09 06:59:06 UTC (rev 2981)
@@ -233,9 +233,9 @@
     {
         gchar *filename = thunar_vfs_path_dup_string(((ThunarVfsInfo *)((RsttoNavigatorEntry *)navigator->file_iter->data)->info)->path);
         GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(filename , NULL);
-        RsttoNavigatorEntry *entry = navigator->file_iter->data;
-        if(pixbuf && (entry->rotation != 0))
+        if(pixbuf)
         {
+            RsttoNavigatorEntry *entry = navigator->file_iter->data;
             GdkPixbuf *new_pixbuf = gdk_pixbuf_rotate_simple(pixbuf, entry->rotation);
             if(new_pixbuf)
             {
@@ -283,9 +283,9 @@
         ThunarVfsInfo *info = rstto_navigator_entry_get_info(((RsttoNavigatorEntry *)navigator->file_iter->data));
         gchar *filename = thunar_vfs_path_dup_string(info->path);
         GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(filename , NULL);
-        RsttoNavigatorEntry *entry = navigator->file_iter->data;
-        if(pixbuf && (entry->rotation != 0))
+        if(pixbuf)
         {
+            RsttoNavigatorEntry *entry = navigator->file_iter->data;
             GdkPixbuf *new_pixbuf = gdk_pixbuf_rotate_simple(pixbuf, entry->rotation);
             if(new_pixbuf)
             {
@@ -340,9 +340,9 @@
         ThunarVfsInfo *info = rstto_navigator_entry_get_info(((RsttoNavigatorEntry *)navigator->file_iter->data));
         gchar *filename = thunar_vfs_path_dup_string(info->path);
         GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(filename , NULL);
-        RsttoNavigatorEntry *entry = navigator->file_iter->data;
-        if(pixbuf && (entry->rotation != 0))
+        if(pixbuf)
         {
+            RsttoNavigatorEntry *entry = navigator->file_iter->data;
             GdkPixbuf *new_pixbuf = gdk_pixbuf_rotate_simple(pixbuf, entry->rotation);
             if(new_pixbuf)
             {
@@ -396,9 +396,9 @@
         ThunarVfsInfo *info = rstto_navigator_entry_get_info(((RsttoNavigatorEntry *)navigator->file_iter->data));
         gchar *filename = thunar_vfs_path_dup_string(info->path);
         GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(filename , NULL);
-        RsttoNavigatorEntry *entry = navigator->file_iter->data;
-        if(pixbuf && (entry->rotation != 0))
+        if(pixbuf)
         {
+            RsttoNavigatorEntry *entry = navigator->file_iter->data;
             GdkPixbuf *new_pixbuf = gdk_pixbuf_rotate_simple(pixbuf, entry->rotation);
             if(new_pixbuf)
             {
@@ -449,9 +449,9 @@
         ThunarVfsInfo *info = rstto_navigator_entry_get_info(((RsttoNavigatorEntry *)navigator->file_iter->data));
         gchar *filename = thunar_vfs_path_dup_string(info->path);
         GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(filename , NULL);
-        RsttoNavigatorEntry *entry = navigator->file_iter->data;
-        if(pixbuf && (entry->rotation != 0))
+        if(pixbuf)
         {
+            RsttoNavigatorEntry *entry = navigator->file_iter->data;
             GdkPixbuf *new_pixbuf = gdk_pixbuf_rotate_simple(pixbuf, entry->rotation);
             if(new_pixbuf)
             {
@@ -537,9 +537,9 @@
         ThunarVfsInfo *info = rstto_navigator_entry_get_info(((RsttoNavigatorEntry *)navigator->file_iter->data));
         gchar *filename = thunar_vfs_path_dup_string(info->path);
         GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(filename , NULL);
-        RsttoNavigatorEntry *entry = navigator->file_iter->data;
-        if(pixbuf && (entry->rotation != 0))
+        if(pixbuf)
         {
+            RsttoNavigatorEntry *entry = navigator->file_iter->data;
             GdkPixbuf *new_pixbuf = gdk_pixbuf_rotate_simple(pixbuf, entry->rotation);
             if(new_pixbuf)
             {




More information about the Goodies-commits mailing list