gtk_advent_calendar 0.0.1 → 0.0.2

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: e3d4e4199647341e55b260d8658295a080b4924d
4
- data.tar.gz: a5d2b09c73a30cdf867071054a5f30680da7dfc7
3
+ metadata.gz: bb3604feeeaa849994f0cb76d00a3623969539d7
4
+ data.tar.gz: 52367785737ea96224e2871749b9e8d3c7c87b91
5
5
  SHA512:
6
- metadata.gz: dcddb8250ec4570150d2bb086fda81adbad43b81c70f67ded9587210cfd1afe9abcc1d1ebe91d03b2a7cd68360d679296c9df604d08cf008e49460d55ffbe43e
7
- data.tar.gz: 0ff557623fbd0e1b709d5a98613ffa543550f325e5b26b94ac8a780780ce41d90c2c3f593acb0049d9382718f6a092a0ec9fb625ffbd15bc91edac228f289a26
6
+ metadata.gz: 90639d40742fc4f69baa50e91b141aa913431b8a63dd6a67fea0ca86e49703d265a89efddd9d3ec4aa0094c2ce4d545e26cc8ca91fa2e812c65a5e5aa80cb717
7
+ data.tar.gz: ed23ba0d91c7bf66fc7efda2f914e0729d213b410d92d38232c2cc86c3120d47c7326d494ee225cf2367391bf8359092235dbe0792493f2ab386884afbd2ad8a
@@ -9,7 +9,6 @@ module GtkAdventCalendar
9
9
  super
10
10
  @day = 1
11
11
  box = Gtk::Box.new(:vertical)
12
- box.add(Gtk::Label.new)
13
12
  box.add(month)
14
13
  add(box)
15
14
  end
@@ -48,7 +47,7 @@ module GtkAdventCalendar
48
47
  button.width_request = CELL_WIDTH
49
48
  button.height_request = CELL_WIDTH
50
49
  button.signal_connect("clicked") do
51
- show_uri("http://ja.wikipedia.org/wiki/12%E6%9C%88#{n}%E6%97%A5")
50
+ show_uri("http://en.wikipedia.org/wiki/December_#{n}")
52
51
  end
53
52
  button
54
53
  end
@@ -60,7 +59,11 @@ module GtkAdventCalendar
60
59
  when /mswin|mingw|cygwin|bccwin/
61
60
  system("start", uri)
62
61
  else
63
- system("firefox", uri)
62
+ if Gtk.respond_to?(:show_uri)
63
+ Gtk.show_uri(uri)
64
+ else
65
+ system("firefox", uri)
66
+ end
64
67
  end
65
68
  end
66
69
  end
@@ -1,3 +1,3 @@
1
1
  module GtkAdventCalendar
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk_advent_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masafumi Yokoyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-30 00:00:00.000000000 Z
11
+ date: 2013-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gtk3