]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Zebra-color the divelist
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 4 Sep 2011 22:18:58 +0000 (15:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 4 Sep 2011 22:18:58 +0000 (15:18 -0700)
..as suggested by Nathan:

  "I also wanted to "zebra" color the divelist by setting the rules-hint
   to TRUE.  but I noticed it was already set explicitly to FALSE (even
   if this is the default).

   If this is just an accidental copy paste from some tutorial you can
   experiment (set it to TRUE) and see what you like most."

It was indeed just copy-paste from some tutorial, and the zebra-coloring
does look nicer, doesn't it?

Suggested-by: Nathan Samson <nathansamson@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
divelist.c

index 24eec8ce0f4f9bd81abef6ff40ad7aa28a8882e6..b2ad39d0ee67e85b2ea2a418e8022755a4e5cb19 100644 (file)
@@ -115,7 +115,7 @@ GtkWidget *create_dive_list(void)
 
        g_object_set(G_OBJECT(tree_view), "headers-visible", TRUE,
                                          "search-column", 0,
-                                         "rules-hint", FALSE,
+                                         "rules-hint", TRUE,
                                          NULL);
 
        g_signal_connect(selection, "changed", G_CALLBACK(selection_cb), model);