Changeset 4e33cb2


Ignore:
Timestamp:
May 29, 2010, 1:14:57 PM (15 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
2dfccc7
Parents:
5f7eadf
git-author:
David Benjamin <davidben@mit.edu> (05/27/10 12:18:41)
git-committer:
David Benjamin <davidben@mit.edu> (05/29/10 13:14:57)
Message:
Punt a lot of needrefreshes

Move the actual needrefreshes into the functions actually dealing with
curses. This will, of course, later get moved out of the paint events
and no one will call it. But that's later.
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r5f7eadf r4e33cb2  
    13711371{
    13721372  owl_function_full_redisplay();
    1373   owl_global_set_needrefresh(&g);
    13741373}
    13751374
     
    13881387  owl_global_set_rightshift(&g, shift);
    13891388  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    1390   owl_global_set_needrefresh(&g);
    13911389}
    13921390
     
    27132711  }
    27142712
    2715   owl_global_set_needrefresh(&g);
    27162713  owl_global_pop_context(&g);
    27172714
     
    27352732    owl_editwin_insert_string(e, ptr);
    27362733    owl_editwin_redisplay(e);
    2737     owl_global_set_needrefresh(&g);
    27382734  } else {
    27392735    owl_function_beep();
     
    27522748    owl_editwin_insert_string(e, ptr);
    27532749    owl_editwin_redisplay(e);
    2754     owl_global_set_needrefresh(&g);
    27552750  } else {
    27562751    owl_function_beep();
     
    27632758  owl_editwin_insert_string(e, buff);
    27642759  owl_editwin_redisplay(e);
    2765   owl_global_set_needrefresh(&g); 
    27662760  return NULL;
    27672761}
     
    27782772  owl_global_set_typwin_inactive(&g);
    27792773  owl_global_pop_context(&g);
    2780   owl_global_set_needrefresh(&g);
    27812774
    27822775  owl_editwin_do_callback(e);
     
    28032796  owl_popwin_close(owl_global_get_popwin(&g));
    28042797  owl_global_pop_context(&g);
    2805   owl_global_set_needrefresh(&g);
    2806 }
     2798}
  • editwin.c

    r9d7a720 r4e33cb2  
    533533  wmove(e->curswin, y, x);
    534534  e->cursorx = x;
     535  owl_global_set_needrefresh(&g);
    535536}
    536537
  • functions.c

    r68f63a2 r4e33cb2  
    216216  /* redisplay etc. */
    217217  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    218   owl_global_set_needrefresh(&g);
    219218}
    220219
     
    809808  owl_global_set_rightshift(&g, owl_global_get_rightshift(&g)+10);
    810809  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    811   owl_global_set_needrefresh(&g);
    812810}
    813811
     
    820818    owl_global_set_rightshift(&g, MAX(shift - 10, 0));
    821819    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    822     owl_global_set_needrefresh(&g);
    823820  } else {
    824821    owl_function_beep();
     
    12231220  if (owl_global_is_bell(&g)) {
    12241221    beep();
    1225     owl_global_set_needrefresh(&g); /* do we really need this? */
    12261222  }
    12271223}
     
    15581554  /* redisplay */
    15591555  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    1560   owl_global_set_needrefresh(&g);
    15611556}
    15621557
     
    16781673    }
    16791674    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    1680     owl_global_set_needrefresh(&g);
    16811675  } else {
    16821676    owl_function_error("No message with id %d: unable to mark for (un)delete",id);
     
    17141708  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    17151709  owl_function_makemsg("%i messages marked for deletion", count);
    1716   owl_global_set_needrefresh(&g);
    17171710}
    17181711
     
    19191912
    19201913  owl_editwin_set_locktext(tw, "command: ");
    1921   owl_global_set_needrefresh(&g);
    19221914
    19231915  owl_editwin_insert_string(tw, line);
     
    19351927
    19361928  owl_editwin_set_locktext(tw, line);
    1937   owl_global_set_needrefresh(&g);
    1938 
    1939   owl_editwin_redisplay(tw);
    19401929
    19411930  owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse");
     
    19521941
    19531942  owl_editwin_set_locktext(tw, line);
    1954   owl_global_set_needrefresh(&g);
    19551943
    19561944  owl_editwin_redisplay(tw);
     
    21192107    }
    21202108    owl_filter_set_fgcolor(f, owl_util_string_to_color(argv[3]));
    2121     owl_global_set_needrefresh(&g);
    21222109    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    21232110    return;
     
    21342121    }
    21352122    owl_filter_set_bgcolor(f, owl_util_string_to_color(argv[3]));
    2136     owl_global_set_needrefresh(&g);
    21372123    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    21382124    return;
     
    21632149    owl_function_change_currentview_filter(argv[1]);
    21642150  }
    2165   owl_global_set_needrefresh(&g);
    21662151  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    21672152}
     
    27072692  owl_filter_set_fgcolor(f, owl_util_string_to_color(fgcolor));
    27082693 
    2709   owl_global_set_needrefresh(&g);
    27102694  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    27112695  return(0);
  • global.c

    r68f63a2 r4e33cb2  
    385385  werase(owl_global_get_curs_typwin(g));
    386386  g->tw = NULL;
     387  owl_global_set_needrefresh(g);
    387388}
    388389
  • owl.c

    r449af72 r4e33cb2  
    303303    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    304304    sepbar(NULL);
    305     owl_global_set_needrefresh(&g);
    306305  }
    307306  return newmsgs;
  • util.c

    r9a7b4f2 r4e33cb2  
    120120  wattroff(sepwin, A_BOLD);
    121121  wattroff(sepwin, A_REVERSE);
     122  owl_global_set_needrefresh(&g);
    122123}
    123124
Note: See TracChangeset for help on using the changeset viewer.