From: David King Date: Tue, 22 Sep 2009 17:06:51 +0000 (+0200) Subject: HildonAnimationActor: make the "show" parameter a gboolean X-Git-Url: http://git.maemo.org/git/?p=hildon;a=commitdiff_plain;h=def342ec2f575672c9d934add737213369bd693d HildonAnimationActor: make the "show" parameter a gboolean * 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) --- diff --git a/ChangeLog b/ChangeLog index 6d74b30..5945fe2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2009-07-02 David King + + * 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 Do not return gboolean in GtkButton:clicked signal handlers diff --git a/hildon/hildon-animation-actor-private.h b/hildon/hildon-animation-actor-private.h index 6ab3763..dbdb208 100644 --- a/hildon/hildon-animation-actor-private.h +++ b/hildon/hildon-animation-actor-private.h @@ -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 diff --git a/hildon/hildon-animation-actor.c b/hildon/hildon-animation-actor.c index 834c437..beaf8f5 100644 --- a/hildon/hildon-animation-actor.c +++ b/hildon/hildon-animation-actor.c @@ -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); diff --git a/hildon/hildon-animation-actor.h b/hildon/hildon-animation-actor.h index a92e5c2..884de15 100644 --- a/hildon/hildon-animation-actor.h +++ b/hildon/hildon-animation-actor.h @@ -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);