зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
174dd44881
Коммит
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_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);
|
gtk_style_context_restore(style);
|
||||||
|
|
||||||
return MOZ_GTK_SUCCESS;
|
return MOZ_GTK_SUCCESS;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче