/[winpt]/trunk/Src/wptSigList.cpp
ViewVC logotype

Diff of /trunk/Src/wptSigList.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 298 by twoaday, Sun Nov 5 08:57:45 2006 UTC revision 299 by twoaday, Sun Mar 18 19:58:12 2007 UTC
# Line 13  Line 13 
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * General Public License for more details.   * General Public License for more details.
  *  
  * You should have received a copy of the GNU General Public License  
  * along with WinPT; if not, write to the Free Software Foundation,  
  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA  
16   */   */
17    
18  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
# Line 48  Line 44 
44  static void  static void
45  siglist_build (listview_ctrl_t *lv, HWND ctrl)  siglist_build (listview_ctrl_t *lv, HWND ctrl)
46  {  {
47      struct listview_ctrl_s *c;      listview_ctrl_t c;
48      struct listview_column_s implist[] = {      struct listview_column_s implist[] = {
49          {0, 240, (char *)_("User ID")},          {0, 240, (char *)_("User ID")},
50          {1,  50, (char *)_("Valid")},          {1,  50, (char *)_("Valid")},
# Line 104  add_keysig_item (listview_ctrl_t ctx, in Line 100  add_keysig_item (listview_ctrl_t ctx, in
100  {  {
101      LV_ITEM lvi;      LV_ITEM lvi;
102    
103      memset (&lvi, 0, sizeof lvi);      memset (&lvi, 0, sizeof (lvi));
104      lvi.iItem = pos;      lvi.iItem = pos;
105      lvi.lParam = (LPARAM)ks;      lvi.lParam = (LPARAM)ks;
106      lvi.mask = LVIF_PARAM;      lvi.mask = LVIF_PARAM;
# Line 126  siglist_add_key (listview_ctrl_t lv, str Line 122  siglist_add_key (listview_ctrl_t lv, str
122      const char *s;      const char *s;
123      char t[128];      char t[128];
124      int no_uid = 0;      int no_uid = 0;
125      int rc = 0;      int rc;
126    
127      if (ks && !IS_UID_CERT (ks->sig_class))      if (ks && !IS_UID_CERT (ks->sig_class))
128          return 0;          return 0;
# Line 158  siglist_add_key (listview_ctrl_t lv, str Line 154  siglist_add_key (listview_ctrl_t lv, str
154      if (uid)      if (uid)
155          return 0;          return 0;
156    
157        /* TRANSLATORS: these strings should be in capital letters. */
158      switch (gpgme_err_code (ks->status)) {      switch (gpgme_err_code (ks->status)) {
159      case GPG_ERR_NO_ERROR:     s = "YES";   break;      case GPG_ERR_NO_ERROR:     s = _("YES");   break;
160      case GPG_ERR_NO_PUBKEY:    s = "NOKEY"; break;      case GPG_ERR_NO_PUBKEY:    s = _("NOKEY"); break;
161      case GPG_ERR_BAD_SIGNATURE:s = "NO";    break;      case GPG_ERR_BAD_SIGNATURE:s = _("NO");    break;
162      default:                   s = "ERROR"; break;      default:                   s = _("ERROR"); break;
163      }      }
164      if (no_uid)      if (no_uid)
165          s = "NOKEY";          s = _("NOKEY");
166      listview_add_sub_item (lv, pos, SL_COL_VALID, s);      listview_add_sub_item (lv, pos, SL_COL_VALID, s);
167    
168      switch (ks->sig_class) {      switch (ks->sig_class) {

Legend:
Removed from v.298  
changed lines
  Added in v.299

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26