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

Diff of /trunk/Src/wptClipEncryptDlg.cpp

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

revision 235 by twoaday, Tue Jun 6 13:37:59 2006 UTC revision 236 by twoaday, Wed Jun 28 06:59:30 2006 UTC
# Line 142  BOOL CALLBACK Line 142  BOOL CALLBACK
142  clip_encrypt_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)  clip_encrypt_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)
143  {  {
144      static listview_ctrl_t lv = NULL;      static listview_ctrl_t lv = NULL;
145        static int keys_sortby = 0;
146      gpg_keycache_t kc;      gpg_keycache_t kc;
147      gpgme_key_t *rset;      gpgme_key_t *rset;
148      gpgme_ctx_t ctx=NULL;      gpgme_ctx_t ctx=NULL;
# Line 176  clip_encrypt_dlg_proc (HWND dlg, UINT ms Line 177  clip_encrypt_dlg_proc (HWND dlg, UINT ms
177              notify->idFrom == IDC_ENCRYPT_KEYLIST)              notify->idFrom == IDC_ENCRYPT_KEYLIST)
178              PostMessage( dlg, WM_COMMAND, MAKEWPARAM( IDOK, 0 ), 0 );              PostMessage( dlg, WM_COMMAND, MAKEWPARAM( IDOK, 0 ), 0 );
179          if (notify && notify->code == LVN_COLUMNCLICK &&          if (notify && notify->code == LVN_COLUMNCLICK &&
180              notify->idFrom == IDC_ENCRYPT_KEYLIST ) {              notify->idFrom == IDC_ENCRYPT_KEYLIST) {
181              NMLISTVIEW *p = (LPNMLISTVIEW) lparam;              NMLISTVIEW *p = (LPNMLISTVIEW) lparam;
182              int sortby = 0;              int sortby = 0;
183    
# Line 187  clip_encrypt_dlg_proc (HWND dlg, UINT ms Line 188  clip_encrypt_dlg_proc (HWND dlg, UINT ms
188              case  4: sortby = KEY_SORT_VALIDITY; break;              case  4: sortby = KEY_SORT_VALIDITY; break;
189              default: sortby = KEY_SORT_USERID; break;              default: sortby = KEY_SORT_USERID; break;
190              }              }
191              keylist_sort (lv, sortby);              if ((keys_sortby & ~KEYLIST_SORT_DESC) == sortby)
192                    keys_sortby ^= KEYLIST_SORT_DESC;
193                else
194                    keys_sortby = sortby;
195                keylist_sort (lv, keys_sortby);
196          }          }
197          return TRUE;          return TRUE;
198                    
199      case WM_COMMAND:      case WM_COMMAND:
200          switch( LOWORD( wparam ) ) {          switch (LOWORD (wparam)) {
201          case IDOK:          case IDOK:
202              rset = keylist_get_recipients (lv, &force_trust, &n);              rset = keylist_get_recipients (lv, &force_trust, &n);
203              if (!n) {              if (!n) {

Legend:
Removed from v.235  
changed lines
  Added in v.236

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26