# File gtk/sample/gtk-demo/drawingarea.rb, line 186 def scribble_button_press_event(widget, event) unless @pixmap # paranoia check, in case we haven't gotten a configure event return false end if event.button == 1 draw_brush(widget, event.x, event.y) end # We've handled the event, stop processing return true end