diff --git a/src/ags.src.gresource.xml b/src/ags.src.gresource.xml
deleted file mode 100644
index 013ec7b..0000000
--- a/src/ags.src.gresource.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
- app.js
- client.js
- main.js
- service.js
- utils.js
- variable.js
- widget.js
-
- widgets/constructor.js
- widgets/overrides.js
- widgets/box.js
- widgets/button.js
- widgets/centerbox.js
- widgets/circularprogress.js
- widgets/entry.js
- widgets/eventbox.js
- widgets/icon.js
- widgets/label.js
- widgets/menu.js
- widgets/overlay.js
- widgets/progressbar.js
- widgets/revealer.js
- widgets/scrollable.js
- widgets/slider.js
- widgets/stack.js
- widgets/window.js
-
- service/applications.js
- service/audio.js
- service/battery.js
- service/bluetooth.js
- service/hyprland.js
- service/mpris.js
- service/network.js
- service/notifications.js
- service/systemtray.js
-
- dbus/types.js
- dbus/com.github.Aylur.ags.xml
- dbus/com.github.Aylur.ags.client.xml
- dbus/org.freedesktop.DBus.xml
- dbus/org.freedesktop.Notifications.xml
- dbus/org.freedesktop.UPower.Device.xml
- dbus/org.mpris.MediaPlayer2.Player.xml
- dbus/org.mpris.MediaPlayer2.xml
- dbus/org.kde.StatusNotifierWatcher.xml
- dbus/org.kde.StatusNotifierItem.xml
-
-
diff --git a/src/com.github.Aylur.ags.src.gresource.xml b/src/com.github.Aylur.ags.src.gresource.xml
index 3ee94f9..013ec7b 100644
--- a/src/com.github.Aylur.ags.src.gresource.xml
+++ b/src/com.github.Aylur.ags.src.gresource.xml
@@ -28,7 +28,6 @@
widgets/stack.js
widgets/window.js
- service/service.js
service/applications.js
service/audio.js
service/battery.js
diff --git a/src/service.ts b/src/service.ts
index e556e40..f9bf04f 100644
--- a/src/service.ts
+++ b/src/service.ts
@@ -3,7 +3,7 @@ import Gtk from 'gi://Gtk?version=3.0';
import { connect } from './utils.js';
import { type Ctor } from 'gi-types/gobject2.js';
-type PspecType = 'jsobject' | 'string' | 'int' | 'float' | 'boolean';
+type PspecType = 'jsobject' | 'string' | 'int' | 'float' | 'double' | 'boolean' | 'gobject';
type PspecFlag = 'rw' | 'r' | 'w';
export default class Service extends GObject.Object {
@@ -36,9 +36,16 @@ export default class Service extends GObject.Object {
name, name, name, flags,
-1, 1, 0);
+ case 'double': return GObject.ParamSpec.double(
+ name, name, name, flags,
+ Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER, 0);
+
case 'boolean': return GObject.ParamSpec.boolean(
name, name, name, flags, false);
+ case 'gobject': return GObject.ParamSpec.object(
+ name, name, name, flags, GObject.Object);
+
// @ts-expect-error
default: return GObject.ParamSpec.jsobject(
name, name, name, flags, null);
diff --git a/src/widgets/icon.ts b/src/widgets/icon.ts
index dc72862..df5447b 100644
--- a/src/widgets/icon.ts
+++ b/src/widgets/icon.ts
@@ -4,7 +4,7 @@ import GLib from 'gi://GLib';
import GdkPixbuf from 'gi://GdkPixbuf';
import Gdk from 'gi://Gdk?version=3.0';
import { Context } from 'gi-types/cairo1';
-import Service from '../service/service.js';
+import Service from '../service.js';
export default class AgsIcon extends Gtk.Image {
static {
diff --git a/src/widgets/window.ts b/src/widgets/window.ts
index c370360..6b10421 100644
--- a/src/widgets/window.ts
+++ b/src/widgets/window.ts
@@ -1,7 +1,7 @@
import GObject from 'gi://GObject';
import Gtk from 'gi://Gtk?version=3.0';
import Gdk from 'gi://Gdk?version=3.0';
-import Service from '../service/service.js';
+import Service from '../service.js';
import App from '../app.js';
const { GtkLayerShell: LayerShell } = imports.gi;