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

Stephan Arts stephan at xfce.org
Mon Nov 24 01:07:22 CET 2008


Author: stephan
Date: 2008-11-24 00:07:22 +0000 (Mon, 24 Nov 2008)
New Revision: 6192

Modified:
   ristretto/trunk/src/main_window.c
   ristretto/trunk/src/navigator.c
   ristretto/trunk/src/navigator.h
Log:
Make a distinction between modification and rotation



Modified: ristretto/trunk/src/main_window.c
===================================================================
--- ristretto/trunk/src/main_window.c	2008-11-23 23:57:08 UTC (rev 6191)
+++ ristretto/trunk/src/main_window.c	2008-11-24 00:07:22 UTC (rev 6192)
@@ -890,7 +890,7 @@
         
         for (iter = navigator->file_list; iter != NULL; iter = iter->next)
         {
-            if (rstto_navigator_entry_get_modified((RsttoNavigatorEntry *)iter->data))
+            if (rstto_navigator_entry_get_orientation_changed ((RsttoNavigatorEntry *)iter->data))
             {
                 modified_files = g_list_append (modified_files, iter->data);
             }
@@ -898,7 +898,7 @@
 
         if (modified_files)
         {
-            GtkWidget *dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_OK_CANCEL, _("One or more images have been modified, do you want to save the changes?")); 
+            GtkWidget *dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_OK_CANCEL, _("The orientation of one or more images has been modified, do you want to save the changes?")); 
             if (gtk_dialog_run (GTK_DIALOG(dialog)) == GTK_RESPONSE_OK)
             {
                 gtk_widget_hide(dialog);
@@ -1759,7 +1759,7 @@
         
         for (iter = navigator->file_list; iter != NULL; iter = iter->next)
         {
-            if (rstto_navigator_entry_get_modified((RsttoNavigatorEntry *)iter->data))
+            if (rstto_navigator_entry_get_orientation_changed ((RsttoNavigatorEntry *)iter->data))
             {
                 modified_files = g_list_append (modified_files, iter->data);
             }
@@ -1767,7 +1767,7 @@
 
         if (modified_files)
         {
-            GtkWidget *dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_OK_CANCEL, _("One or more images have been modified, do you want to save the changes?")); 
+            GtkWidget *dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_OK_CANCEL, _("The orientation of one or more images has been modified, do you want to save the changes?")); 
             if (gtk_dialog_run (GTK_DIALOG(dialog)) == GTK_RESPONSE_OK)
             {
                 gtk_widget_hide(dialog);

Modified: ristretto/trunk/src/navigator.c
===================================================================
--- ristretto/trunk/src/navigator.c	2008-11-23 23:57:08 UTC (rev 6191)
+++ ristretto/trunk/src/navigator.c	2008-11-24 00:07:22 UTC (rev 6192)
@@ -110,7 +110,7 @@
     gint                 x_offset;
     gint                 y_offset;
 
-    gboolean             modified;
+    gboolean             orientation_changed;
 };
 
 
@@ -1082,7 +1082,7 @@
         entry->src_pixbuf = gdk_pixbuf_rotate_simple(pixbuf, (360+(rotation-entry->rotation))%360);
     }
     entry->rotation = rotation;
-    entry->modified = TRUE;
+    entry->orientation_changed = TRUE;
     g_signal_emit(G_OBJECT(entry->navigator), rstto_navigator_signals[RSTTO_NAVIGATOR_SIGNAL_ENTRY_MODIFIED], 0, entry, NULL);
 }
 
@@ -1141,9 +1141,9 @@
 }
 
 gboolean
-rstto_navigator_entry_get_modified (RsttoNavigatorEntry *entry)
+rstto_navigator_entry_get_orientation_changed (RsttoNavigatorEntry *entry)
 {
-    return entry->modified;
+    return entry->orientation_changed;
 }
 
 gboolean

Modified: ristretto/trunk/src/navigator.h
===================================================================
--- ristretto/trunk/src/navigator.h	2008-11-23 23:57:08 UTC (rev 6191)
+++ ristretto/trunk/src/navigator.h	2008-11-24 00:07:22 UTC (rev 6192)
@@ -169,7 +169,7 @@
 rstto_navigator_open_folder(RsttoNavigator *navigator, const gchar *path, gboolean clear, GError **error);
 
 gboolean
-rstto_navigator_entry_get_modified (RsttoNavigatorEntry *entry);
+rstto_navigator_entry_get_orientation_changed (RsttoNavigatorEntry *entry);
 
 G_END_DECLS
 




More information about the Goodies-commits mailing list