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.
This commit is contained in:
Benjamin Otte 2015-12-02 00:39:25 +01:00
parent 8355ee3053
commit d26a4b5555
6 changed files with 957 additions and 1125 deletions

View File

@ -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);
}
}

View File

@ -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 {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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 {

File diff suppressed because it is too large Load Diff