GNOME Bugzilla – Bug 465041
gtk-ruler does not draw last tick mark
Last modified: 2010-12-22 21:15:52 UTC
ruler=gtk_vruler_new(); gtk_ruler_set_range(GTK_RULER(ruler),10.0,0.0,1.0,150.0); GTK_RULER_GET_CLASS(ruler)->draw_pos = NULL; gtk_widget_show(ruler); the tickmark and the label for 0.0 is not drawn. using this shows the tickmark atleast. gtk_ruler_set_range(GTK_RULER(ruler),10.0,-0.1,1.0,150.0); If the start/end falls on a tick/label value it should be drawn. The first and last label needs extra care to be drawn inside (works for start).
GtkRuler is dead