Closed
Bug 1216582
Opened 9 years ago
Closed 9 years ago
[gtk3] Scrollbar buttons not drawn correctly
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
FIXED
mozilla44
People
(Reporter: jhorak, Assigned: jhorak)
References
Details
Attachments
(2 files, 1 obsolete file)
136.49 KB,
image/png
|
Details | |
2.68 KB,
patch
|
jhorak
:
review+
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Scrollbar buttons (steppers) are wrongly paint in some GTK3 themes. See screenshot for details.
Assignee | ||
Comment 1•9 years ago
|
||
Fix is basically based on https://github.com/GNOME/gtk/blob/74e02842bbf832c32fb6d36692b760aefb05682e/gtk/gtkrange.c#L1772
Assignee: nobody → jhorak
Attachment #8676294 -
Flags: review?(karlt)
Comment 2•9 years ago
|
||
Comment on attachment 8676294 [details] [diff] [review]
scrollbar-buttons-fix.patch
Thanks!
> gtk_style_context_add_class(style, GTK_STYLE_CLASS_SCROLLBAR);
Can you remove this line, please, as the GtkScrollbar adds that for us?
>+ if (arrow_angle == ARROW_RIGHT) {
>+ gtk_style_context_add_class (style, GTK_STYLE_CLASS_RIGHT);
>+ } else if (arrow_angle == ARROW_DOWN) {
>+ gtk_style_context_add_class (style, GTK_STYLE_CLASS_BOTTOM);
>+ } else if (arrow_angle == ARROW_LEFT) {
>+ gtk_style_context_add_class (style, GTK_STYLE_CLASS_LEFT);
>+ } else {
>+ gtk_style_context_add_class (style, GTK_STYLE_CLASS_TOP);
Please remove extra space before ARROW_DOWN and ARROW_LEFT.
Please remove spaces between gtk_style_context_add_class and '('.
>+ gdouble arrow_size = MIN (rect->width, rect->height) * arrow_scaling;
Please remove space in 'MIN ('.
Attachment #8676294 -
Flags: review?(karlt) → review+
Assignee | ||
Comment 3•9 years ago
|
||
Thanks for the review, fixing mentioned issues and copying previous review+.
Try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=98a89494be5e
Attachment #8676294 -
Attachment is obsolete: true
Attachment #8677289 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 5•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Comment 6•9 years ago
|
||
Comment on attachment 8677289 [details] [diff] [review]
scrollbar-buttons-fix.patch
Approval Request Comment
[Feature/regressing bug #]: GTK3 (bug 1186229)
[User impact if declined]:
Scrollbar buttons half missing on themes that have buttons.
[Describe test coverage new/current, TreeHerder]:
No automated tests. Been on 44 for some time.
[Risks and why]:
Risks are confined to scrollbar buttons.
The reward out-weighs the risk here.
[String/UUID change made/needed]: none.
Attachment #8677289 -
Flags: approval-mozilla-beta?
Comment 8•9 years ago
|
||
Comment on attachment 8677289 [details] [diff] [review]
scrollbar-buttons-fix.patch
Fix for GKT3, aiming to land this for beta 4 on Monday.
Attachment #8677289 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 9•9 years ago
|
||
bugherder uplift |
You need to log in
before you can comment on or make changes to this bug.
Description
•