[Xfce4-commits] <mousepad:master> * mousepad/mousepad-document.c: Swap the colors of readonly and modified tabs. Red is modified and green readonly.

Nick Schermer noreply at xfce.org
Sat May 5 21:31:17 CEST 2012


Updating branch refs/heads/master
         to 73c4f9cde2db6826c690d2b19eab715bd493c704 (commit)
       from e6deae974c002619ee11c3d68d92ec768b235ac5 (commit)

commit 73c4f9cde2db6826c690d2b19eab715bd493c704
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Mar 10 19:52:22 2008 +0000

    	* mousepad/mousepad-document.c: Swap the colors of readonly and
    	  modified tabs. Red is modified and green readonly.
    
    (Old svn revision: 26674)

 ChangeLog                    |    6 ++++++
 mousepad/mousepad-document.c |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fcdbe88..b864971 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-10	Nick Schermer <nick at xfce.org>
+
+	* mousepad/mousepad-document.c: Swap the colors of readonly and
+	  modified tabs. Red is modified and green readonly.
+
+
 2008-03-02	Nick Schermer <nick at xfce.org>
 
 	* mousepad/mousepad-file.c: Don't set an error and return false on
diff --git a/mousepad/mousepad-document.c b/mousepad/mousepad-document.c
index fefab92..770bf88 100644
--- a/mousepad/mousepad-document.c
+++ b/mousepad/mousepad-document.c
@@ -428,9 +428,9 @@ mousepad_document_label_color (MousepadDocument *document)
     {
       /* label color */
       if (gtk_text_buffer_get_modified (document->buffer))
-        color = &green;
-      else if (mousepad_file_get_read_only (document->file))
         color = &red;
+      else if (mousepad_file_get_read_only (document->file))
+        color = &green;
       else
         color = NULL;
        


More information about the Xfce4-commits mailing list