totalspaces2 2.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a133c5d3f23844aa9ca70332146796499c6e3b9e
4
- data.tar.gz: 342ceaf3ec96f133b4e6b0a06e8f1a7400c24a4c
3
+ metadata.gz: a87f5e5ecdee90fc2e0350b48fc730ecda225b74
4
+ data.tar.gz: defb44f1c8865d0bc6de35d48fded7a1570ace82
5
5
  SHA512:
6
- metadata.gz: 4455a450a3c33fa50fce7162d9ebca2285fcb10d1828132cdbbf99d9aa2c36f02f6e01d354a0efd6f58f89bb749429e35b400e7ad48ec1dedb79d8cac14d7ac6
7
- data.tar.gz: 2f025c0a21fc74d0f166ed95d7cb0bab5c0d1ec955a7ce743a0e5893267353f7e0d01a31446d36c3f232bd73fec51bd785dc48f0aefe66ee073759f479d70408
6
+ metadata.gz: 47f2304089c5a008f3f1123562226b6d12f5999e845f2a299a8457e5a82598695ccb383e4acc40c385aa1c415bf024852b0c8bc0ae38cf2d71301fa6f7f476df
7
+ data.tar.gz: 71fa701e8034dc526c6018e7302189f33fa8f5535ed220172169361dc2cd0eb1ccf70ce8fba5350e63bda3b90c03df98cd15015ce5d53d4679b51e774d0c935c
@@ -1,6 +1,8 @@
1
1
  = TotalSpaces2 - Ruby API bindings for TotalSpaces2 from BinaryAge
2
2
 
3
- == PRERELEASE: You will be able to use the API with versions 2.1 and above of totalspaces.
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.0.12 The API is a premium feature,
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
@@ -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 totalspacesapi_tslib
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
@@ -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
- # TotalSpaces.on_layout_change {puts "Spaces changed"}
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: '2.0'
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-02-10 00:00:00.000000000 Z
11
+ date: 2014-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi