GNOME Bugzilla – Bug 399564
large rectangle items are broken
Last modified: 2014-08-02 12:52:37 UTC
Hi All, Apparently, large rectangle items are drawn in a wrong way. In the example code (see the code below) I see two disjoint parts of the rectangle. Thanks in advance! Regards, Dmitry Samborskiy P.S. The same code works perfectly with Gnome1 ;-) ============= cut here ====================================== #include <gnome.h> int main(int argc, char *argv[]) { GnomeApp *app; /* the main window pointer */ GnomeCanvas *canvas; /* the canvas */ GtkWidget *w; gnome_init("test", "1", argc, argv); app = GNOME_APP(gnome_app_new("test", "Test")); /* create a new canvas */ w = gnome_canvas_new(); canvas = GNOME_CANVAS(w); gnome_canvas_item_new(gnome_canvas_root(canvas), gnome_canvas_rect_get_type(), "x1", 90.0, "y1", 40.0, "x2", 33000.0,// this breaks the rectangle "y2", 100.0, "fill_color", "mediumseagreen", "outline_color", "black", "width_units", 4.0, NULL); /* set where can the canvas scroll (our usable area) */ gnome_canvas_set_scroll_region(canvas, 0.0, 0.0, 60000.0, 6000.0); /* set the contents of the app window to the canvas */ gnome_app_set_contents(GNOME_APP(app), w); gtk_widget_show_all(GTK_WIDGET(app)); gtk_main(); return 0; }
Created attachment 80932 [details] This is a screenshot of the canvas window with broken rectangle
The last libgnomecanvas code changes took place in January 2011: https://git.gnome.org/browse/archive/libgnomecanvas/log/ This project is not under active development anymore. This project got recently archived in GNOME Git. It is currently unlikely that there will be any further active development. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again. If you are interested in maintainership, inform https://mail.gnome.org/mailman/listinfo/desktop-devel-list