Commit d26a4b55 authored by Benjamin Otte's avatar Benjamin Otte

spinner: Active spinners should be :checked, not :active

If that sounds confusing, it's because GTK and CSS can sometimes not
agree on naming.

:active for CSS means that a button is currently pressed on an element.
And that is clearly not the case for spinning spinners.
parent 8355ee30
......@@ -252,10 +252,10 @@ gtk_spinner_set_active (GtkSpinner *spinner,
if (active)
gtk_widget_set_state_flags (GTK_WIDGET (spinner),
GTK_STATE_FLAG_ACTIVE, FALSE);
GTK_STATE_FLAG_CHECKED, FALSE);
else
gtk_widget_unset_state_flags (GTK_WIDGET (spinner),
GTK_STATE_FLAG_ACTIVE);
GTK_STATE_FLAG_CHECKED);
}
}
......
......@@ -214,7 +214,7 @@ spinner {
background: none;
opacity: 0; // non spinning spinner makes no sense
-gtk-icon-source: -gtk-icontheme('process-working-symbolic');
&:active {
&:checked {
opacity: 1;
animation: spin 1s linear infinite;
&:insensitive {
......
This diff is collapsed.
This diff is collapsed.
......@@ -167,7 +167,7 @@ spinner {
background-color: blue;
opacity: 0; // non spinning spinner makes no sense
-gtk-icon-source: -gtk-icontheme('process-working-symbolic');
&:active {
&:checked {
opacity: 1;
animation: spin 1s linear infinite;
&:insensitive {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment