HildonAnimationActor: make the "show" parameter a gboolean
authorDavid King <davidk@openismus.com>
Tue, 22 Sep 2009 17:06:51 +0000 (19:06 +0200)
committerAlberto Garcia <agarcia@igalia.com>
Tue, 22 Sep 2009 17:06:51 +0000 (19:06 +0200)
* hildon/hildon-animation-actor-private.h
(HildonAnimationActorPrivate)
* hildon/hildon-animation-actor.c (hildon_animation_actor_show)
(hildon_animation_actor_hide)
* hildon/hildon-animation-actor.h
(hildon_animation_actor_set_show_full)
(hildon_animation_actor_set_show): Change "show" parameter type from
gint to gboolean.

Fixes: MB#4696 (hildon_animation_actor_set_show() gint argument should
be a gboolean)

ChangeLog
hildon/hildon-animation-actor-private.h
hildon/hildon-animation-actor.c
hildon/hildon-animation-actor.h

index 6d74b30..5945fe2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2009-07-02  David King  <davidk@openismus.com>
+
+       * hildon/hildon-animation-actor-private.h
+       (HildonAnimationActorPrivate)
+       * hildon/hildon-animation-actor.c (hildon_animation_actor_show)
+       (hildon_animation_actor_hide)
+       * hildon/hildon-animation-actor.h
+       (hildon_animation_actor_set_show_full)
+       (hildon_animation_actor_set_show): Change "show" parameter type from
+       gint to gboolean.
+
+       Fixes: MB#4696 (hildon_animation_actor_set_show() gint argument should
+       be a gboolean)
+
 2009-09-18  Claudio Saavedra  <csaavedra@igalia.com>
 
        Do not return gboolean in GtkButton:clicked signal handlers
index 6ab3763..dbdb208 100644 (file)
@@ -35,45 +35,45 @@ typedef struct                                  _HildonAnimationActorPrivate Hil
 
 struct                                          _HildonAnimationActorPrivate
 {
-    guint   ready : 1;
+    guint      ready : 1;
 
-    guint   set_show : 1;
-    guint   set_position : 1;
-    guint   set_rotation : 3;
-    guint   set_scale : 1;
-    guint   set_anchor : 1;
-    guint   set_parent : 1;
+    guint      set_show : 1;
+    guint      set_position : 1;
+    guint      set_rotation : 3;
+    guint      set_scale : 1;
+    guint      set_anchor : 1;
+    guint      set_parent : 1;
 
-    guint   show;
-    guint   opacity;
+    gboolean   show;
+    guint      opacity;
 
-    guint   gravity;
-    guint   anchor_x;
-    guint   anchor_y;
+    guint      gravity;
+    guint      anchor_x;
+    guint      anchor_y;
 
-    guint   position_x;
-    guint   position_y;
-    guint   depth;
+    guint      position_x;
+    guint      position_y;
+    guint      depth;
 
-    guint32 x_rotation_angle;
-    guint   x_rotation_y;
-    guint   x_rotation_z;
+    guint32    x_rotation_angle;
+    guint      x_rotation_y;
+    guint      x_rotation_z;
 
-    guint32 y_rotation_angle;
-    guint   y_rotation_x;
-    guint   y_rotation_z;
+    guint32    y_rotation_angle;
+    guint      y_rotation_x;
+    guint      y_rotation_z;
 
-    guint32 z_rotation_angle;
-    guint   z_rotation_x;
-    guint   z_rotation_y;
+    guint32    z_rotation_angle;
+    guint      z_rotation_x;
+    guint      z_rotation_y;
 
-    guint32 scale_x;
-    guint32 scale_y;
+    guint32    scale_x;
+    guint32    scale_y;
 
-    GtkWindow* parent;
-    gulong  parent_map_event_cb_id;
+    GtkWindow *parent;
+    gulong     parent_map_event_cb_id;
 
-    gulong  map_event_cb_id;
+    gulong     map_event_cb_id;
 };
 
 G_END_DECLS
index 834c437..beaf8f5 100644 (file)
@@ -264,7 +264,7 @@ hildon_animation_actor_show                    (GtkWidget *widget)
     HildonAnimationActor        *self = HILDON_ANIMATION_ACTOR (widget);
 
     GTK_WIDGET_CLASS (hildon_animation_actor_parent_class)->show (widget);
-    hildon_animation_actor_set_show (self, 1);
+    hildon_animation_actor_set_show (self, TRUE);
 }
 
 static void
@@ -272,7 +272,7 @@ hildon_animation_actor_hide                    (GtkWidget *widget)
 {
     HildonAnimationActor        *self = HILDON_ANIMATION_ACTOR (widget);
 
-    hildon_animation_actor_set_show (self, 0);
+    hildon_animation_actor_set_show (self, FALSE);
     GTK_WIDGET_CLASS (hildon_animation_actor_parent_class)->hide (widget);
 }
 
@@ -622,7 +622,7 @@ hildon_animation_actor_send_message (HildonAnimationActor *self,
  **/
 void
 hildon_animation_actor_set_show_full (HildonAnimationActor *self,
-                                     gint show,
+                                     gboolean show,
                                      gint opacity)
 {
     HildonAnimationActorPrivate
@@ -668,7 +668,7 @@ hildon_animation_actor_set_show_full (HildonAnimationActor *self,
  **/
 void
 hildon_animation_actor_set_show (HildonAnimationActor *self,
-                                gint show)
+                                gboolean show)
 {
     HildonAnimationActorPrivate
                       *priv = HILDON_ANIMATION_ACTOR_GET_PRIVATE (self);
index a92e5c2..884de15 100644 (file)
@@ -104,11 +104,11 @@ hildon_animation_actor_send_message (HildonAnimationActor *self,
                                      guint32 l4);
 void
 hildon_animation_actor_set_show_full (HildonAnimationActor *self,
-                                     gint show,
+                                     gboolean show,
                                      gint opacity);
 void
 hildon_animation_actor_set_show (HildonAnimationActor *self,
-                                gint show);
+                                gboolean show);
 void
 hildon_animation_actor_set_opacity (HildonAnimationActor *self,
                                    gint opacity);