# File gtk/sample/gtk-demo/drawingarea.rb, line 96 def scribble_configure_event(widget) @pixmap = Gdk::Pixmap.new(self.window, widget.allocation.width, widget.allocation.height, -1) # Initialize the pixmap to white @pixmap.draw_rectangle(widget.style.white_gc, true, 0, 0, widget.allocation.width, widget.allocation.height) # We've handled the configure event, no need for further processing. return true end