Skip to content

Commit

Permalink
offscreen_window2: add G_GNUC_UNUSED in unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Sep 19, 2024
1 parent 81472dc commit ffd0c06
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions demos/ctk-demo/offscreen_window2.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,22 @@ static GType ctk_mirror_bin_child_type (CtkContainer *container);
G_DEFINE_TYPE (CtkMirrorBin, ctk_mirror_bin, CTK_TYPE_CONTAINER);

static void
to_child (CtkMirrorBin *bin,
double widget_x,
double widget_y,
double *x_out,
double *y_out)
to_child (CtkMirrorBin *bin G_GNUC_UNUSED,
double widget_x,
double widget_y,
double *x_out,
double *y_out)
{
*x_out = widget_x;
*y_out = widget_y;
}

static void
to_parent (CtkMirrorBin *bin,
double offscreen_x,
double offscreen_y,
double *x_out,
double *y_out)
to_parent (CtkMirrorBin *bin G_GNUC_UNUSED,
double offscreen_x,
double offscreen_y,
double *x_out,
double *y_out)
{
*x_out = offscreen_x;
*y_out = offscreen_y;
Expand Down Expand Up @@ -120,9 +120,9 @@ ctk_mirror_bin_new (void)
}

static CdkWindow *
pick_offscreen_child (CdkWindow *offscreen_window,
double widget_x,
double widget_y,
pick_offscreen_child (CdkWindow *offscreen_window G_GNUC_UNUSED,
double widget_x,
double widget_y,
CtkMirrorBin *bin)
{
CtkAllocation child_area;
Expand All @@ -143,18 +143,18 @@ pick_offscreen_child (CdkWindow *offscreen_window,
}

static void
offscreen_window_to_parent (CdkWindow *offscreen_window,
double offscreen_x,
double offscreen_y,
double *parent_x,
double *parent_y,
offscreen_window_to_parent (CdkWindow *offscreen_window G_GNUC_UNUSED,
double offscreen_x,
double offscreen_y,
double *parent_x,
double *parent_y,
CtkMirrorBin *bin)
{
to_parent (bin, offscreen_x, offscreen_y, parent_x, parent_y);
}

static void
offscreen_window_from_parent (CdkWindow *window,
offscreen_window_from_parent (CdkWindow *window G_GNUC_UNUSED,
double parent_x,
double parent_y,
double *offscreen_x,
Expand Down Expand Up @@ -292,9 +292,9 @@ ctk_mirror_bin_remove (CtkContainer *container,

static void
ctk_mirror_bin_forall (CtkContainer *container,
gboolean include_internals,
CtkCallback callback,
gpointer callback_data)
gboolean include_internals G_GNUC_UNUSED,
CtkCallback callback,
gpointer callback_data)
{
CtkMirrorBin *bin = CTK_MIRROR_BIN (container);

Expand Down Expand Up @@ -392,7 +392,7 @@ ctk_mirror_bin_size_allocate (CtkWidget *widget,

static gboolean
ctk_mirror_bin_damage (CtkWidget *widget,
CdkEventExpose *event)
CdkEventExpose *event G_GNUC_UNUSED)
{
cdk_window_invalidate_rect (ctk_widget_get_window (widget),
NULL, FALSE);
Expand Down

0 comments on commit ffd0c06

Please sign in to comment.