Skip to content

Commit

Permalink
🚧 don't use gdk, gio explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Feb 11, 2024
1 parent 67b0a76 commit 330016d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ i18n-embed-fl = "0.8"
rust-embed = { version = "8", features = ["debug-embed", "include-exclude"] }
gtk = { version = "0.18", default-features = false }
gio = { version = "0.19", default-features = false }
gdk = "0.18"
gdk-pixbuf = "0.19"
glib = { default-features = false, version = "0.19" }
serde = { version = "1", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions src/application_browser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,9 @@ fn on_query_tooltip_tree_view(

fn on_button_press_event_tree_view(
treeview: &gtk::TreeView,
event_btn: &gdk::EventButton,
event_btn: &gtk::gdk::EventButton,
) -> gtk::glib::Propagation {
if event_btn.button() == 1 && event_btn.event_type() == gdk::EventType::DoubleButtonPress {
if event_btn.button() == 1 && event_btn.event_type() == gtk::gdk::EventType::DoubleButtonPress {
if let Some(coords) = event_btn.coords() {
let (x, y) = coords;
let path_info = treeview.path_at_pos(x as i32, y as i32);
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ mod utils;

use config::{APP_ID, PROFILE, VERSION};
use data_types::*;
use glib::GString;
use gtk::{gio, glib, Builder, HeaderBar, Window};
use gtk::glib::GString;
use gtk::{gdk, glib, Builder, HeaderBar, Window};
use i18n_embed::DesktopLanguageRequester;
use once_cell::sync::Lazy;
use std::collections::HashMap;
Expand All @@ -25,7 +25,7 @@ use std::sync::{Arc, Mutex};
use unic_langid::LanguageIdentifier;
use utils::*;

use gio::prelude::*;
use gtk::gio::prelude::*;
use gtk::prelude::*;

use gtk::gdk_pixbuf::Pixbuf;
Expand Down

0 comments on commit 330016d

Please sign in to comment.