[gnome-games] Trivial code reformating



commit 27c0c01d58622cf4b7c378c5eb596d9577ec71a7
Author: Guillaume Beland <guillaume beland gmail com>
Date:   Wed Aug 12 20:23:40 2009 -0400

    Trivial code reformating

 gnibbles/boni.c        |    2 +-
 gnibbles/ggz-network.c |    2 +-
 gnibbles/gnibbles.c    |    2 +-
 gnibbles/main.c        |    4 ++--
 gnibbles/scoreboard.h  |    4 ++--
 gnibbles/warpmanager.c |    9 ++++-----
 gnibbles/worm.c        |    5 ++---
 gnibbles/worm.h        |    2 +-
 8 files changed, 14 insertions(+), 16 deletions(-)
---
diff --git a/gnibbles/boni.c b/gnibbles/boni.c
index c46f167..ccec913 100644
--- a/gnibbles/boni.c
+++ b/gnibbles/boni.c
@@ -94,7 +94,7 @@ gnibbles_boni_add_bonus (GnibblesBoni * boni, gint t_x, gint t_y,
 
 void
 gnibbles_boni_add_bonus_final (GnibblesBoni * boni, gint t_x, gint t_y,
-			                         gint t_type, gint t_fake, gint t_countdown)
+                               gint t_type, gint t_fake, gint t_countdown)
 {
   if (boni->numbonuses == MAXBONUSES)
     return;
diff --git a/gnibbles/ggz-network.c b/gnibbles/ggz-network.c
index 12818d4..fb17545 100644
--- a/gnibbles/ggz-network.c
+++ b/gnibbles/ggz-network.c
@@ -321,7 +321,7 @@ network_game_move (guint x)
 
 void
 network_add_bonus (gint t_x, gint t_y,
-		   gint t_type, gint t_fake, gint t_countdown)
+                   gint t_type, gint t_fake, gint t_countdown)
 {
   if (ggz_write_int (fd, GN_REQ_BONI) < 0
       || ggz_write_int (fd, t_x) < 0
diff --git a/gnibbles/gnibbles.c b/gnibbles/gnibbles.c
index 8581098..d0b98a7 100644
--- a/gnibbles/gnibbles.c
+++ b/gnibbles/gnibbles.c
@@ -422,7 +422,7 @@ gnibbles_log_score (GtkWidget * window)
 
 void
 gnibbles_add_spec_bonus (gint t_x, gint t_y,
-			                   gint t_type, gint t_fake, gint t_countdown)
+                         gint t_type, gint t_fake, gint t_countdown)
 {
   gnibbles_boni_add_bonus_final (boni, t_x, t_y, t_type, t_fake, t_countdown);
 }
diff --git a/gnibbles/main.c b/gnibbles/main.c
index f3f102a..f4b4a7a 100644
--- a/gnibbles/main.c
+++ b/gnibbles/main.c
@@ -265,7 +265,7 @@ key_press_cb (ClutterActor *actor, ClutterEvent *event, gpointer data)
 }
 
 static gboolean
-configure_event_cb (GtkWidget * widget, GdkEventConfigure * event, gpointer data)
+configure_event_cb (GtkWidget *widget, GdkEventConfigure *event, gpointer data)
 {
   int tilesize, ts_x, ts_y;
 
@@ -693,7 +693,7 @@ main_loop (gpointer data)
 }
 
 static gboolean
-show_cursor_cb (GtkWidget * widget, GdkEventMotion * event, gpointer data)
+show_cursor_cb (GtkWidget * widget, GdkEventMotion *event, gpointer data)
 {
   show_cursor ();
   return FALSE;
diff --git a/gnibbles/scoreboard.h b/gnibbles/scoreboard.h
index ec85179..2f44200 100644
--- a/gnibbles/scoreboard.h
+++ b/gnibbles/scoreboard.h
@@ -37,8 +37,8 @@ typedef struct {
 GnibblesScoreboard *gnibbles_scoreboard_new (GtkWidget * t_statusbar);
 
 void gnibbles_scoreboard_register (GnibblesScoreboard * scoreboard,
-				   GnibblesWorm * t_worm,
-			           gchar * colorname);
+                                   GnibblesWorm * t_worm,
+			                             gchar * colorname);
 
 void gnibbles_scoreboard_update (GnibblesScoreboard * scoreboard);
 
diff --git a/gnibbles/warpmanager.c b/gnibbles/warpmanager.c
index ea232f0..1a4078e 100644
--- a/gnibbles/warpmanager.c
+++ b/gnibbles/warpmanager.c
@@ -66,7 +66,7 @@ gnibbles_warpmanager_destroy (GnibblesWarpManager * warpmanager)
 
 void
 gnibbles_warpmanager_add_warp (GnibblesWarpManager * warpmanager, gint t_x,
-			                         gint t_y, gint t_wx, gint t_wy)
+                               gint t_y, gint t_wx, gint t_wy)
 {
   gint i, add = 1, draw = 0;
 
@@ -113,7 +113,7 @@ gnibbles_warpmanager_add_warp (GnibblesWarpManager * warpmanager, gint t_x,
 
 void
 gnibbles_warpmanager_worm_change_pos (GnibblesWarpManager * warpmanager,
-				                              GnibblesWorm * worm)
+                                      GnibblesWorm * worm)
 {
   int i, x, y, good;
 
@@ -166,9 +166,8 @@ gnibbles_warpmanager_resize (GnibblesWarpManager *warpmanager, gint newtile)
     clutter_actor_set_position (warpmanager->warps[i]->actor,
                                 (x_pos / properties->tilesize) * newtile,
                                 (y_pos / properties->tilesize) * newtile);
-    gtk_clutter_texture_set_from_pixbuf (CLUTTER_TEXTURE (warpmanager->warps[i]->actor), 
-                                         boni_pixmaps[WARP],
-                                         &err);
+    gtk_clutter_texture_set_from_pixbuf 
+      (CLUTTER_TEXTURE (warpmanager->warps[i]->actor), boni_pixmaps[WARP], &err);
     if (err)
       gnibbles_error (err->message);
   }
diff --git a/gnibbles/worm.c b/gnibbles/worm.c
index a043046..f224616 100644
--- a/gnibbles/worm.c
+++ b/gnibbles/worm.c
@@ -269,8 +269,7 @@ gnibbles_worm_get_tail_direction (GnibblesWorm *worm)
 static gboolean
 gnibbles_worm_reverse (gpointer data)
 {
-  GnibblesWorm *worm;
-  worm = (GnibblesWorm *) data;
+  GnibblesWorm *worm = (GnibblesWorm *) data;
 
   worm->list = g_list_reverse (worm->list);
   
@@ -495,7 +494,7 @@ gnibbles_worm_reset (ClutterAnimation *anim, GnibblesWorm *worm)
 
 GnibblesWorm*
 gnibbles_worm_new (guint number, guint t_xhead,
-			                    guint t_yhead, gint t_direction)
+                   guint t_yhead, gint t_direction)
 {
   GnibblesWorm *worm = g_new (GnibblesWorm, 1);
  
diff --git a/gnibbles/worm.h b/gnibbles/worm.h
index aad0a4d..b40987c 100644
--- a/gnibbles/worm.h
+++ b/gnibbles/worm.h
@@ -58,7 +58,7 @@ void worm_set_direction (int worm, int dir);
 void worm_handle_direction (int worm, int dir);
 
 GnibblesWorm* gnibbles_worm_new (guint number, guint t_xhead,
-			                             guint t_yhead, gint t_direction);
+                                 guint t_yhead, gint t_direction);
 
 void gnibbles_worm_show (GnibblesWorm *worm);
 gboolean gnibbles_worm_handle_keypress (GnibblesWorm * worm, guint keyval);



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