volay 0.1.0 → 0.2.0

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: 245a232caa178e894d48adc93a35de8874401034
4
- data.tar.gz: ee11c9f8ba2f24efd2c3faae0b260e81c809167e
3
+ metadata.gz: e97bbe58df5e5b88188aa995b9484db074add5ea
4
+ data.tar.gz: c27c8b5e947e6333e5be44762b4ac9580f964fe6
5
5
  SHA512:
6
- metadata.gz: ba28c69fc785915e4ac3be90d0a24241dbaa14139a9183bf35c2725a6e4189ac6b3fa7e5e2236bcc0cca4812b353e4ec20ec07e6bd6b7b1b1e8a30dbc9e4a182
7
- data.tar.gz: 16644a4b640f5af884736a645e41dc92d3c9332252028180f589fcd129927323d81d2694f35279a5fd8d8f95a7aa9bb44cf7f0cc92ba8cd2e17ba7babb904d30
6
+ metadata.gz: d5592746e582b09d54a823513f033ef8cec5ed74539963d2c48add867fd7422c6fa07aea075c1797214c6c6762883f26a016e706bfa1c43bdf2efadf5a866dfa
7
+ data.tar.gz: d51be884770e9bd5ceb813ec6aef262de598c4b2918d295517b3e5218bddb54c1ea47f5a646142591f91d7a36119924b635da7ce3e90f67c0af6f41a5c99cd1e
@@ -64,7 +64,6 @@
64
64
  <property name="inverted">True</property>
65
65
  <property name="round_digits">0</property>
66
66
  <property name="digits">0</property>
67
- <signal name="realize" handler="on_volume_scale_realize" swapped="no"/>
68
67
  </object>
69
68
  <packing>
70
69
  <property name="expand">True</property>
@@ -20,6 +20,7 @@ module Volay
20
20
  icon = status_icon
21
21
  @app.get_object('status_icon')
22
22
  .set_stock(icon)
23
+ @app.get_object('toggle_mute').set_active(@app.mixer.muted?)
23
24
  @app.get_object('toggle_mute_image')
24
25
  .set_stock(icon)
25
26
  end
@@ -1,4 +1,4 @@
1
1
  # Volay module
2
2
  module Volay
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
@@ -6,6 +6,7 @@ describe 'Volay::Utils' do
6
6
  def prepare(image, muted, volume_percent)
7
7
  app = double
8
8
  toggle_image = double
9
+ toggle_button = double
9
10
  status_icon = double
10
11
  mixer = double
11
12
  allow(app).to receive(:mixer).and_return(mixer)
@@ -13,6 +14,9 @@ describe 'Volay::Utils' do
13
14
  .with('status_icon').and_return(status_icon)
14
15
  allow(app).to receive(:get_object)
15
16
  .with('toggle_mute_image').and_return(toggle_image)
17
+ allow(app).to receive(:get_object)
18
+ .with('toggle_mute').and_return(toggle_button)
19
+ allow(toggle_button).to receive(:set_active).and_return(muted)
16
20
  allow(mixer).to receive(:muted?)
17
21
  .and_return(muted)
18
22
  allow(mixer).to receive(:percent)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Rambaud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-20 00:00:00.000000000 Z
11
+ date: 2015-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-cli