Florian Müllner
033277b68f
Define externally accessible contants with 'var' instead of 'const'
...
Just as we did with classes, define other constants that are (or
may be) used from other modules with 'var' to cut down on warnings.
https://bugzilla.gnome.org/show_bug.cgi?id=785084
2017-07-18 21:52:06 +02:00
Florian Müllner
2582d16ca7
Define classes with 'var' instead of 'const'
...
Any symbols (including class properties) that should be visible
outside the module it's defined in need to be defined as global.
For now gjs still allows the access for 'const', but get rid of
the warnings spill now by changing it.
https://bugzilla.gnome.org/show_bug.cgi?id=785084
2017-07-18 21:52:06 +02:00
Bastien Nocera
cd2bd7685a
js: Name all the timeouts and idles
...
With very uninventive names. Names now, good names later.
https://bugzilla.gnome.org/show_bug.cgi?id=727983
2014-04-10 21:08:16 +02:00
Florian Müllner
751a3f0e94
js: Use SOURCE_CONTINUE/SOURCE_REMOVE constants in source functions
...
With support for boolean constants in g-i, we can finally use the
more readable constants instead of true/false.
https://bugzilla.gnome.org/show_bug.cgi?id=719567
2013-12-16 18:27:19 +01:00
Giovanni Campagna
e0574d2861
Replace GnomeIdleMonitor with MetaIdleMonitor
...
Now that GnomeIdleMonitor is a DBus API for mutter, we need to
use own in-process thing, to avoid dead locks.
https://bugzilla.gnome.org/show_bug.cgi?id=706005
2013-08-23 16:22:44 +02:00
Jasper St. Pierre
261fbef516
Update to new GnomeIdleMonitor API
...
https://bugzilla.gnome.org/show_bug.cgi?id=688227
2013-02-15 09:13:02 +01:00
Giovanni Campagna
56d76791f1
PointerWatcher: keep a reference to the idle monitor
...
If nothing references the idle monitor, it can be finalized at GC,
causing it to have no effect. Worse, if the finalization happens at
wrong time, the pointer watcher can be permanently off, disabling the
message tray.
https://bugzilla.gnome.org/show_bug.cgi?id=691976
2013-01-18 21:14:09 +01:00
Jasper St. Pierre
d106191e6a
Port to GnomeIdleMonitor
...
https://bugzilla.gnome.org/show_bug.cgi?id=682224
2012-10-22 12:06:45 -04:00
Owen W. Taylor
446583400e
pointerWatcher: add a class to track the pointer
...
Add a class to efficiently poll the pointer position, stopping polling
when the user is idle.
https://bugzilla.gnome.org/show_bug.cgi?id=682310
2012-08-21 02:36:56 -04:00