[Glade-users] zoom + -



hi all,

i am using the canvas to draw some stuff, and i would like to add the zoom
function to the program,

i simple do:

gnome_canvas_set_pixels_per_unit  ((GnomeCanvas *)canvas,pixPerUnit);

it works fine with rectangles and ellipsis but i am having problems with the
text,  it doesnt make smaller or bigger, i do it like:

gnome_canvas_item_new(group,
              gnome_canvas_text_get_type(),
               "font", "Sans 10",
              "size-points",(double)8.0,
              "scale",0.05,
              "scale-set",TRUE,
               "text", "Test Text",
              "fill-color-rgba",0xcb6d8dff,
              "x",(double) x ,
              "y",(double) y ,
              "anchor", GTK_ANCHOR_WEST,
              NULL);




do anybody knows what i am doing wrong??

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20070416/ac2386a8/attachment.html 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]