Skip to content

Commit

Permalink
fix for gtk2 1.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea authored and andrea committed Jan 21, 2012
1 parent 47ace3c commit 3fd457a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -8,7 +8,7 @@ require 'rake/testtask'

spec = Gem::Specification.new do |s|
s.name = 'freightrain'
s.version = '0.7.2'
s.version = '0.8.0'
s.add_dependency('require_all', '>= 1.1.0')
s.has_rdoc = false
s.homepage = "http://github.com/bolthar/freightrain"
Expand Down
8 changes: 7 additions & 1 deletion lib/extensions/gtk/widgets/gtk_widget.rb
Expand Up @@ -53,7 +53,13 @@ def base_background=(color)

def plug_in(region_widget)
self.remove(self.children.first) unless self.children.empty?
self << region_widget
target = nil
if region_widget.class == Gtk::Window
target = region_widget.children.first
else
target = region_widget
end
self << target
end

end
Expand Down

0 comments on commit 3fd457a

Please sign in to comment.