lib/knj/gtk2_tv.rb in knjrbfw-0.0.94 vs lib/knj/gtk2_tv.rb in knjrbfw-0.0.95

- old
+ new

@@ -75,21 +75,20 @@ renderer = Gtk::CellRendererToggle.new col = Gtk::TreeViewColumn.new(args[:title], renderer, :active => count) elsif args[:type] == :combo renderer = Gtk::CellRendererCombo.new renderer.text_column = 0 + renderer.model = args[:model] if args.key?(:model) + renderer.has_entry = args[:has_entry] if args.key?(:has_entry) if args[:markup] col_args = {:markup => count} else col_args = {:text => count} end col = Gtk::TreeViewColumn.new(args[:title], renderer, col_args) col.resizable = true - - renderer.model = args[:model] if args.key?(:model) - renderer.has_entry = args[:has_entry] if args.key?(:has_entry) else raise "Invalid type: '#{args[:type]}'." end col.spacing = 0 \ No newline at end of file