Skip to content

Commit

Permalink
Update glib and gio to 0.19 (#15)
Browse files Browse the repository at this point in the history
Drive-by: Remove test print statement
  • Loading branch information
mathieu-lemay committed Mar 5, 2024
1 parent 0020236 commit 801b857
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 49 deletions.
177 changes: 142 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions f1-telemetry-display/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ simplelog = "0.12.0"
time = "0.3.11"
ncurses = { version = "5.101", features = ["wide"] }
gtk = "0.18.1"
gio = "0.18.2"
glib = "0.18.2"
gio = "0.19.2"
glib = "0.19.2"
gdk = "0.18.0"
cairo-rs = { version = "0.18.2", features = ["png"] }
async-channel = "2.2.0"
2 changes: 0 additions & 2 deletions f1-telemetry-display/src/ui/gtk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use std::cell::RefCell;
use std::rc::Rc;

use async_trait::async_trait;
use gio::prelude::*;
use glib::MainContext;
use gtk::prelude::*;

Expand Down Expand Up @@ -84,7 +83,6 @@ impl Ui for GtkUi {

let main_context = MainContext::default();
main_context.spawn_local(async move {
println!("IN SPAWN");
while let Ok(packet) = rx.recv().await {
process_packet(&game_state, &widgets, &packet);
}
Expand Down
20 changes: 10 additions & 10 deletions f1-telemetry-display/src/ui/gtk/lap_times.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use gio::prelude::*;
use gtk::cairo::glib::Type;
use gtk::prelude::*;
use gtk::{SortColumn, SortType, Widget};

Expand Down Expand Up @@ -183,15 +183,15 @@ fn get_team_color(team: &Team) -> String {

fn create_model() -> gtk::TreeStore {
let col_types = [
glib::Type::STRING,
glib::Type::STRING,
glib::Type::STRING,
glib::Type::STRING,
glib::Type::STRING,
glib::Type::STRING,
glib::Type::STRING,
glib::Type::STRING,
glib::Type::I8,
Type::STRING,
Type::STRING,
Type::STRING,
Type::STRING,
Type::STRING,
Type::STRING,
Type::STRING,
Type::STRING,
Type::I8,
];

let model = gtk::TreeStore::new(&col_types);
Expand Down

0 comments on commit 801b857

Please sign in to comment.