gnome-games r8132 - trunk/aisleriot



Author: jclinton
Date: Tue Oct 21 19:43:31 2008
New Revision: 8132
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8132&view=rev

Log:
Small coding style fix up

Modified:
   trunk/aisleriot/card-cache.c

Modified: trunk/aisleriot/card-cache.c
==============================================================================
--- trunk/aisleriot/card-cache.c	(original)
+++ trunk/aisleriot/card-cache.c	Tue Oct 21 19:43:31 2008
@@ -224,18 +224,17 @@
   if (highlighted)
     index *= 2;
 
-  if (priv->cards[index] == NULL)
-    {
-      ClutterActor *tex = g_object_ref_sink (clutter_texture_new ());
-      GdkPixbuf *pixbuf
-        = games_card_images_get_card_pixbuf_by_id (priv->card_images,
-                                                   card_id,
-                                                   highlighted);
+  if (priv->cards[index] == NULL) {
+    ClutterActor *tex = g_object_ref_sink (clutter_texture_new ());
+    GdkPixbuf *pixbuf
+      = games_card_images_get_card_pixbuf_by_id (priv->card_images,
+                                                 card_id,
+                                                 highlighted);
 
-      gtk_clutter_texture_set_from_pixbuf (CLUTTER_TEXTURE (tex), pixbuf);
+    gtk_clutter_texture_set_from_pixbuf (CLUTTER_TEXTURE (tex), pixbuf);
 
-      priv->cards[index] = tex;
-    }
+    priv->cards[index] = tex;
+  }
 
   return priv->cards[index];
 }



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