mirror of
https://github.com/moparisthebest/FireTray
synced 2024-12-22 05:48:49 -05:00
reorganize and clean
This commit is contained in:
parent
868106ff61
commit
6daf73fe44
@ -87,7 +87,8 @@ modules_dir := modules
|
|||||||
modules_sources := $(wildcard $(modules_dir)/*.js) \
|
modules_sources := $(wildcard $(modules_dir)/*.js) \
|
||||||
$(wildcard $(modules_dir)/*.jsm) \
|
$(wildcard $(modules_dir)/*.jsm) \
|
||||||
$(wildcard $(modules_dir)/ctypes/*.jsm) \
|
$(wildcard $(modules_dir)/ctypes/*.jsm) \
|
||||||
$(wildcard $(modules_dir)/gtk2/*.jsm)
|
$(wildcard $(modules_dir)/ctypes/linux/*.jsm) \
|
||||||
|
$(wildcard $(modules_dir)/linux/*.jsm)
|
||||||
|
|
||||||
# The sources for the XPI file. Uses variables defined in the included
|
# The sources for the XPI file. Uses variables defined in the included
|
||||||
# Makefiles.
|
# Makefiles.
|
||||||
|
@ -8,10 +8,10 @@ const Cu = Components.utils;
|
|||||||
|
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
Cu.import("resource://gre/modules/ctypes.jsm");
|
Cu.import("resource://gre/modules/ctypes.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gobject.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gobject.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gtk.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gtk.jsm");
|
||||||
Cu.import("resource://firetray/commons.js");
|
Cu.import("resource://firetray/commons.js");
|
||||||
Cu.import("resource://firetray/FiretrayPrefListener.jsm");
|
Cu.import("resource://firetray/PrefListener.jsm");
|
||||||
Cu.import("resource://firetray/FiretrayVersionChange.jsm");
|
Cu.import("resource://firetray/FiretrayVersionChange.jsm");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -63,9 +63,9 @@ firetray.Handler = {
|
|||||||
LOG("OS=" + this.runtimeOS + ", ABI=" + this.runtimeABI + ", XULrunner=" + xulVer);
|
LOG("OS=" + this.runtimeOS + ", ABI=" + this.runtimeABI + ", XULrunner=" + xulVer);
|
||||||
switch (this.runtimeOS) {
|
switch (this.runtimeOS) {
|
||||||
case "Linux":
|
case "Linux":
|
||||||
Cu.import("resource://firetray/gtk2/FiretrayStatusIcon.jsm");
|
Cu.import("resource://firetray/linux/FiretrayStatusIcon.jsm");
|
||||||
LOG('FiretrayStatusIcon imported');
|
LOG('FiretrayStatusIcon imported');
|
||||||
Cu.import("resource://firetray/gtk2/FiretrayWindow.jsm");
|
Cu.import("resource://firetray/linux/FiretrayWindow.jsm");
|
||||||
LOG('FiretrayWindow imported');
|
LOG('FiretrayWindow imported');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -48,10 +48,10 @@ const Ci = Components.interfaces;
|
|||||||
|
|
||||||
Cu.import("resource://gre/modules/ctypes.jsm");
|
Cu.import("resource://gre/modules/ctypes.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/ctypes-utils.jsm");
|
Cu.import("resource://firetray/ctypes/ctypes-utils.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/cairo.jsm");
|
Cu.import("resource://firetray/ctypes/linux/cairo.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/glib.jsm");
|
Cu.import("resource://firetray/ctypes/linux/glib.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gobject.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gobject.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/x11.jsm");
|
Cu.import("resource://firetray/ctypes/linux/x11.jsm");
|
||||||
|
|
||||||
function gdk_defines(lib) {
|
function gdk_defines(lib) {
|
||||||
this.GdkInterpType = ctypes.int; // enum
|
this.GdkInterpType = ctypes.int; // enum
|
@ -48,7 +48,7 @@ const Ci = Components.interfaces;
|
|||||||
|
|
||||||
Cu.import("resource://gre/modules/ctypes.jsm");
|
Cu.import("resource://gre/modules/ctypes.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/ctypes-utils.jsm");
|
Cu.import("resource://firetray/ctypes/ctypes-utils.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/glib.jsm");
|
Cu.import("resource://firetray/ctypes/linux/glib.jsm");
|
||||||
|
|
||||||
function gobject_defines(lib) {
|
function gobject_defines(lib) {
|
||||||
|
|
@ -11,9 +11,9 @@ const Ci = Components.interfaces;
|
|||||||
|
|
||||||
Cu.import("resource://gre/modules/ctypes.jsm");
|
Cu.import("resource://gre/modules/ctypes.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/ctypes-utils.jsm");
|
Cu.import("resource://firetray/ctypes/ctypes-utils.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gdk.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gdk.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gobject.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gobject.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/pango.jsm");
|
Cu.import("resource://firetray/ctypes/linux/pango.jsm");
|
||||||
|
|
||||||
function gtk_defines(lib) {
|
function gtk_defines(lib) {
|
||||||
this.GTK_ICON_SIZE_MENU = 1; // enum GtkIconSize
|
this.GTK_ICON_SIZE_MENU = 1; // enum GtkIconSize
|
@ -11,8 +11,8 @@ const Ci = Components.interfaces;
|
|||||||
|
|
||||||
Cu.import("resource://gre/modules/ctypes.jsm");
|
Cu.import("resource://gre/modules/ctypes.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/ctypes-utils.jsm");
|
Cu.import("resource://firetray/ctypes/ctypes-utils.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/cairo.jsm");
|
Cu.import("resource://firetray/ctypes/linux/cairo.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gobject.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gobject.jsm");
|
||||||
|
|
||||||
function pango_defines(lib) {
|
function pango_defines(lib) {
|
||||||
this.PANGO_WEIGHT_THIN = 100;
|
this.PANGO_WEIGHT_THIN = 100;
|
@ -11,9 +11,9 @@ const Ci = Components.interfaces;
|
|||||||
|
|
||||||
Cu.import("resource://gre/modules/ctypes.jsm");
|
Cu.import("resource://gre/modules/ctypes.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/ctypes-utils.jsm");
|
Cu.import("resource://firetray/ctypes/ctypes-utils.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/cairo.jsm");
|
Cu.import("resource://firetray/ctypes/linux/cairo.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gobject.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gobject.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/pango.jsm");
|
Cu.import("resource://firetray/ctypes/linux/pango.jsm");
|
||||||
|
|
||||||
function pangocairo_defines(lib) {
|
function pangocairo_defines(lib) {
|
||||||
lib.lazy_bind("pango_cairo_show_layout", ctypes.void_t, cairo.cairo_t.ptr, pango.PangoLayout.ptr);
|
lib.lazy_bind("pango_cairo_show_layout", ctypes.void_t, cairo.cairo_t.ptr, pango.PangoLayout.ptr);
|
@ -1,23 +0,0 @@
|
|||||||
/* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
||||||
|
|
||||||
var EXPORTED_SYMBOLS = [ "xinerama" ];
|
|
||||||
|
|
||||||
const XINERAMA_LIBNAME = "Xinerama";
|
|
||||||
const XINERAMA_ABIS = [ 1 ];
|
|
||||||
|
|
||||||
const Cu = Components.utils;
|
|
||||||
const Cc = Components.classes;
|
|
||||||
const Ci = Components.interfaces;
|
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
|
||||||
Cu.import("resource://gre/modules/ctypes.jsm");
|
|
||||||
Cu.import("resource://firetray/ctypes/ctypes-utils.jsm");
|
|
||||||
Cu.import("resource://firetray/logging.jsm");
|
|
||||||
Cu.import("resource://firetray/ctypes/x11.jsm");
|
|
||||||
|
|
||||||
|
|
||||||
function xinerama_defines(lib) {
|
|
||||||
lib.lazy_bind("XineramaIsActive", x11.Bool, x11.Display.ptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
new ctypes_library(XINERAMA_LIBNAME, XINERAMA_ABIS, xinerama_defines, this);
|
|
@ -9,8 +9,8 @@ const Cu = Components.utils;
|
|||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
Cu.import("resource://gre/modules/ctypes.jsm");
|
Cu.import("resource://gre/modules/ctypes.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gobject.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gobject.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gtk.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gtk.jsm");
|
||||||
Cu.import("resource://firetray/commons.js");
|
Cu.import("resource://firetray/commons.js");
|
||||||
|
|
||||||
if ("undefined" == typeof(firetray.StatusIcon))
|
if ("undefined" == typeof(firetray.StatusIcon))
|
@ -9,12 +9,12 @@ const Cu = Components.utils;
|
|||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
Cu.import("resource://gre/modules/ctypes.jsm");
|
Cu.import("resource://gre/modules/ctypes.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/cairo.jsm");
|
Cu.import("resource://firetray/ctypes/linux/cairo.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gobject.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gobject.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gdk.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gdk.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gtk.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gtk.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/pango.jsm");
|
Cu.import("resource://firetray/ctypes/linux/pango.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/pangocairo.jsm");
|
Cu.import("resource://firetray/ctypes/linux/pangocairo.jsm");
|
||||||
Cu.import("resource://firetray/commons.js");
|
Cu.import("resource://firetray/commons.js");
|
||||||
|
|
||||||
if ("undefined" == typeof(firetray.Handler))
|
if ("undefined" == typeof(firetray.Handler))
|
||||||
@ -40,7 +40,7 @@ firetray.StatusIcon = {
|
|||||||
|
|
||||||
firetray.Handler.setIconTooltipDefault();
|
firetray.Handler.setIconTooltipDefault();
|
||||||
|
|
||||||
Cu.import("resource://firetray/gtk2/FiretrayPopupMenu.jsm");
|
Cu.import("resource://firetray/linux/FiretrayPopupMenu.jsm");
|
||||||
if (!firetray.PopupMenu.init())
|
if (!firetray.PopupMenu.init())
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -17,11 +17,11 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
Cu.import("resource://gre/modules/ctypes.jsm");
|
Cu.import("resource://gre/modules/ctypes.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/ctypesMap.jsm");
|
Cu.import("resource://firetray/ctypes/ctypesMap.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gobject.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gobject.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gdk.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gdk.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/gtk.jsm");
|
Cu.import("resource://firetray/ctypes/linux/gtk.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/libc.jsm");
|
Cu.import("resource://firetray/ctypes/linux/libc.jsm");
|
||||||
Cu.import("resource://firetray/ctypes/x11.jsm");
|
Cu.import("resource://firetray/ctypes/linux/x11.jsm");
|
||||||
Cu.import("resource://firetray/commons.js");
|
Cu.import("resource://firetray/commons.js");
|
||||||
|
|
||||||
if ("undefined" == typeof(firetray.Handler))
|
if ("undefined" == typeof(firetray.Handler))
|
Loading…
Reference in New Issue
Block a user