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 57012 - gtk_curve_set_curve_type () failed for GTK_CURVE_TYPE_FREE and GTK_CURVE_TYPE_LINEAR
gtk_curve_set_curve_type () failed for GTK_CURVE_TYPE_FREE and GTK_CURVE_TYP...
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: Other
2.18.x
Other Linux
: Low minor
: Small fix
Assigned To: gtk-bugs
gtk-bugs
: 70195 75925 92771 110485 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-07-03 13:27 UTC by Oleg Maiboroda
Modified: 2010-06-27 01:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Oleg Maiboroda 2001-07-03 13:27:48 UTC
#include <gtk/gtk.h>

int
main (int argc, char** argv)
{
    GtkWidget *widget;
    GtkCurveType type;

    gtk_init (&argc, &argv);
    widget = gtk_curve_new ();

    gtk_curve_set_curve_type (GTK_CURVE(widget), GTK_CURVE_TYPE_FREE);

    gtk_widget_destroy (widget);
};

The example of result this code work:
GtkCurve (pid:16598): GLib-ERROR **: gmem.c:140:g_malloc(): failed to
allocate 4294967276 bytes
aborting...
Trace/breakpoint trap (core dumped)

The result for GTK_CURVE_TYPE_LINEAR is similar, but it works for
GTK_CURVE_TYPE_SPLINE
Comment 1 Owen Taylor 2001-07-12 22:07:09 UTC
The problem here is setting the curve type before the widget
is allocated something reasonable. (And not catching
width  = GTK_WIDGET (c)->allocation.width - RADIUS * 2;
becoming negative.)
Comment 2 Owen Taylor 2002-01-23 15:59:54 UTC
Putting "GtkCurve doesn't work when not displayed on the screen"
bugs on the 2.0.1 milestone. We actually plan to move GtkCurve
out of GTK+ in the future, it's strange in a lot of little ways,
and it's not a particularly useful widget.
Comment 3 Damon Chaplin 2002-02-01 18:24:41 UTC
*** Bug 70195 has been marked as a duplicate of this bug. ***
Comment 4 Owen Taylor 2002-03-22 15:33:53 UTC
*** Bug 75925 has been marked as a duplicate of this bug. ***
Comment 5 Owen Taylor 2002-03-25 23:27:36 UTC
Moving non-critical or hard to fix bugs to 2.0.2
Comment 6 Matthias Clasen 2002-04-05 13:33:13 UTC
Move open bugs from milestones 2.0.[012] -- > 2.0.3, since 2.0.2 is already out.
Comment 7 Owen Taylor 2002-09-10 15:06:31 UTC
*** Bug 92771 has been marked as a duplicate of this bug. ***
Comment 8 Owen Taylor 2003-04-10 21:16:49 UTC
*** Bug 110485 has been marked as a duplicate of this bug. ***
Comment 9 Elijah Newren 2004-06-19 18:42:12 UTC
Mass changing gtk+ bugs with target milestone of 2.4.2 to target 2.4.4, as
Matthias said he was trying to do himself on IRC and was asking for help with. 
If you see this message, it means I was successful at fixing the borken-ness in
bugzilla :)  Sorry for the spam; just query on this message and delete all
emails you get with this message, since there will probably be a lot.
Comment 10 Emmanuele Bassi (:ebassi) 2009-11-24 11:11:36 UTC
GtkCurve has been deprecated for a while; this means that it's not actively maintained. Patches welcome, but just remember that GtkCurve is going to be removed from GTK+ 3.0, along with all the other API deprecated during the 2.x series.
Comment 11 Matthias Clasen 2010-06-27 01:50:04 UTC
GtkCurve has been removed from GTK+ 2.90