summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes_callbacks.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-13 23:18:26 +0100
committerVictor Kareh <[email protected]>2022-03-22 16:25:09 -0400
commitb3892cf644c693fef44b5daf55a0b66a667ac147 (patch)
tree4d1acd062b9b7adc49239036cfe156444c88374c /stickynotes/stickynotes_callbacks.c
parent0685093d85f70823d71397e35f3c2acf09a0c083 (diff)
downloadmate-applets-b3892cf644c693fef44b5daf55a0b66a667ac147.tar.bz2
mate-applets-b3892cf644c693fef44b5daf55a0b66a667ac147.tar.xz
Fix some -Wfloat-conversion warnings
Diffstat (limited to 'stickynotes/stickynotes_callbacks.c')
-rw-r--r--stickynotes/stickynotes_callbacks.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/stickynotes/stickynotes_callbacks.c b/stickynotes/stickynotes_callbacks.c
index dac681a1..3f22dab7 100644
--- a/stickynotes/stickynotes_callbacks.c
+++ b/stickynotes/stickynotes_callbacks.c
@@ -49,13 +49,17 @@ gboolean stickynote_resize_cb (GtkWidget *widget,
if (widget == note->w_resize_se)
gtk_window_begin_resize_drag (GTK_WINDOW (note->w_window),
GDK_WINDOW_EDGE_SOUTH_EAST,
- event->button, event->x_root,
- event->y_root, event->time);
+ event->button,
+ (gint) event->x_root,
+ (gint) event->y_root,
+ event->time);
else /* if (widget == note->w_resize_sw) */
gtk_window_begin_resize_drag (GTK_WINDOW (note->w_window),
GDK_WINDOW_EDGE_SOUTH_WEST,
- event->button, event->x_root,
- event->y_root, event->time);
+ event->button,
+ (gint) event->x_root,
+ (gint) event->y_root,
+ event->time);
}
else
return FALSE;