Displaying 3 results from an estimated 3 matches for "traverse_tree".
2006 Aug 18
10
TreeCtrl update
...reeCtrl is inherited from wxControl on Windows
and wxScrolledWindow on everything else so I #if defined the .i and .h
file accordingly.
I also added a .i and .h file for the class wxTreeItemId.
The TreeCtrl files were changed so much that I am just uploading the
whole files instead of the diffs.
traverse_tree(tree_ctrl,tree_ctrl.get_root_item) do |node_id,cookie|
puts "Name: #{tree_ctrl.get_item_text(node_id)}\t\tCookie:
#{cookie}"
end
def traverse_tree(tree_ctrl,root_node,cookie=0,&block)
if cookie == 0
ret = tree_ctrl.get_first_child(root_node)
else
ret = tree_ctrl.get_nex...
2005 Dec 26
0
Why isn''t this working???
...t = @@TreeListView_tree.find_all { |e| e.parent_id == pid }.sort!
list.each do |e|
array_of_e = (block.nil? ? e : yield(e, level))
t.size == 0 ? t = [array_of_e] : t << array_of_e
t += format_as_list(options, e.id, level + 1, &block)
end
t
end
def Object.traverse_tree(options = {}, pid = nil, level = 0, &block)
@@TreeListView_tree ||= self.find(:all, options)
list = @@TreeListView_tree.find_all { |e| e.parent_id == pid }.sort!
list.each do |e|
yield(e, level)
traverse_tree(options, e.id, level + 1, &block)
end
end
def Obj...
2010 Mar 02
3
2.6.33 high cpu usage
With the ATI bug I was hitting earlier fixed, only my btrfs partition
continues to show high cpu usage for some operations.
Rsync, git pull, git checkout and svn up are typicall operations which
trigger the high cpu usage.
As an example, this perf report is from using git checkout to change to
a new branch; the change needed to checkout 208 files out of about 1600
total files. du(1) reports