[Pkg-sugar-commit] [sugar-artwork] 06/10: Gtk 3.14 regressions: checked state for checkboxes and radiobuttons
Jonas Smedegaard
dr at jones.dk
Mon Jun 15 00:01:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v0.105.1
in repository sugar-artwork.
commit 562d650949129d894f6a769f9f0d8a5ca1c449db
Author: Sam Parkinson <sam.parkinson3 at gmail.com>
Date: Fri May 15 20:17:03 2015 +1000
Gtk 3.14 regressions: checked state for checkboxes and radiobuttons
Checkable things use the :checked state instead of the :active state now.
This commit adapts the sugar theme to use this for the checkboxes and
radiobuttons, while keeping the old :active states for older versions.
---
gtk3/theme/gtk-widgets.css.em | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index aedff0b..a06f1bb 100644
--- a/gtk3/theme/gtk-widgets.css.em
+++ b/gtk3/theme/gtk-widgets.css.em
@@ -731,14 +731,20 @@ SugarPaletteWindowWidget .check {
.radio:active,
.radio row:selected:active,
-.radio row:selected:focused:active {
+.radio row:selected:focused:active,
+.radio:checked,
+.radio row:selected:checked,
+.radio row:selected:focused:checked {
background-image: url("assets/radio-active.svg");
-gtk-icon-source: url("assets/radio-active.svg");
}
.radio:active:selected,
.radio:selected row:selected:active,
-.radio:selected row:selected:focused:active {
+.radio:selected row:selected:focused:active,
+.radio:checked:selected,
+.radio:selected row:selected:checked,
+.radio:selected row:selected:focused:checked {
background-image: url("assets/radio-active-selected.svg");
-gtk-icon-source: url("assets/radio-active-selected.svg");
}
@@ -760,14 +766,20 @@ SugarPaletteWindowWidget .check {
.check:active,
.check row:selected:active,
-.check row:selected:focused:active {
+.check row:selected:focused:active,
+.check:checked,
+.check row:selected:checked,
+.check row:selected:focused:checked {
background-image: url("assets/checkbox-checked.svg");
-gtk-icon-source: url("assets/checkbox-checked.svg");
}
.check:active:selected,
.check:selected row:selected:active,
-.check:selected row:selected:focused:active {
+.check:selected row:selected:focused:active,
+.check:checked:selected,
+.check:selected row:selected:checked,
+.check:selected row:selected:focused:checked {
background-image: url("assets/checkbox-checked-selected.svg");
-gtk-icon-source: url("assets/checkbox-checked-selected.svg");
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-artwork.git
More information about the pkg-sugar-commit
mailing list