~extension-hackers/messagingmenu-extension/1.3

« back to all changes in this revision

Viewing changes to res/libs/indicate.jsm

  • Committer: Chris Coulson
  • Date: 2012-10-13 02:21:59 UTC
  • Revision ID: chris.coulson@canonical.com-20121013022159-8ej3msl615tffx0i
Update to latest copy of utils.jsm

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
const INDICATE_ABIS    = [ 5 ];
51
51
 
52
52
function indicate_defines(lib) {
53
 
  this.INDICATOR_MESSAGES_SERVER_TYPE = "message";
54
 
  this.INDICATOR_MESSAGES_PROP_NAME = "name";
55
 
  this.INDICATOR_MESSAGES_PROP_ICON = "icon";
56
 
  this.INDICATOR_MESSAGES_PROP_COUNT = "count";
57
 
  this.INDICATOR_MESSAGES_PROP_TIME = "time";
58
 
  this.INDICATOR_MESSAGES_PROP_ATTENTION = "draw-attention";
 
53
  CTypesUtils.defineSimple(this, "INDICATOR_MESSAGES_SERVER_TYPE", "message");
 
54
  CTypesUtils.defineSimple(this, "INDICATOR_MESSAGES_PROP_NAME", "name");
 
55
  CTypesUtils.defineSimple(this, "INDICATOR_MESSAGES_PROP_ICON", "icon");
 
56
  CTypesUtils.defineSimple(this, "INDICATOR_MESSAGES_PROP_COUNT", "count");
 
57
  CTypesUtils.defineSimple(this, "INDICATOR_MESSAGES_PROP_TIME", "time");
 
58
  CTypesUtils.defineSimple(this, "INDICATOR_MESSAGES_PROP_ATTENTION",
 
59
                           "draw-attention");
59
60
 
60
 
  this.IndicateServer = ctypes.StructType("IndicateServer");
61
 
  this.Indicator = ctypes.StructType("Indicator");
 
61
  CTypesUtils.defineSimple(this, "IndicateServer",
 
62
                           ctypes.StructType("IndicateServer"));
 
63
  CTypesUtils.defineSimple(this, "Indicator", ctypes.StructType("Indicator"));
62
64
 
63
65
  lib.lazy_bind("indicate_server_ref_default", this.IndicateServer.ptr);
64
66
  lib.lazy_bind("indicate_server_set_type", ctypes.void_t,