dumon 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/dumon/ui.rb +3 -6
  2. data/lib/dumon/version.rb +1 -0
  3. metadata +2 -2
data/lib/dumon/ui.rb CHANGED
@@ -143,12 +143,9 @@ module Dumon
143
143
 
144
144
  # primary output
145
145
  item = Gtk::MenuItem.new('primary output')
146
- if outputs.keys.size >= 2
147
- submenu = Gtk::Menu.new
148
- item.set_submenu(submenu)
149
- else
150
- item.sensitive = false
151
- end
146
+ submenu = Gtk::Menu.new
147
+ item.set_submenu(submenu)
148
+ item.sensitive = (outputs.keys.size >= 2)
152
149
 
153
150
  radios = []
154
151
  prims = outputs.keys.clone << :none
data/lib/dumon/version.rb CHANGED
@@ -2,6 +2,7 @@ module Dumon
2
2
 
3
3
  # Version history.
4
4
  VERSION_HISTORY = [
5
+ ['0.1.6', '2013-02-11', 'BF #3: Crash by rendering popup menu if only one output is there'],
5
6
  ['0.1.5', '2013-02-08', 'Enh #2: Support for primary output'],
6
7
  ['0.1.4', '2013-02-07', 'Enh #1: Starting as daemon'],
7
8
  ['0.1.3', '2013-02-03', 'Changed starting mechanism'],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-08 00:00:00.000000000 Z
12
+ date: 2013-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gtk2