Changeset 9186c75 for commands.c


Ignore:
Timestamp:
Mar 29, 2010, 11:11:32 PM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
0fe69d2
Parents:
98d296d
git-author:
Nelson Elhage <nelhage@ksplice.com> (03/19/10 17:21:32)
git-committer:
Nelson Elhage <nelhage@mit.edu> (03/29/10 23:11:32)
Message:
Make functions that start an editwin return it, too.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rb4a95fc r9186c75  
    25592559  /* if we get two arguments, ask for the password */
    25602560  if (argc==2) {
    2561     owl_function_start_password("AIM Password: ");
    2562     owl_editwin_set_cbdata(owl_global_get_typwin(&g),
    2563                            owl_strdup(argv[1]), owl_free);
    2564     owl_editwin_set_callback(owl_global_get_typwin(&g),
    2565                              owl_callback_aimlogin);
     2561    owl_editwin *e = owl_function_start_password("AIM Password: ");
     2562    owl_editwin_set_cbdata(e, owl_strdup(argv[1]), owl_free);
     2563    owl_editwin_set_callback(e, owl_callback_aimlogin);
    25662564    return(NULL);
    25672565  } else {
Note: See TracChangeset for help on using the changeset viewer.