Skip to content

Commit

Permalink
bring gio to the scope
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejkolin committed Aug 5, 2024
1 parent 555aa2c commit a46f491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Audio/code.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::workbench;
use gtk::glib;
use gtk::prelude::*;
use gtk::{gio, glib};
use std::collections::HashMap;

pub fn main() {
Expand All @@ -26,7 +26,7 @@ pub fn main() {
}

controls.set_media_stream(Some(&gtk::MediaFile::for_file(
&gtk::gio::File::for_uri(&workbench::resolve(file_name))
&gio::File::for_uri(&workbench::resolve(file_name))
)));
// Media stream can be missing
if let Some(media_stream) = controls.media_stream() {
Expand Down

0 comments on commit a46f491

Please sign in to comment.