Skip to content

Commit

Permalink
Include paramSpec arg in connectProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
frmdstryr committed Jan 7, 2024
1 parent 36d8ca0 commit fdb027f
Show file tree
Hide file tree
Showing 332 changed files with 333 additions and 332 deletions.
3 changes: 2 additions & 1 deletion gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down Expand Up @@ -826,6 +826,7 @@ def generate_class(ns: str, Cls: type):
out.append(f" \"notify::{name}\",")
out.append(" };")
if properties:
imports.add("gobject")
out.append(PROPERTY_METHODS)

this_cls = f"{ns.lower()}.{Cls.__name__}"
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/app_launch_context.zig
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ pub const AppLaunchContext = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/cairo_context.zig
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub const CairoContext = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/clipboard.zig
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ pub const Clipboard = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/content_provider.zig
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub const ContentProvider = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/cursor.zig
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ pub const Cursor = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/device.zig
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ pub const Device = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/device_tool.zig
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ pub const DeviceTool = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/display.zig
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ pub const Display = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/display_manager.zig
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ pub const DisplayManager = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/drag.zig
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub const Drag = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/draw_context.zig
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ pub const DrawContext = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/drop.zig
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ pub const Drop = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/gl_context.zig
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ pub const GLContext = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/gl_texture.zig
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ pub const GLTexture = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/memory_texture.zig
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ pub const MemoryTexture = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/monitor.zig
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ pub const Monitor = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/popup.zig
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub const Popup = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/seat.zig
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ pub const Seat = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/surface.zig
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ pub const Surface = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/texture.zig
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub const Texture = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/toplevel.zig
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ pub const Toplevel = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdk/vulkan_context.zig
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub const VulkanContext = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdkpixbuf/pixbuf.zig
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ pub const Pixbuf = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gdkpixbuf/pixbuf_simple_anim.zig
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ pub const PixbufSimpleAnim = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/action.zig
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub const Action = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/application.zig
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ pub const Application = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/application_command_line.zig
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ pub const ApplicationCommandLine = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/buffered_input_stream.zig
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ pub const BufferedInputStream = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/buffered_output_stream.zig
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ pub const BufferedOutputStream = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/bytes_icon.zig
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub const BytesIcon = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/charset_converter.zig
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ pub const CharsetConverter = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/converter_input_stream.zig
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ pub const ConverterInputStream = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/converter_output_stream.zig
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ pub const ConverterOutputStream = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/d_bus_connection.zig
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ pub const DBusConnection = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/d_bus_interface_skeleton.zig
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub const DBusInterfaceSkeleton = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/d_bus_message.zig
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ pub const DBusMessage = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/d_bus_object_manager_client.zig
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ pub const DBusObjectManagerClient = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
2 changes: 1 addition & 1 deletion src/gio/d_bus_object_manager_server.zig
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ pub const DBusObjectManagerServer = extern struct {
self: *Self,
property: Properties,
comptime T: type,
callback: *const fn (self: *Self, data: ?*T) callconv(.C) void,
callback: *const fn (self: *Self, spec: *gobject.ParamSpec, data: ?*T) callconv(.C) void,
data: anytype,
) u64 {
return c.g_signal_connect_data(self, PropertyNames[@intFromEnum(property)], @ptrCast(callback), data, null, @as(c.GConnectFlags, c.G_CONNECT_AFTER));
Expand Down
Loading

0 comments on commit fdb027f

Please sign in to comment.