Skip to content

Commit

Permalink
decreased needed gtk version
Browse files Browse the repository at this point in the history
Signed-off-by: Enrico Stemmer <stemmer.enrico@gmail.com>
  • Loading branch information
H3rmt committed Feb 3, 2024
1 parent a38a7f7 commit d89a414
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Publish

on:
release:
types: [published]
push:
tags:
- v*

env:
CARGO_TERM_COLOR: always
Expand All @@ -14,6 +15,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check if tag is -rc or -alpha and exit if it is
run: |
if [[ ${{ github.ref }} == *"-rc"* ]] || [[ ${{ github.ref }} == *"-alpha"* ]]; then
echo "Skipping publish for ${{ github.ref }}"
exit 0
fi
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Install gtk4-layer-shell
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ categories = ["command-line-utilities"]
[dependencies]
clap = { version = "^4.4.11", features = ["derive"] }
hyprland = "=0.3.11"
gtk4 = { version = "0.7.3", optional = true, features = ["v4_12"] }
gtk4 = { version = "0.7.3", optional = true }
libadwaita = { version = "0.5.3", optional = true }
gtk4-layer-shell = { version = "0.2.0", optional = true }
notify-rust = { version = "4.0.0", optional = true }
Expand Down
6 changes: 3 additions & 3 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ fn update(
println!("clicked on {}", client_clone.class);
focus(client_clone.clone());

// TODO update focuses window
// TODO update focused window

// TODO exit gtk4 application
});
Expand All @@ -235,7 +235,7 @@ fn update(
println!("hovered on {}", client_clone_2.class);
focus(client_clone_2.clone());

// TODO update focuses window
// TODO update focused window
});
// enable hover
// frame.add_controller(gesture_2);
Expand All @@ -262,7 +262,7 @@ pub fn start_gui(

application.connect_startup(move |app| {
let provider = gtk4::CssProvider::new();
provider.load_from_string(CSS);
provider.load_from_data(CSS);

gtk4::style_context_add_provider_for_display(
&gdk::Display::default().expect("Could not connect to a display."),
Expand Down

0 comments on commit d89a414

Please sign in to comment.