From 305dc169b7ac7e28586ecf195c41ac62a3da9724 Mon Sep 17 00:00:00 2001 From: Aylur Date: Wed, 23 Aug 2023 15:03:15 +0200 Subject: [PATCH] remove cairo import --- src/widgets/icon.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/widgets/icon.ts b/src/widgets/icon.ts index 2b04bc2..2539b93 100644 --- a/src/widgets/icon.ts +++ b/src/widgets/icon.ts @@ -2,7 +2,6 @@ import GObject from 'gi://GObject'; import Gtk from 'gi://Gtk?version=3.0'; import GLib from 'gi://GLib'; import GdkPixbuf from 'gi://GdkPixbuf'; -import { Context } from 'gi-types/cairo1'; export default class AgsIcon extends Gtk.Image { static { @@ -68,7 +67,7 @@ export default class AgsIcon extends Gtk.Image { } } - vfunc_draw(cr: Context): boolean { + vfunc_draw(cr: any): boolean { if (this._size > 1) return super.vfunc_draw(cr);