/[giftcurs]/giFTcurs/src/ui_main.c
ViewVC logotype

Diff of /giFTcurs/src/ui_main.c

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

revision 1.358 by weinholt, Wed Nov 3 00:10:19 2004 UTC revision 1.359 by weinholt, Wed Nov 3 21:30:05 2004 UTC
# Line 28  Line 28 
28  #include <ctype.h>  #include <ctype.h>
29    
30  #include "parse.h"  #include "parse.h"
 #include "protocol.h"  
31  #include "gift.h"  #include "gift.h"
32  #include "misc.h"  #include "misc.h"
33  #include "screen.h"  #include "screen.h"
# Line 37  Line 36 
36  #include "ui_draw.h"  #include "ui_draw.h"
37  #include "ui_main.h"  #include "ui_main.h"
38  #include "ui_input.h"  #include "ui_input.h"
 #include "get.h"  
39  #include "format.h"  #include "format.h"
40  #include "settings.h"  #include "settings.h"
 #include "protocol.h"  
41  #include "events.h"  #include "events.h"
42  #include "giftsrv.h"  #include "giftsrv.h"
43    #include "search.h"
44    #include "transfer.h"
45    
46  #define HITS ((query*)list_selected(&queries))  #define HITS ((query*)list_selected(&queries))
47    
# Line 481  static int main_screen_handler(int key) Line 480  static int main_screen_handler(int key)
480                  }                  }
481    
482                  if (PRESSED(key) || key == 'd' || key == 'D') {                  if (PRESSED(key) || key == 'd' || key == 'D') {
483                          download_hit(h, sh);                          download_start(q->searchobj, h->resultobj);
484                          if (tree_flat(q)->sel < tree_flat(q)->num - 1)                          if (tree_flat(q)->sel < tree_flat(q)->num - 1)
485                                  tree_flat(q)->sel++;                                  tree_flat(q)->sel++;
486                          main_screen_update_results();                          main_screen_update_results();
# Line 905  static void mouse_resultdoubleclick(int Line 904  static void mouse_resultdoubleclick(int
904                  return;                  return;
905    
906          if (INSTANCEOF(h, subhit))          if (INSTANCEOF(h, subhit))
907                   download_hit(NULL, (subhit *) h);                  h = (hit *) tree_parent(h);
908    
909          else          download_start(q->searchobj, h->resultobj);
                 download_hit((hit *) h, NULL);  
910  }  }
911    
912  static void mouse_buttonclick(int rx, int ry, void *data)  static void mouse_buttonclick(int rx, int ry, void *data)

Legend:
Removed from v.1.358  
changed lines
  Added in v.1.359

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26