/[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 139 by twoaday, Wed Jan 11 12:19:41 2006 UTC revision 204 by twoaday, Wed Apr 26 06:37:23 2006 UTC
# Line 26  Line 26 
26  #include <windows.h>  #include <windows.h>
27  #include <time.h>  #include <time.h>
28    
29    #include "resource.h"
30  #include "wptGPG.h"  #include "wptGPG.h"
31  #include "wptCommonCtl.h"  #include "wptCommonCtl.h"
32  #include "wptKeylist.h"  #include "wptKeylist.h"
33  #include "wptNLS.h"  #include "wptNLS.h"
 #include "wptUTF8.h"  
34  #include "wptErrors.h"  #include "wptErrors.h"
35  #include "wptTypes.h"  #include "wptTypes.h"
36  #include "wptW32API.h"  #include "wptW32API.h"
37    #include "wptVersion.h"
38    
39    
40  /* Is the given signature an user-id signature? */  /* Is the given signature an user-id signature? */
# Line 56  siglist_build (listview_ctrl_t * lv, HWN Line 57  siglist_build (listview_ctrl_t * lv, HWN
57          {5,  68, (char *)_("Expiration")},          {5,  68, (char *)_("Expiration")},
58          {6,  56, (char *)_("Algorithm")},          {6,  56, (char *)_("Algorithm")},
59          {0,   0, NULL}          {0,   0, NULL}
60      };        };
61      int j, rc = 0;      int j, rc = 0;
62            
63      rc = listview_new (&c);      rc = listview_new (&c);
# Line 66  siglist_build (listview_ctrl_t * lv, HWN Line 67  siglist_build (listview_ctrl_t * lv, HWN
67      for  (j=0; implist[j].fieldname != NULL; j++)      for  (j=0; implist[j].fieldname != NULL; j++)
68          listview_add_column (c, &implist[j]);          listview_add_column (c, &implist[j]);
69      listview_set_ext_style (c);      listview_set_ext_style (c);
70        listview_del_all_items (c);
71      *lv = c;      *lv = c;
72      return 0;      return 0;
73  }  }
# Line 145  siglist_add_key (listview_ctrl_t lv, gpg Line 147  siglist_add_key (listview_ctrl_t lv, gpg
147      else      else
148          attr = uid->uid;          attr = uid->uid;
149      if (attr && strlen (attr)) {      if (attr && strlen (attr)) {
150          char *uid_utf8 = utf8_to_wincp (attr, strlen (attr));          char *p = uid? m_strdup (attr) : indent_string (attr, 2);
         char *p = uid? m_strdup (uid_utf8) : indent_string (uid_utf8, 2);  
151          listview_add_sub_item (lv, pos, 0, p);          listview_add_sub_item (lv, pos, 0, p);
         free (uid_utf8);  
152          free_if_alloc (p);          free_if_alloc (p);
153      }      }
154      else {      else {

Legend:
Removed from v.139  
changed lines
  Added in v.204

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26