2009/5/23 Jean Bréfort <jean.bref...@normalesup.org>:
> Le samedi 23 mai 2009 à 11:31 +0200, Jean Bréfort a écrit :
>> GogRenderer *rend = gog_renderer_new (graph);
>> gog_renderer_update (rend, allocation->width, allocation->height);
>> GogView *view;
>> g_object_get (G_OBJECT (rend), "view", &view, NULL);
>> view = gog_view_find_child_view (view, plot);
>> map = gog_chart_map_new (plotpresent->gchart, &(view->allocation),
>> x_axis, y_axis, NULL, FALSE);
>> if (gog_chart_map_is_valid (map) &&
>>     event->x >= view->allocation.x && event->x < view->allocation.x + 
>> view->allocation.w &&
>>     event->y >= view->allocation.y && event->y < view->allocation.y + 
>> view->allocation.h) {
>>       x_map = gog_chart_map_get_axis_map (map, 0);
>>       y_map = gog_chart_map_get_axis_map (map, 1);
>>       x = gog_axis_map_from_view (x_map, event->x);
>>       y = gog_axis_map_from_view (y_map, event->y);
>> }

It works! Thank you very much Jean.

John
_______________________________________________
gnumeric-list mailing list
gnumeric-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnumeric-list

Reply via email to