GTK+ Curve



Hi,

 I'm looking for a widget that can be used to display some data
plotting. I have tried gtk_curve but this widget is undocumented. Well I
tried to use it anyway to see all what I can do but when I run a gtk+
program including this widget I get the following error message:

GLib-ERROR **: could not allocate -20 bytes 
aborting... Aborted (core dumped)

The piece of code for gtk_curve is the following:

  my_curve = gtk_curve_new();
  gtk_widget_ref(my_curve);
  gtk_widget_show(my_curve);
  gtk_box_pack_start(GTK_BOX(my_vbox), my_curve, TRUE, TRUE, 0);
  gtk_curve_set_curve_type(GTK_CURVE(my_curve), GTK_CURVE_TYPE_FREE);
  gtk_curve_set_range(GTK_CURVE(my_curve), 0, 1, 0, 1);

I am using gtk+ and glib version 1.2.6.

---sram





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