diff --git a/widget/Media.tsx b/widget/Media.tsx index f8a9d64..58dc37b 100644 --- a/widget/Media.tsx +++ b/widget/Media.tsx @@ -1,5 +1,5 @@ import { Gtk } from "ags/gtk4" -import AstalMpris from "gi://AstalMpris" +import AstalMpris from "gi://AstalMpris?version=0.1" import { createBinding, With, onCleanup } from "ags" export default function Media() { diff --git a/widget/QuickSettings.tsx b/widget/QuickSettings.tsx index 7c5ed6c..5ebeb26 100644 --- a/widget/QuickSettings.tsx +++ b/widget/QuickSettings.tsx @@ -1,9 +1,9 @@ import { Gtk } from "ags/gtk4" -import AstalNetwork from "gi://AstalNetwork" -import AstalBluetooth from "gi://AstalBluetooth" -import Wp from "gi://AstalWp" +import AstalNetwork from "gi://AstalNetwork?version=0.1" +import AstalBluetooth from "gi://AstalBluetooth?version=0.1" +import AstalWp from "gi://AstalWp?version=0.1" import { createBinding } from "ags" -import { execAsync } from "ags/process" +import { execAsync, createSubprocess } from "ags/process" function NetworkItem() { const network = AstalNetwork.Network.get_default() @@ -69,7 +69,7 @@ function BluetoothItem() { } function AudioSlider({ type }: { type: "speaker" | "microphone" }) { - const wp = Wp.get_default() + const wp = AstalWp.get_default() const audio = wp?.audio if (!audio) return @@ -120,11 +120,13 @@ export default function QuickSettings() { - diff --git a/widget/System.tsx b/widget/System.tsx index 05d519c..9ddae64 100644 --- a/widget/System.tsx +++ b/widget/System.tsx @@ -1,7 +1,7 @@ import { Gtk } from "ags/gtk4" import { createPoll } from "ags/time" -import AstalTray from "gi://AstalTray" -import AstalBattery from "gi://AstalBattery" +import AstalTray from "gi://AstalTray?version=0.1" +import AstalBattery from "gi://AstalBattery?version=0.1" import { createBinding, For } from "ags" export function Clock() { diff --git a/widget/ThemeSwitcher.tsx b/widget/ThemeSwitcher.tsx index 3b111c8..e1c338c 100644 --- a/widget/ThemeSwitcher.tsx +++ b/widget/ThemeSwitcher.tsx @@ -1,7 +1,7 @@ import { Gtk } from "ags/gtk4" -import GdkPixbuf from "gi://GdkPixbuf" -import Gdk from "gi://Gdk" +import GdkPixbuf from "gi://GdkPixbuf?version=2.0" +import Gdk from "gi://Gdk?version=4.0" import { getWallpapers, setTheme } from "../theme" // Global memory cache for textures, shared across all monitors!