]> gitweb.factorcode.org Git - factor.git/commitdiff
incorporate color into "cairo.pango.gadgets" run for testing purposes.
authorMatthew Willis <matthew.willis@mac.com>
Sun, 25 May 2008 19:03:26 +0000 (12:03 -0700)
committerMatthew Willis <matthew.willis@mac.com>
Sun, 25 May 2008 19:03:26 +0000 (12:03 -0700)
extra/cairo/pango/gadgets/gadgets.factor

index 48e5e683a9648077391c752da9da342b30917976..0ba901d453f67e4f618bdef9849e7b94137d1771 100644 (file)
@@ -9,12 +9,16 @@ IN: cairo.pango.gadgets
 : <pango-gadget> ( quot -- gadget )
     [ cr layout pango_cairo_show_layout ] (pango-gadget) ;
 
-USING: prettyprint sequences ui.gadgets.panes ;
+USING: prettyprint sequences ui.gadgets.panes
+threads ;
 : hello-pango ( -- )
     50 [ 6 + ] map [
         "Sans " swap unparse append
-        [ layout-font "今日は、 Pango!" layout-text ] curry
-        <pango-gadget> gadget.
+        [ 
+            cr 0 1 0.2 0.6 cairo_set_source_rgba
+            layout-font "今日は、 Pango!" layout-text
+        ] curry
+        <pango-gadget> gadget. yield
     ] each ;
 
 MAIN: hello-pango