[gedit] metadata-manager: improve slightly the coding style



commit 9a169dd67f1a5013b2a256656bed9b7768c187a0
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Apr 29 13:20:40 2015 +0200

    metadata-manager: improve slightly the coding style
    
    - No need to have two contiguous blank lines.
    - In a struct, put comments above the fields.

 gedit/gedit-metadata-manager.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-metadata-manager.c b/gedit/gedit-metadata-manager.c
index 728aa1e..9316ad4 100644
--- a/gedit/gedit-metadata-manager.c
+++ b/gedit/gedit-metadata-manager.c
@@ -26,7 +26,6 @@
 #include "gedit-debug.h"
 #include "gedit-dirs.h"
 
-
 /*
 #define GEDIT_METADATA_VERBOSE_DEBUG   1
 */
@@ -40,15 +39,16 @@ typedef struct _Item Item;
 
 struct _Item
 {
-       gint64           atime; /* time of last access in seconds since January 1, 1970 UTC */
+       /* Time of last access in seconds since January 1, 1970 UTC. */
+       gint64           atime;
 
        GHashTable      *values;
 };
 
 struct _GeditMetadataManager
 {
-       gboolean         values_loaded; /* It is true if the file
-                                          has been read */
+       /* It is true if the file has been read. */
+       gboolean         values_loaded;
 
        guint            timeout_id;
 
@@ -59,7 +59,6 @@ struct _GeditMetadataManager
 
 static gboolean gedit_metadata_manager_save (gpointer data);
 
-
 static GeditMetadataManager *gedit_metadata_manager = NULL;
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]