After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 399564 - large rectangle items are broken
large rectangle items are broken
Status: RESOLVED WONTFIX
Product: libgnomecanvas
Classification: Deprecated
Component: items
CVS HEAD
Other Linux
: Normal normal
: ---
Assigned To: libgnomecanvas maintainers
Federico Mena Quintero
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2007-01-22 21:54 UTC by Dmitry Samborskiy
Modified: 2014-08-02 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This is a screenshot of the canvas window with broken rectangle (16.44 KB, image/png)
2007-01-22 21:57 UTC, Dmitry Samborskiy
Details

Description Dmitry Samborskiy 2007-01-22 21:54:12 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;
}
Comment 1 Dmitry Samborskiy 2007-01-22 21:57:40 UTC
Created attachment 80932 [details]
This is a screenshot of the canvas window with broken rectangle
Comment 2 André Klapper 2014-08-02 12:52:37 UTC
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