Bug in gtk_databox_graph_set_size



Hi all,
It seems there is a bug in gtk_databox_graph_set_size.

Expected behavior: Thickness of lines in a graph should be altered
Actual behavior: Thickness does not get updated. Colors assigned to
graph change randomly.
Version: 0.8.2.2

Fix: I looked at gtkdatabox_graph.c, for the source of
gtk_databox_graph_set_size. It seems like the update flag for
gdk_gc_set_values is wrong, it is set to GDK_GC_FOREGROUND, it should
be GDK_GC_LINE_WIDTH. Alternately, use gdk_gc_set_line_attributes
instead of gdk_gc_set_values.

Thanks.
-Jim


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