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

Stephan Arts stephan at xfce.org
Thu Aug 9 08:51:19 CEST 2007


Author: stephan
Date: 2007-08-09 06:51:19 +0000 (Thu, 09 Aug 2007)
New Revision: 2980

Modified:
   ristretto/trunk/src/navigator.c
Log:
Move some stuff around


Modified: ristretto/trunk/src/navigator.c
===================================================================
--- ristretto/trunk/src/navigator.c	2007-08-08 23:38:29 UTC (rev 2979)
+++ ristretto/trunk/src/navigator.c	2007-08-09 06:51:19 UTC (rev 2980)
@@ -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);
-        if(pixbuf)
+        RsttoNavigatorEntry *entry = navigator->file_iter->data;
+        if(pixbuf && (entry->rotation != 0))
         {
-            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);
-        if(pixbuf)
+        RsttoNavigatorEntry *entry = navigator->file_iter->data;
+        if(pixbuf && (entry->rotation != 0))
         {
-            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);
-        if(pixbuf)
+        RsttoNavigatorEntry *entry = navigator->file_iter->data;
+        if(pixbuf && (entry->rotation != 0))
         {
-            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);
-        if(pixbuf)
+        RsttoNavigatorEntry *entry = navigator->file_iter->data;
+        if(pixbuf && (entry->rotation != 0))
         {
-            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);
-        if(pixbuf)
+        RsttoNavigatorEntry *entry = navigator->file_iter->data;
+        if(pixbuf && (entry->rotation != 0))
         {
-            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);
-        if(pixbuf)
+        RsttoNavigatorEntry *entry = navigator->file_iter->data;
+        if(pixbuf && (entry->rotation != 0))
         {
-            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