Author: jflesch
Date: 2007-04-23 02:01:21 +0000 (Mon, 23 Apr 2007)
New Revision: 12894

Modified:
   trunk/apps/Thaw/src/thaw/plugins/index/Comment.java
   trunk/apps/Thaw/src/thaw/plugins/signatures/Identity.java
Log:
Always display the message written by the use it self, and don't allow to 
change the trust level on these messages

Modified: trunk/apps/Thaw/src/thaw/plugins/index/Comment.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/Comment.java 2007-04-23 01:57:45 UTC 
(rev 12893)
+++ trunk/apps/Thaw/src/thaw/plugins/index/Comment.java 2007-04-23 02:01:21 UTC 
(rev 12894)
@@ -181,10 +181,13 @@
                changeTrust.addActionListener(this);

                JPanel trustPanel = new JPanel(new BorderLayout(5, 5));
-               trustPanel.add(trust, BorderLayout.CENTER);
-               trustPanel.add(changeTrust, BorderLayout.EAST);

+               if (author.getX() == null) {
+                       trustPanel.add(trust, BorderLayout.CENTER);
+                       trustPanel.add(changeTrust, BorderLayout.EAST);
+               }

+
                JPanel bottomPanel = new JPanel(new BorderLayout());
                bottomPanel.add(sigPanel, BorderLayout.WEST);
                bottomPanel.add(new JLabel(""), BorderLayout.CENTER);

Modified: trunk/apps/Thaw/src/thaw/plugins/signatures/Identity.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/signatures/Identity.java   2007-04-23 
01:57:45 UTC (rev 12893)
+++ trunk/apps/Thaw/src/thaw/plugins/signatures/Identity.java   2007-04-23 
02:01:21 UTC (rev 12894)
@@ -108,6 +108,10 @@
                return y;
        }

+       public byte[] getX() {
+               return x;
+       }
+
        public String getTrustLevelStr() {
                int i;

@@ -190,6 +194,9 @@


        public boolean mustBeIgnored(Config config) {
+               if (x != null)
+                       return false;
+
                int min = Integer.parseInt(config.getValue("minTrustLevel"));

                return (trustLevel < min);


Reply via email to