summaryrefslogtreecommitdiff
path: root/gtk/gtkswitch.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-04 18:55:51 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-17 08:59:19 +0200
commit04c5fdaca675e324ca3c5fab0c4fac4b579d0d41 (patch)
treefc54880e3b04cfd48d5b5abc81cf36f490a08b43 /gtk/gtkswitch.c
parentdcd54e20d14be57a9d080e87a47bbef8d2271c05 (diff)
downloadgtk+-04c5fdaca675e324ca3c5fab0c4fac4b579d0d41.tar.gz
css: Remove old animation code
Deprecate public API where appropriate and make it no-ops. Remove all calls to it. Get rid of the 'transition' css property. For now, this means spinners don't animate anymore.
Diffstat (limited to 'gtk/gtkswitch.c')
-rw-r--r--gtk/gtkswitch.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index d81a68cca0..b3ed707d78 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -1021,10 +1021,7 @@ gtk_switch_set_active (GtkSwitch *sw,
if (priv->is_active != is_active)
{
AtkObject *accessible;
- GtkWidget *widget;
- GtkStyleContext *context;
- widget = GTK_WIDGET (sw);
priv->is_active = is_active;
g_object_notify_by_pspec (G_OBJECT (sw), switch_props[PROP_ACTIVE]);
@@ -1038,14 +1035,6 @@ gtk_switch_set_active (GtkSwitch *sw,
accessible = gtk_widget_get_accessible (GTK_WIDGET (sw));
atk_object_notify_state_change (accessible, ATK_STATE_CHECKED, priv->is_active);
- if (gtk_widget_get_realized (widget))
- {
- context = gtk_widget_get_style_context (widget);
- gtk_style_context_notify_state_change (context,
- gtk_widget_get_window (widget),
- NULL, GTK_STATE_ACTIVE, is_active);
- }
-
if (priv->is_active)
gtk_widget_set_state_flags (GTK_WIDGET (sw), GTK_STATE_FLAG_ACTIVE, FALSE);
else