summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-03-08 14:07:54 -0500
committerMatthias Clasen <mclasen@redhat.com>2023-03-08 14:07:54 -0500
commitb4bb8c61a65356d3ae1589ee396603988b51037f (patch)
tree12063167a70dda830cd0369bd5fd0bafaa6f1180
parente7df61455bddbe8ebe102632c989d04547eb292d (diff)
downloadgtk+-b4bb8c61a65356d3ae1589ee396603988b51037f.tar.gz
Update GdkDragSurface to use the size struct
-rw-r--r--gdk/gdkdragsurface.c11
-rw-r--r--gdk/gdkdragsurfaceprivate.h6
2 files changed, 8 insertions, 9 deletions
diff --git a/gdk/gdkdragsurface.c b/gdk/gdkdragsurface.c
index 2a29dedef3..98e215ccca 100644
--- a/gdk/gdkdragsurface.c
+++ b/gdk/gdkdragsurface.c
@@ -47,11 +47,10 @@ enum
static guint signals[N_SIGNALS] = { 0 };
void
-gdk_drag_surface_notify_compute_size (GdkDragSurface *surface,
- int *width,
- int *height)
+gdk_drag_surface_notify_compute_size (GdkDragSurface *surface,
+ GdkDragSurfaceSize *size)
{
- g_signal_emit (surface, signals[COMPUTE_SIZE], 0, width, height);
+ g_signal_emit (surface, signals[COMPUTE_SIZE], 0, size);
}
static gboolean
@@ -74,8 +73,8 @@ gdk_drag_surface_default_init (GdkDragSurfaceInterface *iface)
0,
NULL, NULL,
NULL,
- G_TYPE_NONE, 2,
- G_TYPE_POINTER, G_TYPE_POINTER);
+ G_TYPE_NONE, 1,
+ GDK_TYPE_DRAG_SURFACE_SIZE);
}
/**
diff --git a/gdk/gdkdragsurfaceprivate.h b/gdk/gdkdragsurfaceprivate.h
index ae4730afe9..d565b8418d 100644
--- a/gdk/gdkdragsurfaceprivate.h
+++ b/gdk/gdkdragsurfaceprivate.h
@@ -2,6 +2,7 @@
#define __GDK_DRAG_SURFACE_PRIVATE_H__
#include "gdkdragsurface.h"
+#include "gdkdragsurfacesize.h"
G_BEGIN_DECLS
@@ -15,9 +16,8 @@ struct _GdkDragSurfaceInterface
int height);
};
-void gdk_drag_surface_notify_compute_size (GdkDragSurface *surface,
- int *width,
- int *height);
+void gdk_drag_surface_notify_compute_size (GdkDragSurface *surface,
+ GdkDragSurfaceSize *size);
G_END_DECLS