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 746159 - GtkScale allows overlapping marks
GtkScale allows overlapping marks
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: Other
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-03-13 14:18 UTC by Vojtech Trefny
Modified: 2015-03-15 16:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (13.68 KB, image/png)
2015-03-13 14:18 UTC, Vojtech Trefny
Details

Description Vojtech Trefny 2015-03-13 14:18:32 UTC
Created attachment 299317 [details]
screenshot

Gtk.Scale with marks that are too close to each other results in overlapped labels. See attached screenshot.

Simple reproducer in Python -- https://gist.github.com/vojtechtrefny/dbdd50691fd78c7abb2f

Found this bug --https://bugzilla.gnome.org/show_bug.cgi?id=608807 -- for Gtk 2, same problem appears in Gtk 3.
Comment 1 Matthias Clasen 2015-03-13 14:49:51 UTC
yeah, this is a bit of a manual api. If you place your marks very close to each other, you should place them on alternative sides
Comment 2 Vojtech Trefny 2015-03-15 16:26:53 UTC
Ok, I would kinda expect Gtk will handle this somehow because there is no way I can know the size of the labels and actual position of the mark (or is there?).