gtk2mp3 3.2.230112 → 3.3.230113

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
  SHA256:
3
- metadata.gz: a7f31d4ae2d5af872d9c75141828b23b3636cf10ca4c6902fc77d37f41d00246
4
- data.tar.gz: 217cf9c6ddcd6c07c920b6c2f5e33d1d22fd1f4072715183a359bcc21226d2e6
3
+ metadata.gz: 636427da6c2516e013f2e34f7552ae747db214ca6bac16d953883b550c63e0b5
4
+ data.tar.gz: 4b6668de8b0691b4e79dc580328429b447613b1695e50cd14a24fd73f70612af
5
5
  SHA512:
6
- metadata.gz: '079e757062dd079e5d8ce944c9f0762001e70a2b9d5214598bcd1627963473484453f67288a958b837f19d0ffd3e94b821b269ac783b7ed5a2cbe1bbe9d33e39'
7
- data.tar.gz: cb8d058b4717cd924137bc0e3e938f29edf22e3ba20dd9c79e8c2c9f54a4270af2bc76bc3437ad7537b86ffec87bb92f6f668b21d72cf79c91d21e4182d7f456
6
+ metadata.gz: 8f363768eafebc52f1a80b9687e46905ba5c44a7892251c14396cdc5dd3b8ea16c049f164bef69bae8f2f0d1941206ef528bde422e1f2f9ccec6ee3f1ecf5af9
7
+ data.tar.gz: 00ccea703e42ea9e8160b0da4b0414741fa91779a8c7d93eb64cad664dc08f037d67324700852d9d3cd3a1fc446f352b05d6d23e8fb5a13665a19dfb69a00383
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Gtk2Mp3
2
2
 
3
- * [VERSION 3.2.230112](https://github.com/carlosjhr64/gtk2mp3/releases)
3
+ * [VERSION 3.3.230113](https://github.com/carlosjhr64/gtk2mp3/releases)
4
4
  * [github](https://www.github.com/carlosjhr64/gtk2mp3)
5
5
  * [rubygems](https://rubygems.org/gems/gtk2mp3)
6
6
 
@@ -28,6 +28,7 @@ Usage:
28
28
  Options:
29
29
  -h --help
30
30
  -v --version
31
+ -k --mpd_kill Kill the mpd daemon on exit
31
32
  --minime Real minime
32
33
  --notoggle Minime wont toggle decorated and keep above
33
34
  --notdecorated Dont decorate window
@@ -8,7 +8,7 @@ class Gtk2Mp3
8
8
 
9
9
  CONFIG[:BUTTONS].push :picard_button!
10
10
  CONFIG[:PICARD_BUTTON] = [label: 'Picard']
11
- CONFIG[:picard_button] = h0,
11
+ CONFIG[:picard_button] = h0
12
12
  CONFIG[:picard_button!] = [:PICARD_BUTTON,:picard_button,'clicked']
13
13
  # If your music is not in ~/Music, edit your config file:
14
14
  CONFIG[:Music] ||= File.expand_path '~/Music'
@@ -9,7 +9,7 @@ class Gtk2Mp3
9
9
 
10
10
  CONFIG[:BUTTONS].push :trash_button!
11
11
  CONFIG[:TRASH_BUTTON] = [label: 'Trash!']
12
- CONFIG[:trash_button] = h0,
12
+ CONFIG[:trash_button] = h0
13
13
  CONFIG[:trash_button!] = [:TRASH_BUTTON,:trash_button,'clicked']
14
14
  # If your music is not in ~/Music, edit your config file:
15
15
  CONFIG[:Music] ||= File.expand_path '~/Music'
data/lib/gtk2mp3.rb CHANGED
@@ -1,11 +1,12 @@
1
1
  class Gtk2Mp3
2
- VERSION = '3.2.230112'
2
+ VERSION = '3.3.230113'
3
3
  HELP = <<~HELP
4
4
  Usage:
5
5
  gtk2mp3 [:options+]
6
6
  Options:
7
7
  -h --help
8
8
  -v --version
9
+ -k --mpd_kill \t Kill the mpd daemon on exit
9
10
  --minime \t Real minime
10
11
  --notoggle \t Minime wont toggle decorated and keep above
11
12
  --notdecorated \t Dont decorate window
@@ -27,11 +28,14 @@ class Gtk2Mp3
27
28
  # This Gem.
28
29
  require_relative 'gtk2mp3/config'
29
30
  require_relative 'gtk2mp3/gui'
31
+ mpd_kill = nil
30
32
  Gtk3App.run(klass:Gtk2Mp3) do |stage, toolbar, options|
33
+ mpd_kill = options.mpd_kill?
31
34
  require CONFIG[:MonkeyPatch] unless CONFIG[:MonkeyPatch].empty?
32
35
  gui = Gtk2Mp3.new(stage, toolbar, options){Gtk2Mp3.mpc_command _1}
33
36
  Gtk2Mp3.mpc_idleloop(gui)
34
37
  end
38
+ system 'mpd --kill' if mpd_kill
35
39
  end
36
40
  end
37
41
  # Requires:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk2mp3
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.230112
4
+ version: 3.3.230113
5
5
  platform: ruby
6
6
  authors:
7
7
  - CarlosJHR64
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-12 00:00:00.000000000 Z
11
+ date: 2023-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gtk3app