awesomer 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/awesomer.rb +7 -2
  2. metadata +2 -2
@@ -26,9 +26,10 @@ require 'socket'
26
26
  # end
27
27
  #
28
28
  class Awesomer
29
- VERSION = '1.0.2'
29
+ VERSION = '1.1.0'
30
30
 
31
31
  attr_accessor :screen
32
+ attr_accessor :statusbar
32
33
  attr_accessor :socket
33
34
 
34
35
  def initialize(screen = 0)
@@ -45,7 +46,11 @@ class Awesomer
45
46
 
46
47
  # We take all method calls as possible UICB functions.
47
48
  def method_missing(method, *args)
48
- send(method, args.join(' '))
49
+ if method == :widget_tell && statusbar
50
+ send(method, args.unshift(@statusbar).join(' '))
51
+ else
52
+ send(method, args.join(' '))
53
+ end
49
54
  end
50
55
 
51
56
  # Connect to the awesome window manager socket.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesomer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eivind Uggedal
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-29 00:00:00 +01:00
12
+ date: 2008-04-24 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency