mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00
Bug 1173907 - Don't use gtk_render_activity for drawing progress chunks on GTK versions above 3.13.7. r=karlt
This commit is contained in:
parent
174dd44881
commit
ab856f24b0
@ -2025,7 +2025,10 @@ moz_gtk_progress_chunk_paint(cairo_t *cr, GdkRectangle* rect,
|
||||
}
|
||||
|
||||
gtk_render_background(style, cr, rect->x, rect->y, rect->width, rect->height);
|
||||
gtk_render_activity(style, cr, rect->x, rect->y, rect->width, rect->height);
|
||||
// gtk_render_activity was used to render progress chunks on GTK versions
|
||||
// before 3.13.7, see bug 1173907.
|
||||
if (gtk_check_version(3, 13, 7))
|
||||
gtk_render_activity(style, cr, rect->x, rect->y, rect->width, rect->height);
|
||||
gtk_style_context_restore(style);
|
||||
|
||||
return MOZ_GTK_SUCCESS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user