Skip to content

Commit

Permalink
Remove deprecated function call
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Oct 10, 2024
1 parent a5468ff commit c4fb1c9
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 c4fb1c9

Please sign in to comment.