Skip to content
Permalink
Browse files
Fix treeview background, fixes #4855
This also therefore fixes #4857

This also introduces the requirement of using gi.repository.Gtk
during build time of sugar artwork.
  • Loading branch information
samdroid-apps committed Jun 23, 2015
1 parent 7e27b75 commit 813a2d7
Showing 1 changed file with 11 additions and 2 deletions.
@@ -1,5 +1,10 @@
${
import math
from gi.repository import Gtk

gtk_major = int(Gtk.get_major_version())
gtk_minor = int(Gtk.get_minor_version())
treeview_pseudo_element = gtk_major >= 3 and gtk_minor > 8

def my_floor(num):
return int(math.floor(num))
@@ -221,10 +226,14 @@ column-header .button:hover:active {
border-width: 0px;
}

GtkTreeView row:nth-child(even) {
$[if treeview_pseudo_element] GtkTreeView row:even
$[else] GtkTreeView row:nth-child(even)
$[end if] {
background-color: @row_even;
}
GtkTreeView row:nth-child(odd) {
$[if treeview_pseudo_element] GtkTreeView row:odd
$[else] GtkTreeView row:nth-child(odd)
$[end if] {
background-color: @row_odd;
}

0 comments on commit 813a2d7

Please sign in to comment.