gtk3assist 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/gtk3assist.gemspec +1 -1
  3. data/lib/gtk3assist.rb +7 -0
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
data/gtk3assist.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gtk3assist"
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kasper Johansen"]
data/lib/gtk3assist.rb CHANGED
@@ -9,4 +9,11 @@ class Gtk3assist
9
9
  raise "Still not defined: '#{name}'." if !Gtk3assist.const_defined?(name)
10
10
  return Gtk3assist.const_get(name)
11
11
  end
12
+
13
+ #Enables other threads to be run and interrupts to be used (<CTRL> + <C>).
14
+ def self.enable_threadding
15
+ return nil if @enable_threadding
16
+ @enable_threadding = true
17
+ GLib.idle_add(GLib::PRIORITY_DEFAULT_IDLE, Proc.new{Thread.pass; true}, nil, nil)
18
+ end
12
19
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gtk3assist
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kasper Johansen
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- hash: -4051244528406198022
124
+ hash: -1109653689086949800
125
125
  segments:
126
126
  - 0
127
127
  version: "0"