Update connect/disconnect action states.
[kaya.git] / lib / helpers / theme_stubs.rb
blob68263c8b1e8613897b09b4634797475cc3298002
1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 class ThemeComponentStub
9   def method_missing(m, *args)
10     img = Qt::Image.painted(Qt::Point.new(1, 1)) { }
11     img.to_pix
12   end
13   
14   def respond_to?(m)
15     true
16   end
17 end
19 class ThemeStub
20   def initialize
21     @stub = ThemeComponentStub.new
22   end
23   
24   def method_missing(comp)
25     @stub
26   end
27   
28   def respond_to?(comp)
29     true
30   end
31 end