Closed Bug 1216582 Opened 9 years ago Closed 9 years ago

[gtk3] Scrollbar buttons not drawn correctly

Categories

(Core :: Widget: Gtk, defect)

40 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox43 --- fixed
firefox44 --- fixed

People

(Reporter: jhorak, Assigned: jhorak)

References

Details

Attachments

(2 files, 1 obsolete file)

Scrollbar buttons (steppers) are wrongly paint in some GTK3 themes. See screenshot for details.
Attached patch scrollbar-buttons-fix.patch (obsolete) — Splinter Review
Assignee: nobody → jhorak
Attachment #8676294 - Flags: review?(karlt)
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+
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+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
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?
Marking as affected for 43.
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+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: