bin/gui/gtkhex.rb in origami-2.0.0 vs bin/gui/gtkhex.rb in origami-2.0.1
- old
+ new
@@ -167,21 +167,21 @@
@xdisp.signal_connect 'realize' do
@xdisp_gc = Gdk::GC.new(@xdisp.window)
@xdisp_gc.set_exposures(true)
end
- @xdisp.signal_connect 'expose_event' do |xdisp, event|
+ @xdisp.signal_connect 'expose_event' do |_xdisp, event|
imin = (event.area.y / @char_height).to_i
imax = ((event.area.y + event.area.height) / @char_height).to_i
imax += 1 if (event.area.y + event.area.height).to_i % @char_height != 0
imax = [ imax, @vis_lines ].min
render_hex_lines(imin, imax)
end
- @xdisp.signal_connect 'scroll_event' do |xdisp, event|
+ @xdisp.signal_connect 'scroll_event' do |_xdisp, event|
@scrollbar.event(event)
end
@xdisp.signal_connect 'button_press_event' do |xdisp, event|
mouse_handler[xdisp, event]
@@ -243,20 +243,20 @@
@adisp.signal_connect 'realize' do
@adisp_gc = Gdk::GC.new(@adisp.window)
@adisp_gc.set_exposures(true)
end
- @adisp.signal_connect 'expose_event' do |adisp, event|
+ @adisp.signal_connect 'expose_event' do |_adisp, event|
imin = (event.area.y / @char_height).to_i
imax = ((event.area.y + event.area.height) / @char_height).to_i
imax += 1 if (event.area.y + event.area.height).to_i % @char_height != 0
imax = [ imax, @vis_lines ].min
render_ascii_lines(imin, imax)
end
- @adisp.signal_connect 'scroll_event' do |adisp, event|
+ @adisp.signal_connect 'scroll_event' do |_adisp, event|
@scrollbar.event(event)
end
@adisp.signal_connect 'button_press_event' do |adisp, event|
mouse_handler[adisp, event]
@@ -908,10 +908,10 @@
@offsets = DrawingArea.new
@offsets.modify_font @font_desc
@olayout = @offsets.create_pango_layout('')
@offsets.events = Gdk::Event::EXPOSURE_MASK
- @offsets.signal_connect 'expose_event' do |offsets, event|
+ @offsets.signal_connect 'expose_event' do |_offsets, event|
imin = (event.area.y / @char_height).to_i
imax = ((event.area.y + event.area.height) / @char_height).to_i
imax += 1 if (event.area.y + event.area.height).to_i % @char_height != 0
imax = [ imax, @vis_lines ].min