Changeset cb81570 for global.c


Ignore:
Timestamp:
Sep 18, 2010, 5:07:39 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
08263a8
Parents:
1d74663
git-author:
David Benjamin <davidben@mit.edu> (08/07/10 16:23:50)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 17:07:39)
Message:
Add a separate owl_context_new and remove owl_context_init

The latter is unused anyway.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r1d74663 rcb81570  
    171171void owl_global_push_context(owl_global *g, int mode, void *data, const char *keymap, owl_window *cursor) {
    172172  owl_context *c;
    173   if (!(mode & OWL_CTX_MODE_BITS))
    174     mode |= OWL_CTX_INTERACTIVE;
    175   c = owl_malloc(sizeof *c);
    176   memset(c, 0, sizeof(*c));
    177   c->mode = mode;
    178   c->data = data;
    179   c->cursor = cursor ? g_object_ref(cursor) : NULL;
    180   c->keymap = owl_strdup(keymap);
     173  c = owl_context_new(mode, data, keymap, cursor);
    181174  owl_global_push_context_obj(g, c);
    182175}
Note: See TracChangeset for help on using the changeset viewer.