From 04ecde9f8e8b6d07410cae08e9637b9e7f3582a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 20 Jun 2010 03:40:54 +0200 Subject: [PATCH] [StButton] Cleanup left-over animation code StButton used to animate hover changes - the animation itself was removed in commit a4481b38d, but some related member variables were left in place. --- src/st/st-button.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/st/st-button.c b/src/st/st-button.c index 7fbc101d8..09190f445 100644 --- a/src/st/st-button.c +++ b/src/st/st-button.c @@ -54,8 +54,7 @@ enum PROP_LABEL, PROP_TOGGLE_MODE, - PROP_CHECKED, - PROP_TRANSITION_DURATION + PROP_CHECKED }; enum @@ -72,17 +71,11 @@ struct _StButtonPrivate { gchar *text; - guint8 old_opacity; - guint is_pressed : 1; guint is_hover : 1; guint is_checked : 1; guint is_toggle : 1; - gint transition_duration; - - ClutterAnimation *animation; - gint spacing; }; @@ -242,7 +235,6 @@ st_button_set_property (GObject *gobject, GParamSpec *pspec) { StButton *button = ST_BUTTON (gobject); - StButtonPrivate *priv = ST_BUTTON (gobject)->priv; switch (prop_id) { @@ -255,9 +247,6 @@ st_button_set_property (GObject *gobject, case PROP_CHECKED: st_button_set_checked (button, g_value_get_boolean (value)); break; - case PROP_TRANSITION_DURATION: - priv->transition_duration = g_value_get_int (value); - break; default: @@ -285,9 +274,6 @@ st_button_get_property (GObject *gobject, case PROP_CHECKED: g_value_set_boolean (value, priv->is_checked); break; - case PROP_TRANSITION_DURATION: - g_value_set_int (value, priv->transition_duration); - break; default: @@ -349,12 +335,6 @@ st_button_class_init (StButtonClass *klass) FALSE, G_PARAM_READWRITE); g_object_class_install_property (gobject_class, PROP_CHECKED, pspec); - pspec = g_param_spec_int ("transition-duration", - "Transition Duration", - "Duration of the state transition effect", - 0, G_MAXINT, 120, G_PARAM_READWRITE); - g_object_class_install_property (gobject_class, PROP_TRANSITION_DURATION, pspec); - /** * StButton::clicked: @@ -378,7 +358,6 @@ static void st_button_init (StButton *button) { button->priv = ST_BUTTON_GET_PRIVATE (button); - button->priv->transition_duration = 120; button->priv->spacing = 6; clutter_actor_set_reactive ((ClutterActor *) button, TRUE);