Changeset 1d74663 for context.c


Ignore:
Timestamp:
Sep 18, 2010, 5:07:39 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
cb81570
Parents:
818f19c
git-author:
David Benjamin <davidben@mit.edu> (08/07/10 16:15:02)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 17:07:39)
Message:
Add deactivate and delete hooks for owl_context

Also make pushing and popping slightly more flexible.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • context.c

    r07b59ea r1d74663  
    5353  return(ctx->mode & OWL_CTX_INTERACTIVE)?1:0;
    5454}
     55
     56void owl_context_deactivate(owl_context *ctx)
     57{
     58  if (ctx->deactivate_cb)
     59    ctx->deactivate_cb(ctx);
     60}
     61
     62void owl_context_delete(owl_context *ctx)
     63{
     64  if (ctx->cursor)
     65    g_object_unref(ctx->cursor);
     66  owl_free(ctx->keymap);
     67  if (ctx->delete_cb)
     68    ctx->delete_cb(ctx);
     69  owl_free(ctx);
     70}
Note: See TracChangeset for help on using the changeset viewer.