1
0
mirror of https://github.com/moparisthebest/FireTray synced 2024-12-22 13:58:48 -05:00
This commit is contained in:
foudfou 2011-12-16 18:08:18 +01:00
parent a13437891c
commit 02c4f1d769
3 changed files with 42 additions and 42 deletions

View File

@ -1,6 +1,6 @@
/* -*- Mode: js2; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* for now, logging facilities (imported from logging.jsm are automatically
/* for now, logging facilities (imported from logging.jsm) are automatically
provided by this module */
var EXPORTED_SYMBOLS =
[ "firetray", "LOG", "WARN", "ERROR", "FIREFOX_ID", "THUNDERBIRD_ID",
@ -15,12 +15,12 @@ const Cu = Components.utils;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://firetray/logging.jsm");
const FIREFOX_ID = "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}";
const FIREFOX_ID = "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}";
const THUNDERBIRD_ID = "{3550f703-e582-4d05-9a08-453d09bdfdc6}";
const SONGBIRD_ID = "songbird@songbirdnest.com";
const SUNBIRD_ID = "{718e30fb-e89b-41dd-9da7-e25a45638b28}";
const SEAMONKEY_ID = "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}";
const CHATZILLA_ID = "{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}";
const SONGBIRD_ID = "songbird@songbirdnest.com";
const SUNBIRD_ID = "{718e30fb-e89b-41dd-9da7-e25a45638b28}";
const SEAMONKEY_ID = "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}";
const CHATZILLA_ID = "{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}";
const FT_NOTIFICATION_DISABLED = 0;
const FT_NOTIFICATION_UNREAD_MESSAGE_COUNT = 1;

View File

@ -53,35 +53,35 @@ Cu.import("resource://firetray/glib.jsm");
function gobject_defines(lib) {
this.GdkEventMask = ctypes.int; // enum
this.GDK_EXPOSURE_MASK = 1 << 1,
this.GDK_POINTER_MOTION_MASK = 1 << 2,
this.GDK_EXPOSURE_MASK = 1 << 1,
this.GDK_POINTER_MOTION_MASK = 1 << 2,
this.GDK_POINTER_MOTION_HINT_MASK = 1 << 3,
this.GDK_BUTTON_MOTION_MASK = 1 << 4,
this.GDK_BUTTON1_MOTION_MASK = 1 << 5,
this.GDK_BUTTON2_MOTION_MASK = 1 << 6,
this.GDK_BUTTON3_MOTION_MASK = 1 << 7,
this.GDK_BUTTON_PRESS_MASK = 1 << 8,
this.GDK_BUTTON_RELEASE_MASK = 1 << 9,
this.GDK_KEY_PRESS_MASK = 1 << 10,
this.GDK_KEY_RELEASE_MASK = 1 << 11,
this.GDK_ENTER_NOTIFY_MASK = 1 << 12,
this.GDK_LEAVE_NOTIFY_MASK = 1 << 13,
this.GDK_FOCUS_CHANGE_MASK = 1 << 14,
this.GDK_STRUCTURE_MASK = 1 << 15,
this.GDK_PROPERTY_CHANGE_MASK = 1 << 16,
this.GDK_VISIBILITY_NOTIFY_MASK = 1 << 17,
this.GDK_PROXIMITY_IN_MASK = 1 << 18,
this.GDK_PROXIMITY_OUT_MASK = 1 << 19,
this.GDK_SUBSTRUCTURE_MASK = 1 << 20,
this.GDK_SCROLL_MASK = 1 << 21,
this.GDK_ALL_EVENTS_MASK = 0x3FFFFE
this.GDK_BUTTON_MOTION_MASK = 1 << 4,
this.GDK_BUTTON1_MOTION_MASK = 1 << 5,
this.GDK_BUTTON2_MOTION_MASK = 1 << 6,
this.GDK_BUTTON3_MOTION_MASK = 1 << 7,
this.GDK_BUTTON_PRESS_MASK = 1 << 8,
this.GDK_BUTTON_RELEASE_MASK = 1 << 9,
this.GDK_KEY_PRESS_MASK = 1 << 10,
this.GDK_KEY_RELEASE_MASK = 1 << 11,
this.GDK_ENTER_NOTIFY_MASK = 1 << 12,
this.GDK_LEAVE_NOTIFY_MASK = 1 << 13,
this.GDK_FOCUS_CHANGE_MASK = 1 << 14,
this.GDK_STRUCTURE_MASK = 1 << 15,
this.GDK_PROPERTY_CHANGE_MASK = 1 << 16,
this.GDK_VISIBILITY_NOTIFY_MASK = 1 << 17,
this.GDK_PROXIMITY_IN_MASK = 1 << 18,
this.GDK_PROXIMITY_OUT_MASK = 1 << 19,
this.GDK_SUBSTRUCTURE_MASK = 1 << 20,
this.GDK_SCROLL_MASK = 1 << 21,
this.GDK_ALL_EVENTS_MASK = 0x3FFFFE
this.GSignalMatchType = ctypes.int; // enum
this.G_SIGNAL_MATCH_ID = 1 << 0,
this.G_SIGNAL_MATCH_DETAIL = 1 << 1,
this.G_SIGNAL_MATCH_CLOSURE = 1 << 2,
this.G_SIGNAL_MATCH_FUNC = 1 << 3,
this.G_SIGNAL_MATCH_DATA = 1 << 4,
this.G_SIGNAL_MATCH_UNBLOCKED = 1 << 5
this.G_SIGNAL_MATCH_ID = 1 << 0,
this.G_SIGNAL_MATCH_DETAIL = 1 << 1,
this.G_SIGNAL_MATCH_CLOSURE = 1 << 2,
this.G_SIGNAL_MATCH_FUNC = 1 << 3,
this.G_SIGNAL_MATCH_DATA = 1 << 4,
this.G_SIGNAL_MATCH_UNBLOCKED = 1 << 5
this.gpointer = ctypes.voidptr_t;
this.gulong = ctypes.unsigned_long;

View File

@ -17,16 +17,16 @@ Cu.import("resource://firetray/cairo.jsm");
Cu.import("resource://firetray/gobject.jsm");
function pango_defines(lib) {
this.PANGO_WEIGHT_THIN = 100;
this.PANGO_WEIGHT_THIN = 100;
this.PANGO_WEIGHT_ULTRALIGHT = 200;
this.PANGO_WEIGHT_LIGHT = 300;
this.PANGO_WEIGHT_BOOK = 380;
this.PANGO_WEIGHT_NORMAL = 400;
this.PANGO_WEIGHT_MEDIUM = 500;
this.PANGO_WEIGHT_SEMIBOLD = 600;
this.PANGO_WEIGHT_BOLD = 700;
this.PANGO_WEIGHT_ULTRABOLD = 800;
this.PANGO_WEIGHT_HEAVY = 900;
this.PANGO_WEIGHT_LIGHT = 300;
this.PANGO_WEIGHT_BOOK = 380;
this.PANGO_WEIGHT_NORMAL = 400;
this.PANGO_WEIGHT_MEDIUM = 500;
this.PANGO_WEIGHT_SEMIBOLD = 600;
this.PANGO_WEIGHT_BOLD = 700;
this.PANGO_WEIGHT_ULTRABOLD = 800;
this.PANGO_WEIGHT_HEAVY = 900;
this.PANGO_WEIGHT_ULTRAHEAVY = 1000;
this.PANGO_SCALE = 1024;