Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

alpha attribute columns binding

  • Loading branch information...
commit f2ac0dcd092ccda8282238bbab0a5118e6cac000 1 parent 9b9b902
authored January 06, 2010
8  lib/extensions/gtk/widgets/gtk_treeview.rb
@@ -27,12 +27,8 @@ def bind(options)
27 27
 
28 28
     def elements=(enumerable)
29 29
       types = [::Object]
30  
-      types.concat @paths.map do |path|
31  
-        if path["type"]
32  
-          eval(path["type"])
33  
-        else
34  
-          String
35  
-        end
  30
+      @paths.length.times do
  31
+        types << String #TODO: allow for different types
36 32
       end
37 33
       list_store = Gtk::ListStore.new(*types)
38 34
       enumerable.each do |item|

0 notes on commit f2ac0dc

Please sign in to comment.
Something went wrong with that request. Please try again.