2007-12-09 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Sun, 9 Dec 2007 08:53:06 +0000 (08:53 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Sun, 9 Dec 2007 08:53:06 +0000 (08:53 +0000)
* tests/test-events.c (input_cb):
* tests/test-text.c (main): Fix compiler errors. (#592,
Gwenole Beauchesne)

ChangeLog
tests/test-events.c
tests/test-text.c

index d9bf044..9c58322 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2007-12-09  Emmanuele Bassi  <ebassi@openedhand.com>
 
+       * tests/test-events.c (input_cb):
+       * tests/test-text.c (main): Fix compiler errors. (#592,
+       Gwenole Beauchesne)
+
+2007-12-09  Emmanuele Bassi  <ebassi@openedhand.com>
+
        * clutter/clutter-actor.c: Document the values for full
        transparency and full opacity in the set_opacity()
        method. (#662)
index a286ce5..ae5a03a 100644 (file)
@@ -142,7 +142,7 @@ input_cb (ClutterActor    *actor,
       printf("[%s] DELETE", source);
       break;
     case CLUTTER_NOTHING:
-      return;
+      return FALSE;
     }
 
   if (clutter_event_get_source (event) == actor)
index 588b437..e1db839 100644 (file)
@@ -1,5 +1,8 @@
 #include <clutter/clutter.h>
 
+#include <stdlib.h>
+#include <string.h>
+
 #define STAGE_WIDTH  640
 #define STAGE_HEIGHT 480
 
@@ -10,8 +13,6 @@ int
 main (int argc, char *argv[])
 {
   ClutterActor    *stage;
-  gchar           *text;
-  gsize            size;
   ClutterColor     stage_color = { 0x00, 0x00, 0x00, 0xff };
   ClutterColor     label_color = { 0xff, 0xff, 0xff, 0xff };
 
@@ -22,18 +23,16 @@ main (int argc, char *argv[])
   clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
 
   {
-    gint    font_size;
-    gdouble scale;
-    gint    row, col;
+    gint row, col;
 
     for (row=0; row<ROWS; row++)
       for (col=0; col<COLS; col++)
         {
-          ClutterActor    *label;
+          ClutterActor *label;
           gchar font_name[64];
           gchar text[64];
-          gint    font_size = row+10;
-          gdouble scale = 0.17 + (1.5*col/COLS);
+          gint  font_size = row+10;
+          gdouble scale = 0.17 + (1.5 * col / COLS);
 
           sprintf (font_name, "Sans %ipx", font_size);
           sprintf (text, "OH");
@@ -49,8 +48,8 @@ main (int argc, char *argv[])
             {
               sprintf (font_name, "Sans 10px");
               sprintf (text, "%ipx", font_size);
-              if (row==0)
-                sprintf (text, "");
+              if (row == 0)
+                strcpy (text, "");
               font_size = 10;
               scale = 1.0;
             }