[cairo-commit] rcairo/gtk/tests pong.rb, 1.2, 1.3 simple.rb, 1.1, 1.2 test.rb, 1.1, 1.2

OEyvind Kolaas commit at pdx.freedesktop.org
Tue Aug 3 10:57:18 PDT 2004


Committed by: pippin

Update of /cvs/cairo/rcairo/gtk/tests
In directory pdx:/tmp/cvs-serv16363

Modified Files:
	pong.rb simple.rb test.rb 
Log Message:
changed name of signal


Index: pong.rb
===================================================================
RCS file: /cvs/cairo/rcairo/gtk/tests/pong.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pong.rb	28 May 2004 19:45:05 -0000	1.2
--- pong.rb	3 Aug 2004 17:57:15 -0000	1.3
***************
*** 138,142 ****
      @gc.modify_bg(Gtk::STATE_NORMAL, Gdk::Color.new(0,0,0))
      @gc.set_size_request(@field.width, @field.height)
!     @gc.signal_connect('redraw') { redraw }
  
      Gtk::timeout_add(Speed) { @field.update; @gc.queue_draw }
--- 138,142 ----
      @gc.modify_bg(Gtk::STATE_NORMAL, Gdk::Color.new(0,0,0))
      @gc.set_size_request(@field.width, @field.height)
!     @gc.signal_connect('paint') { paint }
  
      Gtk::timeout_add(Speed) { @field.update; @gc.queue_draw }
***************
*** 149,153 ****
    end
  
!   def redraw
      cr = @gc.cairo
      @field.draw(cr)
--- 149,153 ----
    end
  
!   def paint
      cr = @gc.cairo
      @field.draw(cr)

Index: simple.rb
===================================================================
RCS file: /cvs/cairo/rcairo/gtk/tests/simple.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** simple.rb	28 May 2004 19:45:05 -0000	1.1
--- simple.rb	3 Aug 2004 17:57:15 -0000	1.2
***************
*** 20,24 ****
      set_default_size(200, 200)
      signal_connect('destroy') { Gtk.main_quit }
!     @gc.signal_connect('redraw') { redraw }
  
      vb = Gtk::VBox.new(FALSE, 5)
--- 20,24 ----
      set_default_size(200, 200)
      signal_connect('destroy') { Gtk.main_quit }
!     @gc.signal_connect('paint') { paint }
  
      vb = Gtk::VBox.new(FALSE, 5)
***************
*** 28,32 ****
      add(vb)
    end
!   def redraw
      cr = @gc.cairo
      cr.set_rgb_color(0, 0, 0)
--- 28,32 ----
      add(vb)
    end
!   def paint
      cr = @gc.cairo
      cr.set_rgb_color(0, 0, 0)

Index: test.rb
===================================================================
RCS file: /cvs/cairo/rcairo/gtk/tests/test.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test.rb	28 May 2004 19:35:32 -0000	1.1
--- test.rb	3 Aug 2004 17:57:15 -0000	1.2
***************
*** 16,23 ****
      set_default_size(200, 200)
      signal_connect('destroy') { Gtk.main_quit }
!     @gc.signal_connect('redraw') { redraw }
  
!     #b = Gtk::Button.new("redraw")
!     #b.signal_connect('clicked') { redraw }
  
      vb = Gtk::VBox.new(FALSE, 5)
--- 16,23 ----
      set_default_size(200, 200)
      signal_connect('destroy') { Gtk.main_quit }
!     @gc.signal_connect('paint') { paint }
  
!     #b = Gtk::Button.new("paint")
!     #b.signal_connect('clicked') { paint }
  
      vb = Gtk::VBox.new(FALSE, 5)
***************
*** 28,32 ****
      add(vb)
    end
!   def redraw
      cr = @gc.cairo
      cr.set_rgb_color(0, 0, 0)
--- 28,32 ----
      add(vb)
    end
!   def paint
      cr = @gc.cairo
      cr.set_rgb_color(0, 0, 0)




More information about the cairo-commit mailing list