Author: jflesch
Date: 2007-07-30 02:52:06 +0000 (Mon, 30 Jul 2007)
New Revision: 14435

Modified:
   trunk/apps/Thaw/src/thaw/plugins/index/Comment.java
   trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java
Log:
Fix the index tree node background when using the look'n'feel GTK

Modified: trunk/apps/Thaw/src/thaw/plugins/index/Comment.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/Comment.java 2007-07-30 02:32:15 UTC 
(rev 14434)
+++ trunk/apps/Thaw/src/thaw/plugins/index/Comment.java 2007-07-30 02:52:06 UTC 
(rev 14435)
@@ -768,6 +768,9 @@

                String publicKey = index.getCommentPublicKey(); /* should be an 
SSK */

+               if (publicKey == null)
+                       return false;
+
                publicKey += "comment-"+Integer.toString(rev)+"/comment.xml";

                FCPClientGet get = new FCPClientGet(publicKey, 2 /* priority */,

Modified: trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java       2007-07-30 
02:32:15 UTC (rev 14434)
+++ trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java       2007-07-30 
02:52:06 UTC (rev 14435)
@@ -741,7 +741,7 @@
                                                                       final 
boolean leaf,
                                                                       final 
int row,
                                                                       final 
boolean hasFocus) {
-                       setBackgroundNonSelectionColor(tree.getBackground());
+                       setBackgroundNonSelectionColor(Color.WHITE);
                        setBackgroundSelectionColor(IndexTree.SELECTION_COLOR);
                        setTextNonSelectionColor(Color.BLACK);
                        setTextSelectionColor(Color.BLACK);


Reply via email to