Changeset d70f45f for functions.c


Ignore:
Timestamp:
Jun 1, 2010, 3:19:58 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
69873f7
Parents:
e294783
Message:
Port the msgwin to owl_window

I feel kind of silly making a new file for this, but meh.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rf6fae8d rd70f45f  
    12621262  touchwin(owl_global_get_curs_recwin(&g));
    12631263  touchwin(owl_global_get_curs_sepwin(&g));
    1264   touchwin(owl_global_get_curs_msgwin(&g));
    12651264
    12661265  sepbar("");
    1267   owl_function_makemsg("");
    12681266
    12691267  owl_global_set_needrefresh(&g);
     
    34013399{
    34023400  va_list ap;
    3403   char buff[2048];
     3401  char *str;
    34043402
    34053403  if (!owl_global_get_curs_msgwin(&g)) return;
    34063404
    34073405  va_start(ap, fmt);
    3408   werase(owl_global_get_curs_msgwin(&g));
    3409  
    3410   vsnprintf(buff, 2048, fmt, ap);
    3411   owl_function_debugmsg("makemsg: %s", buff);
    3412   waddstr(owl_global_get_curs_msgwin(&g), buff); 
    3413   owl_global_set_needrefresh(&g);
     3406  str = g_strdup_vprintf(fmt, ap);
    34143407  va_end(ap);
     3408
     3409  owl_function_debugmsg("makemsg: %s", str);
     3410  owl_msgwin_set_text(&g.msgwin, str);
    34153411}
    34163412
Note: See TracChangeset for help on using the changeset viewer.