[gnome-robots] Code cleanup as per gnome coding conventions



commit e2a90563f860f41714d77e8c59cf7151221a8de2
Author: Sahil Sareen <sahil sareen hotmail com>
Date:   Tue Oct 21 18:01:08 2014 +0530

    Code cleanup as per gnome coding conventions
    
    Code convention fixes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738927

 src/gameconfig.c           |    2 +-
 src/games-scores-backend.c |    2 +-
 src/games-scores-dialog.c  |    2 +-
 src/gnome-robots.c         |    2 +-
 src/keyboard.c             |    4 ++--
 5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gameconfig.c b/src/gameconfig.c
index 28262df..18484b0 100644
--- a/src/gameconfig.c
+++ b/src/gameconfig.c
@@ -91,7 +91,7 @@ load_config (gchar * fname)
   gcfg->description = g_string_new (bpstart2);
   g_free (bpstart2);
 
-  while (fgets (buffer, sizeof(buffer), fp) != NULL) {
+  while (fgets (buffer, sizeof (buffer), fp) != NULL) {
     if (strlen (buffer) < 3)
       continue;
 
diff --git a/src/games-scores-backend.c b/src/games-scores-backend.c
index 5b22534..26e2f93 100644
--- a/src/games-scores-backend.c
+++ b/src/games-scores-backend.c
@@ -305,7 +305,7 @@ games_scores_backend_set_scores (GamesScoresBackend * self, GList * list)
       break;
     case GAMES_SCORES_STYLE_TIME_DESCENDING:
     case GAMES_SCORES_STYLE_TIME_ASCENDING:
-      rscore = games_score_get_value_as_time(d);
+      rscore = games_score_get_value_as_time (d);
       break;
     default:
       g_assert_not_reached ();
diff --git a/src/games-scores-dialog.c b/src/games-scores-dialog.c
index ec53ecb..f65b161 100644
--- a/src/games-scores-dialog.c
+++ b/src/games-scores-dialog.c
@@ -306,7 +306,7 @@ void games_scores_dialog_set_category_description (GamesScoresDialog *self,
   lstr = g_strdup_printf ("<b>%s</b>", description);
   gtk_label_set_markup (GTK_LABEL (self->priv->label), lstr);
   gtk_label_set_use_underline (GTK_LABEL (self->priv->label), TRUE);
-  g_free(lstr);
+  g_free (lstr);
 }
 
 /**
diff --git a/src/gnome-robots.c b/src/gnome-robots.c
index f96ef48..f0d8706 100644
--- a/src/gnome-robots.c
+++ b/src/gnome-robots.c
@@ -446,7 +446,7 @@ activate (GtkApplication *app, gpointer user_data)
 
   init_game ();
 
-  g_settings_sync();
+  g_settings_sync ();
 }
 
 /**
diff --git a/src/keyboard.c b/src/keyboard.c
index d473241..f1bae3d 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -88,10 +88,10 @@ keyboard_cb (GtkWidget * widget, GdkEventKey * event, gpointer data)
   if (event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK))
     return FALSE;
 
-  keyval = toupper(event->keyval);
+  keyval = toupper (event->keyval);
 
   for (i = 0; i < 12; ++i) {
-    if (keyval == toupper(control_keys[i])) {
+    if (keyval == toupper (control_keys[i])) {
       game_keypress (i);
       return TRUE;
     }


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