gtk3app 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/data/VERSION +1 -1
- data/lib/gtk3app/config.rb +1 -0
- data/lib/gtk3app/program.rb +12 -1
- data/lib/gtk3app/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 918b54ffa93d632f2ffd39cf5677fc4587a65e84
|
4
|
+
data.tar.gz: 26d2d8f4dbc6d5f1ea87baf00df071abc1142b61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff5aa4df722eaf90dc56fcd7525f4831085f607a9b55cdedba765ccbf4d714c3ed0d7d3e4cf42c4235ca0b6ac8f1e9649d48474b3936fc841335239cc466b8cd
|
7
|
+
data.tar.gz: 799464bc123889d4fac7f9b6bff12800862142bab7607c06eb4607f63ed80c02dd82d31b61676e665a4c6b0f4038d13ecf0c3deff4400a299aac97b8ced485d3
|
data/data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/lib/gtk3app/config.rb
CHANGED
@@ -42,6 +42,7 @@ HELP
|
|
42
42
|
SlotsDBM: "#{XDG['CACHE']}/gtk3app/slots.sdbm", # slot management database
|
43
43
|
SLOTS_OFFSET: [0,0], # The offset from the bottom right corner
|
44
44
|
SlotsScale: 25, # The size of the slots
|
45
|
+
SlotsOrientation: :horizontal,
|
45
46
|
|
46
47
|
thing: { # The application MAY overwrite some these
|
47
48
|
|
data/lib/gtk3app/program.rb
CHANGED
@@ -50,7 +50,18 @@ module Gtk3App
|
|
50
50
|
s = CONFIG[:SlotsScale]
|
51
51
|
x, y = CONFIG[:SLOTS_OFFSET]
|
52
52
|
w, h = Gdk.screen_width, Gdk.screen_height
|
53
|
-
|
53
|
+
case CONFIG[:SlotsOrientation]
|
54
|
+
when :horizontal
|
55
|
+
@mini.move(w-@slot*s+x, h-s+y)
|
56
|
+
when :vertical
|
57
|
+
@mini.move(w-s+x, h-@slot*s+y)
|
58
|
+
else
|
59
|
+
if @slot%2==0
|
60
|
+
@mini.move(w-((@slot+2)/2)*s+x, h-s+y)
|
61
|
+
else
|
62
|
+
@mini.move(w-s+x, h-((@slot+1)/2)*s+y)
|
63
|
+
end
|
64
|
+
end
|
54
65
|
@mini.keep_above=true
|
55
66
|
@window.hide
|
56
67
|
@mini.show
|
data/lib/gtk3app/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtk3app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- carlosjhr64
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: help_parser
|
@@ -56,20 +56,20 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
59
|
+
version: '1.1'
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 1.1.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '1.1'
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version:
|
72
|
+
version: 1.1.0
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: sys-proctable
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|