Skip to content

Commit

Permalink
Merge pull request #309 from autonomys/remove-deprecated-function-call
Browse files Browse the repository at this point in the history
Remove deprecated function call
  • Loading branch information
nazar-pc authored Oct 10, 2024
2 parents a5468ff + c4fb1c9 commit 5b368ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/frontend/widgets/progress_circle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ impl Component for ProgressCircle {
move |drawing_area, cr, width, height| {
let progress = *progress.borrow();

#[allow(deprecated, reason = "Not clear what is the replacement, see https://discourse.gnome.org/t/replacement-for-gtk-style-context-get-color/23026?u=nazar-pc")]
let color = drawing_area.style_context().color();
let color = drawing_area.color();

// Center coordinates
let center_x = width as f64 / 2.0;
Expand Down

0 comments on commit 5b368ef

Please sign in to comment.