mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-24 12:41:16 +00:00
Add an non-symmetric mark example
This makes it easier to spot problems with inverting.
This commit is contained in:
parent
800e605cb3
commit
fa7207dcdd
@ -115,6 +115,7 @@ int main (int argc, char *argv[])
|
||||
scales = g_slist_prepend (scales, scale);
|
||||
gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE);
|
||||
gtk_scale_add_mark (GTK_SCALE (scale), marks[0], GTK_POS_BOTTOM, NULL);
|
||||
gtk_scale_add_mark (GTK_SCALE (scale), 25.0, GTK_POS_BOTTOM, NULL);
|
||||
gtk_scale_add_mark (GTK_SCALE (scale), marks[1], GTK_POS_BOTTOM, NULL);
|
||||
gtk_scale_add_mark (GTK_SCALE (scale), marks[2], GTK_POS_BOTTOM, NULL);
|
||||
gtk_container_add (GTK_CONTAINER (frame), scale);
|
||||
|
Loading…
Reference in New Issue
Block a user