totalspaces2 2.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.rdoc +4 -2
- data/lib/TSLib.h +7 -1
- data/lib/libtotalspaces2api.dylib +0 -0
- data/lib/totalspaces2.rb +10 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a87f5e5ecdee90fc2e0350b48fc730ecda225b74
|
4
|
+
data.tar.gz: defb44f1c8865d0bc6de35d48fded7a1570ace82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47f2304089c5a008f3f1123562226b6d12f5999e845f2a299a8457e5a82598695ccb383e4acc40c385aa1c415bf024852b0c8bc0ae38cf2d71301fa6f7f476df
|
7
|
+
data.tar.gz: 71fa701e8034dc526c6018e7302189f33fa8f5535ed220172169361dc2cd0eb1ccf70ce8fba5350e63bda3b90c03df98cd15015ce5d53d4679b51e774d0c935c
|
data/README.rdoc
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
= TotalSpaces2 - Ruby API bindings for TotalSpaces2 from BinaryAge
|
2
2
|
|
3
|
-
== PRERELEASE: You
|
3
|
+
== PRERELEASE: You can only use the API with versions 2.1 and above of TotalSpaces2.
|
4
|
+
|
5
|
+
Version 2.1+ of TotalSpaces2 is available by ticking the "Include pre-releases" checkbox in General Preferences and then selecting "Check for updates" from the menu.
|
4
6
|
|
5
7
|
This gem enables you to get information from and to control {TotalSpaces2}[link:http://totalspaces.binaryage.com]
|
6
8
|
|
@@ -20,7 +22,7 @@ You may use this gem in various ways. For instance, you could:
|
|
20
22
|
|
21
23
|
* Trigger moving certain windows between spaces
|
22
24
|
|
23
|
-
API support, and support for this gem starts with TotalSpaces2 v2.
|
25
|
+
API support, and support for this gem starts with TotalSpaces2 v2.1 The API is a premium feature,
|
24
26
|
and will only work with registered versions of TotalSpaces2.
|
25
27
|
|
26
28
|
== Download and installation
|
data/lib/TSLib.h
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
// The API is a premium feature, and will only work with registered versions of TotalSpaces.
|
9
9
|
//
|
10
10
|
|
11
|
-
#ifndef
|
11
|
+
#ifndef totalspacesapi_tslib_h
|
12
12
|
#define totalspacesapi_tslib_h
|
13
13
|
|
14
14
|
#import <Foundation/Foundation.h>
|
@@ -252,5 +252,11 @@ unsigned int tsapi_addDesktopsOnDisplay(unsigned int numberToAdd, CGDirectDispla
|
|
252
252
|
*/
|
253
253
|
bool tsapi_removeDesktopsOnDisplay(unsigned int numberToRemove, CGDirectDisplayID displayID);
|
254
254
|
|
255
|
+
/*
|
256
|
+
* Set the front window
|
257
|
+
* Set the given window id to be at the front.
|
258
|
+
*/
|
259
|
+
void tsapi_setFrontWindow(unsigned int windowID);
|
260
|
+
|
255
261
|
#endif
|
256
262
|
|
Binary file
|
data/lib/totalspaces2.rb
CHANGED
@@ -107,6 +107,8 @@ module TSApi #:nodoc:
|
|
107
107
|
|
108
108
|
attach_function :tsapi_addDesktopsOnDisplay, [:uint, :uint], :uint
|
109
109
|
attach_function :tsapi_removeDesktopsOnDisplay, [:uint, :uint], :bool
|
110
|
+
|
111
|
+
attach_function :tsapi_setFrontWindow, [:uint], :void
|
110
112
|
end
|
111
113
|
|
112
114
|
module TotalSpaces2
|
@@ -410,7 +412,7 @@ module TotalSpaces2
|
|
410
412
|
# arguments passed to the block.
|
411
413
|
#
|
412
414
|
#
|
413
|
-
#
|
415
|
+
# TotalSpaces2.on_layout_change {puts "Spaces changed"}
|
414
416
|
#
|
415
417
|
# sleep
|
416
418
|
#
|
@@ -571,5 +573,12 @@ module TotalSpaces2
|
|
571
573
|
def remove_desktops_on_display(number_to_remove, display_id)
|
572
574
|
TSApi.tsapi_removeDesktopsOnDisplay(number_to_remove, display_id)
|
573
575
|
end
|
576
|
+
|
577
|
+
# Move a particular window to the front and activate it.
|
578
|
+
# This might be usful after moving windows to other desktops.
|
579
|
+
#
|
580
|
+
def set_front_window(window_id)
|
581
|
+
TSApi.tsapi_setFrontWindow(window_id)
|
582
|
+
end
|
574
583
|
end
|
575
584
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: totalspaces2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Sykes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|