Changeset 385fda9 for util.c


Ignore:
Timestamp:
Jun 1, 2010, 9:54:19 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
a5a9572
Parents:
f06baef
git-author:
David Benjamin <davidben@mit.edu> (06/01/10 21:48:25)
git-committer:
David Benjamin <davidben@mit.edu> (06/01/10 21:54:19)
Message:
A fairly hacky job of porting sepbar to owl_window

We now use the new framework, but the sepbar isn't being marked dirty at
the appropriate times. It'll want to be redone later to take advantage
of the new signals.

The 'in' parameter was also dropped. It was being unused. At best it
provided a strange bug when resizing with appendtosepbar set.

Also revert the attempt at cleaning up the cursor. We still have a hack,
but using owl_window. The cursor probably needs integration with the
context stack or some such.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r05ca0d8 r385fda9  
    1010#include <glib-object.h>
    1111
    12 void sepbar(const char *in)
    13 {
    14   WINDOW *sepwin;
     12void sepbar_dirty(void)
     13{
     14  owl_window_dirty(owl_global_get_curs_sepwin(&g));
     15}
     16
     17void sepbar_redraw(owl_window *w, WINDOW *sepwin, void *user_data)
     18{
    1519  const owl_messagelist *ml;
    1620  const owl_view *v;
     
    1822  const char *foo, *appendtosepbar;
    1923
    20   sepwin=owl_global_get_curs_sepwin(&g);
    2124  ml=owl_global_get_msglist(&g);
    2225  v=owl_global_get_current_view(&g);
     
    101104    wattroff(sepwin, A_BOLD);
    102105  }
    103  
    104   if (in) {
    105     getyx(sepwin, y, x);
    106     wmove(sepwin, y, x+2);
    107     waddstr(sepwin, in);
    108   }
    109106
    110107  appendtosepbar = owl_global_get_appendtosepbar(&g);
     
    122119  wattroff(sepwin, A_BOLD);
    123120  wattroff(sepwin, A_REVERSE);
    124   owl_global_set_needrefresh(&g);
    125121}
    126122
Note: See TracChangeset for help on using the changeset viewer.