node/lib/metasm/metasm/gui/cstruct.rb
# focus on addr
# returns true on success
focus on addr
returns true on success
focus on addr returns true on success
def focus_addr(addr, struct=@curstruct)
		return if @parent_widget and not addr = @parent_widget.normalize(addr)
		@curaddr = addr
		@caret_x = @caret_y = 0
		if struct.kind_of? String
			@curstruct = nil
			focus_struct_byname(struct)
		else
			@curstruct = struct
			gui_update
		end
		true
	end
def focus_addr ( addr , struct = @curstruct ) return if @parent_widget and not addr = @parent_widget . normalize ( addr ) @curaddr = addr @caret_x = @caret_y = 0 if struct . kind_of? String @curstruct = nil focus_struct_byname ( struct ) else @curstruct = struct gui_update end true end
focus on addr
returns true on success
focus on addr returns true on success
addr
struct